How to fill or dump parts of RAM from DAVE IDE?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,

I am working with Dave v4.3.2 on an XMC4000 type of processor.
I would like to fill the RAM with a repeated pattern and then dump it after my program has run for a while.

How can I do it? The closest I have seen so far is to open a memory window where you can spy and edit a few addresses manually.
But that does not work for large amounts of memory.

Any idea?
Thanks and regards
Loic
0 Likes
1 Reply
User10538
Level 3
Level 3
you should look into the linker script (*.ld file in the project root).
there you would need to load the pattern BEFORE things like stack and bss are loaded (partially overwriting your pattern).
0 Likes