I work with RT1051 and I have a project contained and executed in RAM.
I wrote a command file to automate loading and execution:
Code
connect
sleep 10
r
sleep 100
loadfile "image/executable.hex"
sleep 10
setpc <ENTRYPOINT>
sleep 100
g
sleep 100
exit
Display More
Every version I make <ENTRYPOINT> can change, forcing me to introspect the produced binary.
To automate this aspect as well, how could I do it?
For example, is it possible to pass parameters from JLink command line to CommandScript? Or is it possible to declare variables inside the script that I would populate by reading the content of a specific memory location (the address of the ResetISR inside the vectors)? Or are there other methods I haven't considered like JlinkScripts?
best regards
Max