Skip to content

Can't write to Instruction Memory from gdb #392

Answered by stnolting
ColinBathe asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Colin!

What does your processor setup (and the configuration) look like?

I think this might be caused by the boot configuration of your setup. If the internal bootloader is disabled (INT_BOOTLOADER_EN => false) the system uses the "Direct Boot" approach where the IMEM is initialized with the actual application code during synthesis. This also makes the IMEM a real ROM (so it is read-only) and would explain your error message:

>>> set {int}0x00000000 = 0x1234
Cannot access memory at address 0x0

You can find more information about this in the data sheet's section Boot Configuration.

Just enable the bootloader and you can happily write to the IMEM again. I know this is no perfect solut…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ColinBathe
Comment options

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