Skip to content

Store unique device ID, write directly to flash memory (using SWD) #1391

Discussion options

You must be logged in to vote

Think I have it, the openocd config specifies the flash size as set _FLASHSIZE 0x200000 but of course the flash size has to be the entire flash device memory set _FLASHSIZE 0x1000000. After updating this I can run openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program testData.bin reset exit 0x10FFF000" and voilà ... I can now read that testData.bin data in the EEPROM library of rp2040 (EEPROM.read()).

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@RobertMorton56
Comment options

@maxgerhardt
Comment options

@RobertMorton56
Comment options

@RobertMorton56
Comment options

Answer selected by RobertMorton56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1389 on April 22, 2023 20:28.