Writing to CPU Registers using MACROs IAR EW C-Spy Debugger and ST-link
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-25 3:39 PM
Posted on December 26, 2014 at 00:39
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,Kirem
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-25 4:24 PM
Posted on December 26, 2014 at 01:24
Presumably something like R1=0x11223344; doesn't work?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-26 7:11 AM
Posted on December 26, 2014 at 16:11
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, KiremOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-26 7:25 AM
Posted on December 26, 2014 at 16:25
Hi Clive,
Just to add that memory accesses are through inbuilt macros. I will check if your suggestion works.Thanks, Kirem