I’m developing a project with an STM32H7 microcontroller that will perform heavy and complex mathematical computations. So far, I’m very pleased with VisualGDB, it has some annoyances but overall it does its job well. It’s a sure buy.
Because of the heavy computation I need to verify the code on the device while debugging. There are many options but I’d like to interfere the least with the device for testing. I only have 112 KB flash memory, I cannot keep test code in the final production code, and also test code tends to change the behavior of the device (changes in instruction timing etc). So, my approach would be to perform a memory dump at certain points via SWD and verify the memory on the host system. It would be so much easier.
Now, the question is.. can I do that? Via Visual Studio script? Something? Automated. Or issue a gdb request command? The CPU is in stop/break mode, how can I access the memory and possibly registers in an automated way?