We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
When I set an Access Breakpoint on a memory range, I'd like to use the specific address when the breakpoint is triggered. For example:
func void showAddress(void) { if (BA_MODE == BA_WRITE) { printf("Write to 0x%X.\n", BA_ADDR); } else { printf("Read from 0x%X.\n", BA_ADDR); } } ba readwrite 0x40002000, 0x40, 1, "showAddress()"
Are there any system variables that represent the attributes of the access that triggers the breakpoint?
Please note: the "printf" in the code above is just an example. Actually I'd like to simulate certain hardware behaviour, for example memory mirrors when not all address lines are used. Such a feature could also help to write simulations for external devices.
None of the uVision-MDK releases out in the world do have these system variables. They will come with next MDK release (currently in Release Candidate state).
Sorry, there is no way to get the accessed address/access type within a user or signal function.