Victor McKeighan

Members
  • Content count

    13
  • Joined

  • Last visited

About Victor McKeighan

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Victor McKeighan

    Install Failed for Linux Runtime

    Jon, I tried the fix shown in the link you provided, but had no success. When I ran the command, I got --- $ cygstart --action=runas ./install.sh Unable to start 'install.sh': There is no application associated with the given file name extension. It couldn't find an application to run a shell script? I don't get that. I also tried opening Cygwin terminal with "Run as Administrator", but it made no difference. At any rate, the error message "error: invalid filename - lib64/libdabs.so" does not sound like a privilege issue. Vic
  2. Victor McKeighan

    Install Failed for Linux Runtime

    I'm trying to install the Linux Runtime under cygwin on a Windows 10 platform. Getting this message on the first library file: I checked to make sure lib64/libdabs.so exists, and it does, so I don't understand the error. Could this be a privileges issue? I am the administrator on the PC. Do I need to do something to run with root privilege? I did install the SDK without this problem. Hope someone can help. Thanks, Vic
  3. Victor McKeighan

    Problem with Digilent dmgr library in Cygwin

    Jon, In the 'samples' folder of the SDK I found the document for building an Adept project in Visual Studio. I tried building the EnumDemo, and it worked. So now I need to go back to my original project and see if it can be built in Visual Studio. Will be going out of town later today, but I'll start working on this when I return on Monday. Vic
  4. Victor McKeighan

    Problem with Digilent dmgr library in Cygwin

    Jon, Yes, and so does djtgcfg.exe Adept utility Vic
  5. Victor McKeighan

    Problem with Digilent dmgr library in Cygwin

    Hi Jon, I did as you suggested and ran the EnumDemo program. The result is the same, the program runs and terminates without printing anything. I then added an if statement following the call to DmgrEnumDevices(&cdvc) - if (cdvc==0) { printf("No Devices Enumerated.\n"); } Then when the program is run, it prints "No Devices Enumerated." to the screen. Is my configuration (Windows 10, Cygwin, Adept Windows SDK) appropriate for Adept? If not, what should I be using? Thanks, Vic
  6. Victor McKeighan

    Problem with Digilent dmgr library in Cygwin

    A quick update - please ignore the "Segmentation fault". That was fixed, but the main problem still exists. Vic
  7. Victor McKeighan

    Problem with Digilent dmgr library in Cygwin

    First, I'm using Cygwin on a Windows 10 platform to compile and run a utility program that loads a bit file into the serial Flash PROM of a CmodS6 board. The SDK version is Windows v2.4.2, using lib64. The source code is not my own, but comes from -https://github.com/ZipCPU/s6soc/tree/master/sw/host and the specific program is zipload.exe Under Cygwin, all the source code compiles properly. When it is run, a call is made to DmgrEnumDevices() to enumerate any Digilent boards found. Even though the CmodS6 is connected to the PC with USB, it is not enumerated, DmgrEnumDevices() returns 0. Note: The Digilent utility djtgcfg.exe is able to enumerate the board, initialize, and also configure the Spartan 6. After the failure to enumerate, a call is made to DmgrSzFromErc() and the error code and information is printed to the screen --- Victor@Vics_PC /cygdrive/c/Users/Victor/Documents/Sky Engineering/FPGA_Project/ZipLoad $ ./zipload Top_Level.bit No CModS6 devices found ErrCode(3080): ercInternalError ErrMessage: Internal error. Segmentation fault (core dumped) Is there any particular way I have to setup the SDK, other than making sure make can find the include and library files? I will greatly appreciate any help you can give me. Vic deppi.cpp
  8. Victor McKeighan

    Victor

    Bogdan, Thanks for the reply. It's good to know you got it working there with very reasonable programming and verify speed. I am using Windows 10, but I have the version of ISE (14.7) that runs under Oracle VM VirtualBox. The workaround you pointed to seems to apply to some earlier Windows version that does not need the VM. The file and folder names mentioned there do not exist in my installation. Also - the issues and problems described in the workaround are not at all what I'm seeing. Everything works properly, no problem opening files, it just takes a very long time to program the PROM. There was a similar posting on this same issue about a month ago. In that case it took about 20 minutes to program the design, not as long as mine, but I think it is the same problem. Please see the posting here - https://forum.digilentinc.com/topic/13873-cmod-s6-need-a-guide-to-program-cmod-s6-spi-flash/?page=0#comment-35651 Regards, Victor
  9. Victor McKeighan

    Victor

    I have an update - A new Cmod S6 (ordered directly from Digilent ) was received today. I verified the demo was working when power was applied. I followed the instructions given by Bogdan to program the serial PROM using iMPACT. Everything went correctly, except the time it took to program the device was almost a full hour! The progress bar on the screen indicated 0% for about 20 minutes, then went to 1%. Got to 3% after about 50 minutes. Then the 'Program Successful' message was displayed. I verified the design was working. I chose to verify the programming (with iMPACT) - This also took a very long time, about 25 minutes. Question: Why are these operations taking so long? I do have Adept installed, but there is no built in support for programming the serial device. I think there is a way with Adept, but I don't want to have to compile open source code and create make files in order to do this (unless the steps can be made clear). I'm not a software guru. Is there a documented way using Adept? I'm willing to try almost anything. In the meantime, I'm returning the first Cmod S6 (to Digikey) for a refund. It's serial PROM can no longer be detected by either iMPACT or Adept.
  10. Victor McKeighan

    Victor

    Bogdan, the project files are attached. The bit file is Top_Level.bit, and the MCS file is Serial_Mon.mcs Thanks for all your help! SerialMonitor.zip
  11. Victor McKeighan

    Victor

    Hi Bogdan and Christian, Thanks for your attention and the very detailed instructions for iMPACT. I did follow the instructions, but I'm having the same problem. Everything went exactly as shown in the document, but when I initiated programming I got the 'Program Failed' message - The transcript from the Console window is shown below. It seems to indicate that the SPI access core was configured, but then an 'ID Check' failed, and the SPI memory was not found. Additional note: I am able to configure the Spartan 6 with my own project and have verified functionality (it only uses a few pins however). Also, the demo design that is supposed to be loaded in the SPI memory never worked, all four green LEDs lit, no flashing. Is it possible the SPI memory got in a state where it cannot be recovered? I would not think this would be the case. At this point I'm leaning toward the possibility that the board is defective in some way, possibly a bad serial device, or board assembly defect. Please let me know your thoughts. GUI --- Auto connect to cable... INFO:iMPACT - Digilent Plugin: Plugin Version: 2.5.2 INFO:iMPACT - Digilent Plugin: found 1 device(s). INFO:iMPACT - Digilent Plugin: opening device: "CmodS6", SN:210282A5AE32 INFO:iMPACT - Digilent Plugin: User Name: CmodS6 INFO:iMPACT - Digilent Plugin: Product Name: Digilent CmodS6 INFO:iMPACT - Digilent Plugin: Serial Number: 210282A5AE32 INFO:iMPACT - Digilent Plugin: Product ID: 0140012F INFO:iMPACT - Digilent Plugin: Firmware Version: 011D INFO:iMPACT - Digilent Plugin: JTAG Port Number: 0 INFO:iMPACT - Digilent Plugin: JTAG Clock Frequency: 4000000 Hz GUI --- Auto connect to cable... INFO:iMPACT - Digilent Plugin: Plugin Version: 2.5.2 INFO:iMPACT - Digilent Plugin: found 1 device(s). INFO:iMPACT - Digilent Plugin: opening device: "CmodS6", SN:210282A5AE32 INFO:iMPACT - Digilent Plugin: User Name: CmodS6 INFO:iMPACT - Digilent Plugin: Product Name: Digilent CmodS6 INFO:iMPACT - Digilent Plugin: Serial Number: 210282A5AE32 INFO:iMPACT - Digilent Plugin: Product ID: 0140012F INFO:iMPACT - Digilent Plugin: Firmware Version: 011D INFO:iMPACT - Digilent Plugin: JTAG Port Number: 0 INFO:iMPACT - Digilent Plugin: JTAG Clock Frequency: 4000000 Hz Attempting to identify devices in the boundary-scan chain configuration... INFO:iMPACT - Current time: 7/5/18 5:57 PM PROGRESS_START - Starting Operation. Identifying chain contents...'0': : Manufacturer's ID = Xilinx xc6slx4, Version : 2 INFO:iMPACT:1777 - Reading /opt/Xilinx/14.7/ISE_DS/ISE/spartan6/data/xc6slx4.bsd... INFO:iMPACT:501 - '1': Added Device xc6slx4 successfully. ---------------------------------------------------------------------- ---------------------------------------------------------------------- done. PROGRESS_END - End Operation. Elapsed time = 0 sec. Override chain at index 0. Overriding chain at index 0. '1': Added Device 2M successfully. ---------------------------------------------------------------------- Override chain at index 0. Overriding chain at index 0. Override chain at index 0. Overriding chain at index 0. ------------------------ GUI: Wizard Data Report --------------------------- Compression : false Fill Value : FF Output Format : mcs Swap Bits : false LoadDirection : UP PROM Basename : Serial_Mon File Location : /home/ise/Xilinx/SerialMonitor/ Auto Select : false Number of Revisions : 1 Number of PROMs : 1 PROM Name : 2M PROM Size : 2097152 bits -------------------------- END of Report ---------------------------- '1': Loading file '/home/ise/Xilinx/SerialMonitor/Top_Level.bit' ... INFO:iMPACT - Elapsed time = 0 sec. done. INFO:iMPACT:501 - '1': Added Device xc6slx4 successfully. ---------------------------------------------------------------------- ---------------------------------------------------------------------- Add one device.5341dINFO:iMPACT - Current time: 7/5/18 6:03 PM Total configuration bit size = 2727616 bits. Total configuration byte size = 340952 bytes. 0x533d8 (340952) bytes loaded up from 0x0 Using user-specified prom size of 2048K Writing file "/home/ise/Xilinx/SerialMonitor/Serial_Mon.mcs". Writing file "/home/ise/Xilinx/SerialMonitor/Serial_Mon.prm". Writing file "/home/ise/Xilinx/SerialMonitor/Serial_Mon.cfi". INFO:iMPACT - One or more bitstream may have the data width set to a value other than '1', if the targeted device is not designed for the specified data width, the generated PROM file will not work properly. Selected part: S25FL128S Unprotect sectors: FALSE INFO:iMPACT - Current time: 7/5/18 6:06 PM PROGRESS_START - Starting Operation. Maximum TCK operating frequency for this device chain: 25000000. Validating chain... Boundary-scan chain validated successfully. '1': SPI access core not detected. SPI access core will be downloaded to the device to enable operations. INFO:iMPACT - Downloading core file /opt/Xilinx/14.7/ISE_DS/ISE/spartan6/data/xc6slx4_spi.cor. '1': Downloading core... LCK_cycle = NoWait. LCK cycle: NoWait done. '1': Reading status register contents... INFO:iMPACT:2219 - Status register values: INFO:iMPACT - 0011 1100 1110 1100 INFO:iMPACT:2492 - '1': Completed downloading core to device. '1': IDCODE is 'ffffff' (in hex). '1': ID Check failed. INFO:iMPACT:2488 - The operation did not complete successfully. INFO:iMPACT - SPI Device not found. INFO:iMPACT:2488 - The operation did not complete successfully. INFO:iMPACT - '1': Flash was not programmed successfully. PROGRESS_END - End Operation. Elapsed time = 11 sec.
  12. Victor McKeighan

    Victor

    Dan, thanks for responding. Yes indeed I want to program the Quad SPI memory so the Spartan6 can configure itself on power up. I did download the latest Adept for Windows. Like iMPACT, it allows me to configure the FPGA, but does not do anything for the PROM. I'm beginning to see a little clearer about the SPI PROM - On the CMod S6 it is not connected to JTAG, but only to the FPGA - so the FPGA has to be configured to talk to the microprocessor on JTAG and then program the SPI PROM. iMPACT is supposed to do this, but it's not working. It might be done through Adept, but apparently it's not a built in function and I'm not a software guru. One thing to note - when I first tried it using iMPACT, it did not fail immediately, but just got hung up at 0% for several minutes. I hit ABORT because I figured it was hung up. Could I have inadvertently hosed up the SPI memory? iMPACT cannot recognize the PROM anymore, it fails ID Check. Also, the demo design does not seem to be working. I hope someone on the Digilent staff can chime in and provide some help.
  13. Victor McKeighan

    Victor

    I'm using Xilinx ISE suite to design, test and program the Cmod S6 board. At this point I am able to configure the Spartan6 FPGA with a bit file over the USB connection (although I have not verified functionality), but I'm having a problem programming the serial PROM. Here is the report I get from the iMPACT tool: INFO:iMPACT - Current time: 5 Jul 2018 14:00:55 // *** BATCH CMD : Program -p 1 -dataWidth 1 -spionly -e -v -loadfpga PROGRESS_START - Starting Operation. Maximum TCK operating frequency for this device chain: 25000000. Validating chain... Boundary-scan chain validated successfully. '1': IDCODE is 'ffffff' (in hex). '1': ID Check failed. INFO:iMPACT:2488 - The operation did not complete successfully. INFO:iMPACT - SPI Device not found. INFO:iMPACT:2488 - The operation did not complete successfully. INFO:iMPACT - '1': Flash was not programmed successfully. PROGRESS_END - End Operation. Elapsed time = 4 sec. It seems to fail the ID Check, whatever that is. When I selected the PROM device, I chose S25FL128S from the available list. I think that is the correct one. Also, if I try to erase the PROM or do anything else with it, I get a similar error. I tried following instructions posted on this forum, but nothing seems to work.