2024-04-12 08:22 AM - edited 2024-04-12 08:34 AM
Folks,
I'm working somewhere the lead engineer doesn't like using debuggers, he uses emacs with gcc and just loads the hex file via a JTAG interface, using an intrusive serial interface for debugging (sic). I've persuaded him to let me use Cube rather than shooting in the dark and he's set me up with his funky set up of non-standard headers and libraries and made a project that will run in Cube. So I can at least set a break point and step through when I need to.
One issue though is that none of the SFRs are showing up in the debuuger window. I'm assuming this is because he, for some reason, doesn't use normal header files like everyone else. Although I really have no idea how the debugger picks up these SFRs and manages to display them.
Is anyone able to advise how I might be able to get Cube IDE to show the values in all of the peripherals' register please?
FWIW this:
platform:/plugin/com.st.stm32cube.ide.mcu.productdb.debug/resources/cmsis/STMicroelectronics_CMSIS_SVD/STM32F301.svd
Is in CMSIS-SVD Settings
And I selected STM32F301C8Tx in C/C++ Build | Settings | Tool Settings | MCU Settings
Thanks!
Solved! Go to Solution.
2024-04-12 12:05 PM
Sussed it.
If change this:
platform:/plugin/com.st.stm32cube.ide.mcu.productdb.debug/resources/cmsis/STMicroelectronics_CMSIS_SVD/STM32F301.svd
To directly point at the absolute address of where the file lives it works. I guess this "platform" variable isn't set properly.
2024-04-12 12:05 PM
Sussed it.
If change this:
platform:/plugin/com.st.stm32cube.ide.mcu.productdb.debug/resources/cmsis/STMicroelectronics_CMSIS_SVD/STM32F301.svd
To directly point at the absolute address of where the file lives it works. I guess this "platform" variable isn't set properly.