mrjimenez / JTAG

JTAG library for Arduino
BSD 2-Clause "Simplified" License
123 stars 22 forks source link

Error: Requested DR Size Too Small #11

Open flockeyrock opened 9 months ago

flockeyrock commented 9 months ago

Hello,

First off, thanks for creating and sharing this project, it's really neat.

I got it all up and running and can successfully program my Spartan 2 FPGA. I can't program the XCF02 EEPROM in the chain, however, as it seems the DR Size is too small. The error says the current size is 1032 bits while the EEPROM wants 4097 bits.

I traced the definition back through your code to the line: static const uint32_t S_MAX_CHAIN_SIZE_BYTES = 129; but increasing it to the large value I need seems to cause the upload script to hang.

Do you know what the issue could be?

Thanks in advance, Chandler Snyder

mrjimenez commented 9 months ago

Hi Chandler,

Thank you for your kind comment.

It should be possible to do exactly what you suggest, to increase this declaration to a bigger size. If you need 4097 bits, changing 129 to 513 should be enough.

You must however be carefull not to exhaust the Arduino memory. This might be the problem you are facing.

Maybe with an ESP32 you might succeed, I believe someone has already tried using it successfully.

I think one day we should port this to STM32.

Regards, Marcelo.

flockeyrock commented 9 months ago

Marcelo,

Thanks for your response. This is what I was thinking the issue was as well.

I went ahead and ordered an ESP32 board to try it out (and add to my collection). I'll post a response of my results when I get back to it in a few weeks.

Thanks, Chandler Snyder