Papilio Pro without SDRAM


thefloe

Recommended Posts

Hi,

 

I managed to synthesize a version of the zpuino for the lx9 without SDRAM by modifying the code for the papilio one (XE500). I also managed to tell the DesignLab IDE to load my created bitfile. But when I try to load a sketch I get "Cannot program flash on non-sector boundaries!". I tried already playing more with the  boards.txt file, trying different board IDs and checking that memory size is correct.

 

Can I ask for instructions what would be the proper way of creating and embedding a ZPUino for the LX9 that is using onchip ram blocks?

 

The reason is that I want to make a customized version of the papilio pro for use in our group (for measurement applications) and I would really like to get rid of the SDRAM as the sketches I'm running by now are not really ram intensive (they all run with enough headroom on a Papilio One 500k). It would simplify the layout and safe some bucks on the component list.

 

Thanks,

Tobias

Link to comment
Share on other sites

Hey Tobias,

 

That problem is caused by the ZPUino bootloader. It sounds like you are using the Papilio One 500K bootloader on the Papilio Pro. When you build the zpuino you need to do a make clean in order to wipe out the bootloader and then a make to have it rebuild. You might need to look at the Makefile itself to ensure you have things right... That's the place to start, I might be missing a couple things. I think at one point I was looking at doing the same thing you are proposing, a ZPUino for the LX9 that uses internal BRAM. Let me look to see if I ever completed that.

 

Jack.

Link to comment
Share on other sites

Hi thefloe,

 

Attached an example project for a bare-bones ZPU (not ZPUino), maybe that's useful.

The resulting design is very small, especially if I use one of the smaller memories, multiple sizes included.

It supports mem2data so the software can be written to the bitstream, which allows a very fast compile cycle (no need to flash anything).

It worked once but I haven't tested it otherwise.

 

proj_socBaseline.zip

Link to comment
Share on other sites

@offroad: Thank you very much, I will have a look.

@Jack: 

I tried working with files in "\ZPU\ZPUino-HDL-master\zpu\hdl\zpuino\boards\". There I created a copy of a 500k project and combined it with the Makefile and ucf file from Papilio Pro.

 

From the UCF file I removed all DRAM lines and the LED line.

After that the makefile builds the bootloader and generates a papilio_one_routed.bit. In the last step I get some Windows error but the bit file is generated.

 

When I download the bit file using papilio loader the design is downloaded but I cannot load sketches: Cannot get programmer version, aborting...

 

I attached the modified project, if you could have a look at it...

 

Edit: The error after generating bitfile is caused by wbtc.exe which seems to be the Xilinx WebTalk application.

 

Thank you,

Tobias

lx9nosd.zip

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

So after some additional tries I got the bootloader running with "Cannot program flash on non-sector boundaries!" or not running at all. I had a look at the bootloader code. I actually couldn't figured out where the above mentioned error code is produced. But from the structure of the bootloader and how the differences in the boards are defined here I think the problem is not coming from here. I think the main difference is how the pro and the one map / copy the flash memory to internal memory.

 

So what I figured out so far (please correct me if wrong):

  • The bootloader starts from internal BRAM (prom-generic-dp-32.vhd)
  • it should then check at address SPIOFFSET+4 for some magic value to decide if a sketch is programmed
  • if a sketch is found there it is copied to the internal BRAM
  • the code is then started from internal BRAM

Any hints / ideas where to look further?

 

Thanks,

Tobias

Link to comment
Share on other sites

It looks like I'm poking around in the wrong files. Can you tell me how your are building the _blackbox.ngc files? e.g. from which sources / directories?

I think by now that I'm mixing v1 and v2 sources, and I don't know that the differences are...

By now I couldn't find the right top vhdl file for the papilio one to start from. e.g. to have the right pins for the current designlab schematics files.

Link to comment
Share on other sites

Hi Jack,

Thank you was not looking into alvieboys repositories...

 

I started working on the papilio_one 500k papilio folder to see if I can get this one compiling and running and once that works I want to move on to the LX9.

 

I had to make quiet some changes (e.g. path to the source files, I think alvieboy organized things a bit ;) ). After adjusting the zpuino_top entity to the one found in the papilio_one 500k base folder, adjusting the makefile and some other changes I got everything compiled.

 

Then I created a new sketch in designlab and copied the created ngc file to the sketch circuit 500k folder. Set the board to 500k and while using edit circuit I swapped the ngc files and compiled everything. I can now upload sketches to the board (bootloader responding) but the sketches do not run (tested using simple sketch with serial print).

 

Thank you guys for your help so far, any suggestions how to move on from here?

 

Thanks,

Tobias

Link to comment
Share on other sites

Hi Jack,

 

that I tried but no results. After blinking did not work I just tried setting them in the setup call to avoid problems with timers or so. While programming the sketch I can see changes on the signal lines going to the flash. I also double checked the location assignments in the ucf file but without success.

In the ISE warning logs I only get messages about higher bus bits on ext_pins_out that are not used and some others. So as I see it, as the bootloader seems to work at least tx and rx pins are assigned correct...

 

I will keep on trying ;)

Link to comment
Share on other sites

I now build the "ZPUino-HDL-master\zpu\hdl\zpuino\boards\papilio_one\s3e500" project and get the same behavior. I can upload sketches using the bootloader but I cannot see if the sketch is running. No output pin changes or serial communication. 

 

If I do the same thing for the papilio pro in "ZPUino-HDL-master\zpu\hdl\zpuino\boards\papilio-pro\S6LX9" everything runs fine (same sketch).

 

Maybe some problem with switching between bootloader and ram memory.

Link to comment
Share on other sites

Not clear yet what might be happening.

 

Are you able to recompile the bootloader so we can see what is going on ?

 

Hmm another question: if you program a sketch and restart board (powercycle) does FPGA load ? The flash offsets for both devices are different. That might explain what is happening.

 

Can you also try to see if upload-to-ram works ? (hold CTRL when hitting the upload button on the IDE)

 

Alvie

Link to comment
Share on other sites

Looks like you're overwriting bootloader itself when performing the copy.

 

How much memory do you have ?

 

Can you try printint the sketch size before copy_sketch ? you can use "printhex" for that.

 

Can you also send the output from the programmer in verbose mode ? Example:

zpuinoprogrammer -v -v -v -R -r -d /dev/ttyUSB0 
Link to comment
Share on other sites

The code is build for 32kB RAM.

 

The sketch size is:

ZPUINOCPsketchsize: 0000ffffFilling

But something strange happened... When I first use zpuinoprogrammer and load a sketch (like output below) and then use Papilio Loader to load the bitfile to FPGA (now Flash) the output looks like:

ZPUINOCPsketchsize: 000001dbFillingFilledLoaded, starting...

But after that the sketch itself is again not running. It took me quiet some while to reproduce this output. 

 

 

Here is the verbose output:

Connecting...[1452334023.009417] Tx: 0x7e 0x01 0x1e 0x0e 0x7eRx: 0x7e 0x81 0x01 0x09 0x04 0x60 0x00 0x00 0x2f 0x80 0x05 0xb8 0xd8 0x00 0xb4 0x01 0x0f 0x00 0x00 0x00 0x00 0x00 0xe7 0x6b 0x7eGot packet size 21Got programmer version 1.9SPI offset: 286720CODE size: 12160Board: Unknown board @ 96000000 Hz (0xb4010f00)[1452334023.009417] Tx: 0x7e 0x02 0x2c 0x95 0x7eRx: 0x82 0xbf 0x25 0x8d 0x1c 0xa3 0xef 0x7eGot packet size 5SPI flash information: 0xbf 0x25 0x8d, status 0x1cDetected SST25VF040B flashWill program sector 70 (page 1120), original offset 0x00046000Need to program 1904 2048 bytes (8 pages)Reading data, 1900 bytesSettting baudrate divider to 5[1452334023.087525] Tx: 0x7e 0x08 0x00 0x00 0x00 0x05 0x3d 0x05 0x7eComputing sketch CRC (1900)CRC: 0 2f8dCRC: 32 40d5CRC: 64 cac2CRC: 96 f136CRC: 128 c413CRC: 160 98adCRC: 192 92a5CRC: 224 608dCRC: 256 4dcdCRC: 288 8b2fCRC: 320 9bf9CRC: 352 98d8CRC: 384 2499CRC: 416 d19cCRC: 448 b659CRC: 480 61b1CRC: 512 9c58CRC: 544 d171CRC: 576 8f09CRC: 608 d9fcCRC: 640 696bCRC: 672 ccb4CRC: 704 ca36CRC: 736 ac35CRC: 768 03c1CRC: 800 345bCRC: 832 08bbCRC: 864 60daCRC: 896 a3a4CRC: 928 221dCRC: 960 02b0CRC: 992 9a90CRC: 1024 f5edCRC: 1056 902cCRC: 1088 8613CRC: 1120 3fe2CRC: 1152 4e5bCRC: 1184 52a7CRC: 1216 82fcCRC: 1248 9aa1CRC: 1280 48d7CRC: 1312 77b3CRC: 1344 4aaaCRC: 1376 c6daCRC: 1408 97ddCRC: 1440 3d0aCRC: 1472 5be4CRC: 1504 a7d8CRC: 1536 1d9cCRC: 1568 6102CRC: 1600 fba9CRC: 1632 8441CRC: 1664 ea1cCRC: 1696 82efCRC: 1728 001cCRC: 1760 29a6CRC: 1792 7e83CRC: 1824 f6c4CRC: 1856 0601CRC: 1888 f9f8Final CRC: c64eRx: 0x88 0x07 0xc7 0x7eGot packet size 1Connecting at new speed (1000000)...[1452334023.118774] Tx: 0x7e 0x01 0x1e 0x0e 0x7eEntering program modeRx: 0x81 0x01 0x09 0x04 0x60 0x00 0x00 0x2f 0x80 0x05 0xb8 0xd8 0x00 0xb4 0x01 0x0f 0x00 0x00 0x00 0x00 0x00 0xe7 0x6b 0x7eGot packet size 21[1452334023.134404] Tx: 0x7e 0x05 0x58 0x2a 0x7eRx: 0x85 0xdc 0x22 0x7eGot packet size 1Need to erase 1 sectors[1452334023.150081] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x1c 0x8c 0xf1 0x7eGot packet size 2[1452334023.165651] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x50 0x56 0xe2 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.181331] Tx: 0x7e 0x04 0x00 0x02 0x00 0x00 0x01 0x00 0x13 0xa9 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.196958] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.212563] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.228209] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Erasing sector 70 at 0x00046000...[1452334023.243834] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2[1452334023.259430] Tx: 0x7e 0x04 0x00 0x04 0x00 0x00 0x20 0x04 0x60 0x00 0x97 0xec 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.275028] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2done.[1452334023.290653] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.306333] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.321960] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1120 at 0x00046000[1452334023.337535] Tx: 0x7e 0x07 0x01 0x00 0x04 0x60 0x00 0x01 0xdb 0xc6 0x4e 0x31 0x0a 0xfa 0xde 0xb4 0x01 0x0f 0x00 0x0b 0x0b 0x0b 0xa2 0x92 0x04 0x00 0x00 0x71 0x0b 0x0b 0x0b 0xaa 0xd3 0x2d 0x50 0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0xf0 0x05 0x0d 0x80 0x52 0x80 0x51 0xa1 0x92 0x2d 0x80 0x52 0x80 0x51 0xa1 0xa6 0x2d 0x91 0x53 0x88 0x52 0xae 0xec 0x0b 0x90 0x05 0x70 0x52 0x54 0xa2 0xa6 0x2d 0x88 0x08 0x8b 0x38 0x73 0x08 0x84 0x05 0x54 0x84 0x84 0xf0 0x74 0x0c 0x0b 0x0b 0x0b 0xac 0xd8 0x52 0xae 0xec 0x51 0xaa 0x81 0x2d 0x02 0x90 0x05 0x0d 0x04 0x02 0xf4 0x05 0x0d 0x0b 0x0b 0x0b 0xac 0xf0 0x52 0xae 0xec 0x51 0xa7 0xdc 0x2d 0x81 0x52 0x80 0x51 0xa1 0xa6 0x2d 0x84 0xc9 0xf8 0x80 0x70 0x52 0x53 0xa3 0x8d 0x2d 0x80 0x52 0x80 0x51 0xa1 0xa6 0x2d 0x72 0x51 0xa3 0x8d 0x2d 0x02 0x8c 0x05 0x0d 0x04 0x70 0x80 0xc8 0x80 0x80 0x90 0x52 0xa1 0xae 0x04 0x70 0x80 0xc8 0x80 0x80 0xa0 0x52 0xa1 0xae 0x04 0x70 0x81 0x90 0x0a 0x52 0xa1 0xae 0x04 0x72 0x0a 0x83 0x2b 0x0a 0xfc 0x06 0x72 0x05 0x70 0x08 0x81 0x75 0x9f 0x06 0x2b 0x76 0x88 0x38 0x09 0x06 0x71 0x0c 0x50 0x51 0x04 0x07 0x71 0x0c 0x50 0x51 0x04 0x02 0xfc 0x05 0x0d 0xae 0xec 0x51 0x70 0xaf 0xbc 0x2e 0x8b 0x38 0x80 0x71 0x70 0x84 0x05 0x53 0x0c 0xa1 0xd5 0x04 0x02 0x84 0x05 0x0d 0x04 0x02 0xf8 0x05 0x0d 0xae 0xe4 0x52 0x71 0xae 0xec 0x2e 0x8d 0x38 0x71 0x70 0x84 0x05 0x53 0xbb 0x45 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1[1452334023.353160] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.368778] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.384408] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1121 at 0x00046100[1452334023.400033] Tx: 0x7e 0x07 0x01 0x00 0x04 0x61 0x00 0x08 0x51 0x70 0x2d 0xa1 0xf1 0x04 0x02 0x88 0x05 0x0d 0x04 0x04 0xa0 0xa0 0x2d 0xa0 0xe0 0x2d 0xa2 0x8c 0x04 0x02 0xf8 0x05 0x0d 0xa1 0xce 0x2d 0xa1 0xea 0x2d 0x80 0x52 0x80 0x51 0xa2 0x89 0x2d 0xa2 0xa3 0x04 0x02 0xe0 0x05 0x0d 0x79 0x02 0x84 0x05 0xab 0x05 0x33 0x02 0x88 0x05 0xaf 0x05 0x33 0x84 0x13 0x33 0x70 0x59 0x57 0x59 0x59 0x56 0x73 0x81 0xff 0x2e 0x09 0x81 0x06 0x98 0x38 0x85 0x16 0x33 0x53 0x76 0x52 0x77 0x51 0xa3 0xde 0x2d 0x88 0x08 0x81 0xff 0x06 0x55 0x74 0x81 0xff 0x2e 0x8c 0x38 0x74 0x51 0xa3 0xbd 0x2d 0x88 0x08 0x80 0x25 0x8b 0x38 0xff 0x0b 0x84 0x17 0x34 0xff 0x54 0xa3 0x85 0x04 0x74 0x84 0x17 0x34 0x74 0x82 0x80 0x0a 0x29 0x90 0x0a 0x05 0x76 0x0c 0x80 0x54 0x73 0x88 0x0c 0x02 0xa0 0x05 0x0d 0x04 0x02 0xf4 0x05 0x0d 0x80 0xcc 0x80 0x80 0x8c 0x70 0x08 0x76 0x11 0x55 0x52 0x52 0x72 0x71 0x27 0x89 0x38 0x71 0x08 0x51 0x80 0x71 0x24 0xf9 0x38 0x80 0xcc 0x80 0x80 0x8c 0x52 0x71 0x08 0x51 0x72 0x71 0x26 0xf9 0x38 0x02 0x8c 0x05 0x0d 0x04 0x02 0xf8 0x05 0x0d 0x73 0x52 0xfe 0x51 0x71 0x8f 0x24 0x8d 0x38 0x81 0x72 0x2b 0xad 0xe0 0x08 0x07 0xad 0xe0 0x0c 0x80 0x51 0x70 0x88 0x0c 0x02 0x88 0x05 0x0d 0x04 0x02 0xe0 0x05 0x0d 0x79 0x7b 0x7d 0x5d 0x57 0x58 0x56 0x80 0x0b 0xad 0xe0 0x08 0x59 0x54 0x80 0xc0 0x53 0x90 0x0a 0x13 0x08 0x52 0x71 0x80 0x2e 0x80 0xe7 0x6e 0x85 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1[1452334023.415658] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.431280] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.446905] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1122 at 0x00046200[1452334023.462592] Tx: 0x7e 0x07 0x01 0x00 0x04 0x62 0x00 0x38 0x75 0x81 0xff 0x2e 0x93 0x38 0x71 0x88 0x2a 0x70 0x81 0xff 0x06 0x51 0x51 0x70 0x76 0x2e 0x09 0x81 0x06 0x80 0xcf 0x38 0x76 0x81 0xff 0x2e 0x8e 0x38 0x71 0x81 0xff 0x06 0x51 0x70 0x77 0x2e 0x09 0x81 0x06 0xbc 0x38 0x73 0x9f 0x06 0x81 0x71 0x2b 0x79 0x06 0x51 0x51 0x70 0x80 0x2e 0x83 0x38 0x81 0x51 0x70 0x81 0xff 0x06 0x51 0x70 0x80 0x2e 0x8d 0x38 0x74 0x81 0xff 0x2e 0x9b 0x38 0xff 0x15 0x55 0xa4 0xe3 0x04 0x74 0x81 0xff 0x2e 0x87 0x38 0xff 0x15 0x55 0x74 0x89 0x38 0x73 0x81 0xff 0x06 0x51 0xa4 0xf5 0x04 0x81 0x14 0x84 0x14 0x54 0x54 0x73 0x90 0x2e 0x09 0x81 0x06 0xff 0x81 0x38 0x81 0xff 0x51 0x70 0x88 0x0c 0x02 0xa0 0x05 0x0d 0x04 0x02 0xf0 0x05 0x0d 0x90 0x16 0x70 0x08 0x84 0x05 0x78 0x54 0x55 0x53 0x82 0xee 0x9b 0x80 0x51 0xaa 0xf9 0x2d 0x88 0x08 0xff 0x05 0x84 0x80 0x80 0x07 0x74 0x0c 0x02 0x90 0x05 0x0d 0x04 0x02 0xfc 0x05 0x0d 0x90 0x13 0x70 0x08 0x84 0x05 0x70 0x08 0x81 0x06 0x88 0x0c 0x51 0x51 0x02 0x84 0x05 0x0d 0x04 0x02 0xfc 0x05 0x0d 0x90 0x13 0x70 0x08 0x70 0x08 0x88 0x0c 0x51 0x51 0x02 0x84 0x05 0x0d 0x04 0xff 0x0b 0x88 0x0c 0x04 0x02 0xf8 0x05 0x0d 0x74 0x52 0x73 0x51 0xa4 0xfd 0x2d 0x02 0x88 0x05 0x0d 0x04 0x02 0xf8 0x05 0x0d 0x90 0x14 0x70 0x08 0x84 0x05 0x53 0x51 0x71 0x08 0x70 0x82 0x2a 0x70 0x81 0x06 0x51 0x51 0x51 0x70 0xf3 0x38 0x02 0xfa 0x67 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1[1452334023.478215] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.493840] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.509413] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1123 at 0x00046300[1452334023.525059] Tx: 0x7e 0x07 0x01 0x00 0x04 0x63 0x00 0x88 0x05 0x0d 0x04 0x02 0xf0 0x05 0x0d 0x75 0x02 0x84 0x05 0x9b 0x05 0x33 0x90 0x12 0x08 0x84 0x05 0x54 0x54 0x54 0x71 0x08 0x70 0x81 0x2a 0x70 0x81 0x06 0x51 0x51 0x51 0x70 0xf3 0x38 0x90 0x14 0x08 0x73 0x71 0x0c 0x51 0x81 0x0b 0x88 0x0c 0x02 0x90 0x05 0x0d 0x04 0x02 0xfc 0x05 0x0d 0xae 0xec 0x0b 0x90 0x05 0x51 0xff 0x0b 0x84 0x12 0x34 0x81 0x0b 0x85 0x12 0x34 0xae 0xec 0x51 0x80 0x0b 0x84 0x12 0x0c 0x87 0xe8 0x0b 0x88 0x12 0x0c 0xac 0xfc 0x71 0x0c 0x02 0x84 0x05 0x0d 0x04 0x02 0xe0 0x05 0x0d 0x79 0x7b 0x58 0x58 0x80 0x0b 0x84 0x19 0x57 0x55 0x82 0x54 0x8a 0x53 0x75 0x70 0x81 0x05 0x57 0x33 0x52 0x76 0x51 0xa9 0xcb 0x2d 0x88 0x08 0x15 0x55 0xae 0x52 0x76 0x51 0xa8 0x8b 0x2d 0x88 0x08 0x15 0xff 0x15 0x55 0x55 0x73 0x80 0x25 0xdc 0x38 0x8a 0x53 0x87 0x18 0x33 0x52 0x76 0x51 0xa9 0xcb 0x2d 0x88 0x08 0x15 0x88 0x0c 0x02 0xa0 0x05 0x0d 0x04 0x02 0xe4 0x05 0x0d 0x78 0x7a 0x57 0x57 0x80 0x0b 0xff 0x1c 0x55 0x55 0x73 0xff 0x2e 0x9c 0x38 0x76 0x08 0x76 0x70 0x81 0x05 0x58 0x33 0x53 0x77 0x52 0x70 0x08 0x51 0x53 0x72 0x2d 0x88 0x08 0x15 0xff 0x15 0x55 0x55 0xa7 0xb4 0x04 0x74 0x88 0x0c 0x02 0x9c 0x05 0x0d 0x04 0x02 0xe8 0x05 0x0d 0x77 0x79 0x70 0x56 0x56 0x56 0x74 0x80 0x2e 0x99 0x38 0x74 0x51 0xab 0xf4 0x2d 0x75 0x08 0x88 0x08 0x54 0x75 0x53 0x76 0x52 0x84 0x11 0x08 0xab 0x80 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1[1452334023.540657] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.556282] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.571915] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1124 at 0x00046400[1452334023.587540] Tx: 0x7e 0x07 0x01 0x00 0x04 0x64 0x00 0x51 0x54 0x73 0x2d 0x88 0x08 0x54 0x73 0x88 0x0c 0x02 0x98 0x05 0x0d 0x04 0x02 0xf0 0x05 0x0d 0x75 0x70 0x08 0x02 0x88 0x05 0x9b 0x05 0x33 0x54 0x55 0x51 0x73 0x08 0x53 0x72 0x2d 0x02 0x90 0x05 0x0d 0x04 0x02 0xff 0xb8 0x05 0x0d 0x63 0x65 0x02 0x88 0x05 0x80 0xd7 0x05 0x33 0x02 0x80 0xd0 0x05 0x5b 0x59 0x57 0x59 0x80 0x78 0x34 0x76 0x81 0x26 0x83 0x38 0x8a 0x57 0x75 0x77 0x53 0x76 0x52 0x55 0xaa 0xf9 0x2d 0x88 0x08 0x77 0x88 0x08 0x29 0x76 0x71 0x31 0x70 0x81 0xff 0x06 0xff 0x1c 0xb0 0x12 0x54 0x5c 0x51 0x57 0x55 0x56 0x89 0x75 0x27 0x84 0x38 0xb7 0x15 0x54 0x73 0x78 0x34 0x75 0xd3 0x38 0x77 0x54 0x77 0x80 0x2e 0x99 0x38 0x77 0x51 0xab 0xf4 0x2d 0x78 0x08 0x88 0x08 0x54 0x78 0x53 0x79 0x52 0x84 0x11 0x08 0x51 0x54 0x73 0x2d 0x88 0x08 0x54 0x73 0x88 0x0c 0x02 0x80 0xc8 0x05 0x0d 0x04 0x02 0xe8 0x05 0x0d 0x77 0x79 0x7b 0x56 0x57 0x55 0x73 0x93 0x38 0x74 0x08 0x76 0x81 0xff 0x06 0x53 0x75 0x52 0x70 0x08 0x51 0x54 0x73 0x2d 0xa9 0xc6 0x04 0x73 0x81 0xff 0x06 0x53 0x75 0x52 0x74 0x51 0xa8 0xa5 0x2d 0x02 0x98 0x05 0x0d 0x04 0x02 0xf0 0x05 0x0d 0x02 0x9b 0x05 0x33 0x78 0x54 0x52 0x75 0x51 0xa9 0x9b 0x2d 0x02 0x90 0x05 0x0d 0x04 0x02 0xf0 0x05 0x0d 0x75 0x53 0x8d 0x52 0x72 0x51 0xa8 0x8b 0x2d 0x88 0x08 0x54 0x8a 0x52 0x72 0x51 0xa8 0x8b 0x2d 0x88 0x08 0x14 0x88 0x0c 0x15 0x2c 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1[1452334023.603157] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.618792] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.634417] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1125 at 0x00046500[1452334023.650061] Tx: 0x7e 0x07 0x01 0x00 0x04 0x65 0x00 0x02 0x90 0x05 0x0d 0x04 0x02 0xf0 0x05 0x0d 0x75 0x77 0x53 0x70 0x52 0x54 0xa7 0xdc 0x2d 0x88 0x08 0x74 0x52 0x53 0xa9 0xe0 0x2d 0x88 0x08 0x13 0x88 0x0c 0x02 0x90 0x05 0x0d 0x04 0x02 0xfc 0x05 0x0d 0x72 0x51 0xff 0x0b 0x84 0x12 0x34 0x81 0x0b 0x85 0x12 0x34 0xff 0x0b 0xa8 0x12 0x0c 0xff 0x0b 0xac 0x12 0x0c 0x80 0x0b 0xb0 0x12 0x0c 0x02 0x84 0x05 0x0d 0x04 0x02 0xfc 0x05 0x0d 0xaf 0x88 0x51 0xaa 0xa0 0x2d 0x02 0x84 0x05 0x0d 0x04 0x02 0xf4 0x05 0x0d 0x74 0x52 0x71 0x8f 0x26 0x97 0x38 0x71 0x10 0x10 0x10 0xad 0xe4 0x05 0x70 0x08 0x54 0x52 0x72 0x80 0x2e 0x87 0x38 0x84 0x12 0x08 0x51 0x72 0x2d 0x02 0x8c 0x05 0x0d 0x04 0xfe 0x3d 0x0d 0x80 0x53 0x75 0x52 0x74 0x51 0x94 0x3f 0x84 0x3d 0x0d 0x04 0xfe 0x3d 0x0d 0x81 0x53 0x75 0x52 0x74 0x51 0x85 0x3f 0x84 0x3d 0x0d 0x04 0xfc 0x3d 0x0d 0x76 0x78 0x53 0x54 0x81 0x53 0x80 0x74 0x73 0x26 0x52 0x55 0x72 0x80 0x2e 0x98 0x38 0x70 0x80 0x2e 0xa9 0x38 0x80 0x72 0x24 0xa4 0x38 0x71 0x10 0x73 0x10 0x75 0x72 0x26 0x53 0x54 0x52 0x72 0xea 0x38 0x73 0x51 0x78 0x83 0x38 0x74 0x51 0x70 0x88 0x0c 0x86 0x3d 0x0d 0x04 0x72 0x81 0x2a 0x72 0x81 0x2a 0x53 0x53 0x72 0x80 0x2e 0xe6 0x38 0x71 0x74 0x26 0xef 0x38 0x73 0x72 0x31 0x75 0x74 0x07 0x74 0x81 0x2a 0x74 0x81 0x2a 0x55 0x55 0x56 0x54 0xe5 0x39 0xfd 0x3d 0x0d 0x75 0x70 0x71 0x83 0x06 0x23 0x0b 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1[1452334023.665660] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.681284] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.696916] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1126 at 0x00046600[1452334023.712540] Tx: 0x7e 0x07 0x01 0x00 0x04 0x66 0x00 0x53 0x55 0x52 0x70 0xb8 0x38 0x71 0x70 0x08 0x70 0x09 0xf7 0xfb 0xfd 0xff 0x12 0x06 0x70 0xf8 0x84 0x82 0x81 0x80 0x06 0x51 0x51 0x52 0x53 0x70 0x9d 0x38 0x84 0x13 0x70 0x08 0x70 0x09 0xf7 0xfb 0xfd 0xff 0x12 0x06 0x70 0xf8 0x84 0x82 0x81 0x80 0x06 0x51 0x51 0x52 0x53 0x70 0x80 0x2e 0xe5 0x38 0x72 0x52 0x71 0x33 0x51 0x70 0x80 0x2e 0x8a 0x38 0x81 0x12 0x70 0x33 0x52 0x52 0x70 0xf8 0x38 0x71 0x74 0x31 0x88 0x0c 0x85 0x3d 0x0d 0x04 0x00 0x00 0x00 0x00 0x00 0x48 0x65 0x6c 0x6c 0x6f 0x20 0x57 0x6f 0x72 0x6c 0x64 0x20 0x61 0x73 0x64 0x66 0x61 0x73 0x64 0x66 0x00 0x00 0x00 0x00 0x31 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x13 0x00 0x00 0x00 0x13 0xa6 0x00 0x00 0x12 0xa2 0x00 0x00 0x12 0xb9 0x00 0x00 0x12 0xcc 0x00 0x00 0x12 0xe1 0x00 0x00 0x12 0xd1 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x11 0x08 0x00 0x00 0x13 0xa6 0x00 0x00 0x11 0x08 0x00 0x00 0x11 0x08 0x00 0x00 0x11 0x08 0x00 0x00 0x11 0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x13 0x5c 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x11 0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x11 0x08 0x00 0x00 0x13 0xa6 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x2b 0x63 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1[1452334023.728158] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x00 0x56 0x1c 0x7eGot packet size 2[1452334023.743784] Tx: 0x7e 0x04 0x00 0x01 0x00 0x00 0x06 0x61 0x51 0x7eRx: 0x84 0x00 0x00 0x56 0xbe 0x7eGot packet size 3[1452334023.759409] Tx: 0x7e 0x03 0x3d 0x1c 0x7eRx: 0x83 0x02 0x75 0x0e 0x7eGot packet size 2Programing page 1127 at 0x00046700[1452334023.790666] Tx: 0x7e 0x07 0x01 0x00 0x04 0x67 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x13 0x31 0x00 0x00 0x15 0x44 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xca 0xcb 0x7eRx: 0x87 0xff 0x30 0x7eGot packet size 1done.[1452334023.806292] Tx: 0x7e 0x06 0x6a 0xb1 0x7eRx: 0x86 0xee 0xb9 0x7eGot packet size 1Programming completed successfully in 0.81 seconds.

Hope you can read something from this ;)

Link to comment
Share on other sites

Rx: 0x7e 0x81 0x01 0x09 0x04 0x60 0x00 0x00 0x2f 0x80 0x05 0xb8 0xd8 0x00 0xb4 0x01 0x0f 0x00 0x00 0x00 0x00 0x00 0xe7 0x6b 0x7e

 

This means:

01 09 - Bootloader version

04 60 00 -- SPI offset: 0x046000 THIS IS WRONG FOR S6 devices. For S6 it needs to be higher. See below.

0x00 0x2f 0x80 - Max sketch size: 12KB

0x05 0xb8 0xd8 0x00 - Clock frequency (96000000)

0xb4 0x01 0x0f 0x00 - Board ID - This is S3E500 board, not S6 board. See below.

0x00 0x00 0x00 0x00 - Memory top. Not set yet.

 

Here are the defines for PPRO (common/board_papilio_pro.h):

/* LX9 bitfile is 0x5327C in size */#define SPIOFFSET 0x60000

The correct board ID for your system should be:

 

0xB4040F00

 

"0F" means 15 addres bits for memory, hence 32KB. You need to update it in the Makefile.

 

Alvie

Link to comment
Share on other sites

Hmm. Something is definitely broken then. I don't have a board to test with right now, only in February.

 

Let me see if I can do something on HDL simulation for now. But I suspect issue might be in Arduino code instead. You are using the "ZPUino 2.0 boards" version on the IDE, correct ?

 

Alvie

Link to comment
Share on other sites

I was looking through the files now and I think I found some inconsistency with the RAM size:

 

papilio_one_top.vhd:

  ram:  entity work.ocram    generic map (      address_bits => 11    )

and in ocram.vhd:

  raminst: entity work.generic_sp_ram  generic map (    address_bits => address_bits,    data_bits    => 32  )  port map (    clka    => syscon.clk,    ena     => en,    wea     => wbi.we,    addra   => wbi.adr(address_bits+1 downto 2),    dia     => wbi.dat,    doa     => wbo.dat  );     

So a 2^11 * 4 bytes (32 bit) = 8192 bytes. So I increased address_bits to 13 (2^13 * 4 bytes = 32768). But got same results as before. 

 

In zpu_config.vhd:

constant 	maxAddrBitBRAM		: integer := 14;

I tried here with original 14 and also with 15 bits, also without success.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.