2014-12-25 03:39 PM
Dear All,
I'm interested to know if anyone knows a way of writing to CPU registers using MACROs in IAR EW C-Spy Debugger and ST-LINK.I've read the documentation and searched around for an answer. Seems such a simple task.Thanks,Kirem2014-12-25 04:24 PM
Presumably something like R1=0x11223344; doesn't work?
2014-12-26 07:11 AM
Hi Clive,
I was looking for a way to change the program counter in the execUserReset() {} macro.There are the obvious memory read and write macros but I can't see anything for registers. I don't know if this is a limitation of the st-link API. There are some additional macros for the j-link interface that aren't supported on the st-link. Thanks, Kirem2014-12-26 07:25 AM
Hi Clive,
Just to add that memory accesses are through inbuilt macros. I will check if your suggestion works.Thanks, Kirem