kk_omnisys

Members
  • Posts

    19
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by kk_omnisys

  1. Hi All, I've been reading about the Arduino IDE on the web, particularly this article https://www.arduino.cc/en/Hacking/BuildProcess In the section "Build process" I found that the Arduino IDE puts the files generated from the sketches in a temporary folder \Documents and Settings\<USER>\Local Settings\Temp (on Windows) /tmp (on Mac and Linux) Since I am working on a non-gadget factory board (The Pipistrello 2.0) I have some special operations I need to do every once in a while which requires a copy of the output .bin file with the whole sketch. Wouldn't it be nice to have the compiler output files and binaries in a sub-directory of the designlab sketch file, like ./build or similar so that we don't have to cruise around the filesystem to find the binaries? I can imagine that one time or another you actually want to save the exact binary you programmed your device with and then it would simply be a matter of tarballing or zipping the folder? Best Regards Kalle Kempe
  2. Hi All, Since I wrote the last entry in this thread I've been poking around with the boards and I've found out that I need to have a zpuinocode already present in the flash for the uploads to work in designlab. This is a bit of trouble if the .bit file from the Xilinx tools is switched out alot.. I do not know if there is something I'm missing, perhaps Alvie can fill in some info? Best Regards Kalle Kempe
  3. Just found a solution. My guess is that the upload speed for papilio with sys clk of 96 MHz and the 100MHz is larger than the tolerance of standard UART. Uploading in designlab can be enabled by changing the upload speed. I found the line in Designlab\hardware\zpuino\zou20\platform.txt which describes the command issued to program the board tools.zpuinoprogrammer.upload.pattern="{path}/{cmd}" -s {upload.speed} -R {upload.verbose} {upload.memory} -d {serial.port} -b "{build.path}/{build.project_name}.bin" {upload.smallfs}The difference between my line in previous post is the port speed. So in designlab\hardware\zpuino\zpu20\boards.txt I created a section for the pipistrello: zpuino_pipistrello_lx45van.name=Pipistrello - ZPUinozpuino_pipistrello_lx45van.vid.0=0x0403zpuino_pipistrello_lx45van.pid.0=0x6010zpuino_pipistrello_lx45van.name.0=Pipistrello FPGAzpuino_pipistrello_lx45van.boardid=0xba011a00zpuino_pipistrello_lx45van.upload.protocol=zpuino-serialzpuino_pipistrello_lx45van.upload.maximum_size=8388608zpuino_pipistrello_lx45van.upload.size_sections=allzpuino_pipistrello_lx45van.upload.speed=115200zpuino_pipistrello_lx45van.upload.tool=zpuinoprogrammerzpuino_pipistrello_lx45van.build.f_cpu=96000000Lzpuino_pipistrello_lx45van.build.core=zpuinozpuino_pipistrello_lx45van.build.mcu=zpuzpuino_pipistrello_lx45van.build.toolchain=zpuzpuino_pipistrello_lx45van.build.board=ZPUINO_PIPISTRELLOzpuino_pipistrello_lx45van.build.extra_flags=-D__ZPUINO_PIPISTRELLO__ -DBOARD_ID=0xba011a00 -DBOARD_MEMORYSIZE=0x800000 -nostartfileszpuino_pipistrello_lx45van.build.extraSflags=-DBOARD_ID=0xba011a00zpuino_pipistrello_lx45van.build.mcu=zpuzpuino_pipistrello_lx45van.build.vid=0x0403zpuino_pipistrello_lx45van.build.pid=0x6010zpuino_pipistrello_lx45van.build.usb_product="Pipistrello FPGA"zpuino_pipistrello_lx45van.bitloader.tool=papilioprogzpuino_pipistrello_lx45van.bitloader.file=lx9/zpuino-1.0-PapilioPro-S6LX9-Vanilla-1.0.bitzpuino_pipistrello_lx45van.xise.file=circuit/PSL_Papilio_Pro_LX9.xisezpuino_pipistrello_lx45van.sch.file=circuit/Papilio_Pro.schzpuino_pipistrello_lx45van.pdf.file=circuit/schematic_papilio_pro.pdfzpuino_pipistrello_lx45van.bit.file=circuit/LX9/papilio_pro.bitzpuino_pipistrello_lx45van.logicanalyzer.file=logicanalyzers/LX9/papilio_pro.bitzpuino_pipistrello_lx45van.logicanalyzer.message="Channels 0-15 are connected to the B Wing and channels 16-31 are connected to the C Wing."Note that I changed the default upload.speed to 115200 Works a charm Best regards Kalle Kempe
  4. I found that I can program the Zpuino code from the commandline C:\DesignLab-1.0.7\hardware\tools\zpu\bin>zpuinoprogrammer.exe -R -d com25 -b data.bin -v But that means that I have to compile the source, find the temporary path where the binary is and copy it to some place where the zpuino programmer executable is.. tedious Kalle Kempe
  5. Got it to work. The CPU had no Zpuino code to run in the flash. Got that running with the command line tools: papilio-prog.exe -b bscan_spi_lx45.bit -f pipistrello_top.bit -v -r -rAnd manually programming the Zpuino code: C:\DesignLab-1.0.7\hardware\tools\zpu\bin>zpuinoprogrammer.exe -R -d com25 -b data.bin -v
  6. Hi All! I've cloned the papilio loader app from Github and tried using it with the pipistrelloboard. I figured out that I can add the device id to the devlist.txt file. So far so good. I found that I can run the command-line app with a bscan_spi_XXXX.bit file to program my flash. even better! Looking over the sources for the java GUI I found that the devices it supports is hardcoded in papilioloader.java private File DetectJTAGchain() { File bscanBitFile = null; String[] scanJTAG; String[] scanJTAGOrig = {q_papilio_prog_exe, "-j"}; String[] scanJTAGID = {q_papilio_prog_exe, "-j", "-d", "\"" + pnlTarget.getBoardName() + "\""}; if (pnlTarget.getBoardName().isEmpty()) scanJTAG = scanJTAGOrig; else scanJTAG = scanJTAGID; execSynchronously(scanJTAG, programmerPath, true); //txtOutput.append("In DetectJTAG: " + deviceID); if (!deviceID.isEmpty()) { //txtOutput.append("In isEmpty: " + deviceID); if (deviceID.equals("XC3S250E")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc3s250e.bit"); else if (deviceID.equals("XC3S500E")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc3s500e.bit"); else if (deviceID.equals("XC3S100E")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc3s100e.bit"); else if (deviceID.equals("XC6SLX9")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc6slx9.bit"); else if (deviceID.equals("XC6SLX4")) bscanBitFile = new File(rootProgrammerPath, "bscan_spi_xc6slx4.bit"); } return bscanBitFile; }Can't this be more general, like having an extra column in devlist.txt? Best regards Kalle Kempe
  7. Hi! I am working on getting the Zpuino on my Pipistrello. I cloned the Zpuino repository from github yesterday and created a ISE project for the pipistrello using the files referenced in the pipistrello board directory .prj file. It runs through the synthesis, p&r and bit file generation fine after switching out the deltasigma entity for an empty wishbone device. Is there anything else that needs to be done for the .bit file to be correct? Best regards Kalle Kempe
  8. Hi! I am working to get my pipistrello up in a Designlab enviroment with the Zpuino. MiniSprog works to burn the .bit file in flash The papilio loader does not, anybody know what to do? I tried changing the devlist.txt to include the device code for the lx45 but that only lets me program the fpga directly, not flash. Best regards Kalle Kempe
  9. Hi All, I'm working on a project with a Pipistrello 2.0 that I want to use with the Designlab. Presuming that I get the .bit file into the flash and FPGA I also want to upload code from the Designlab GUI. I see that the Designlab 1.0.7 has been streamlined for only papilio boards. I have started modifying some files around the designlab but so far I'm flying blind. Can someone help with instructions on how to enable Pipistrello in the Designlab GUI? Best regardsKalle Kempe