2023-04-24 05:28 AM - edited 2023-11-20 07:19 AM
No GPIOx registers are present in System Viewer for STM32G051 or STM32G061 microcontrollers during debug session. There are 12 different .sfr files for each different variant of STM32G0 microcontroller, but only the above two lack GPIO registers in System Viewer window. Why? What is the magic reason for it, is it just a mistake by ST vendor to not include them or is there another reason? I tested what would happened if I loaded a custom file i.e. STM32G050.sfr instead and I can clearly see the GPIO config and its state being toggled that way. So than the question really is - why is it not included in STM32G051.sfr??? I know that all GPIO registers are memory mapped, but that is not a convenient way to debug whatsoever.
I would really appreciate if someone reached out regarding this issue.
Solved! Go to Solution.
2023-04-26 09:18 AM - edited 2023-11-20 07:19 AM
Hi @RBein.1 ,
To add the correct SVD file in Keil, please follow these steps:
6.Browse the STM32G051.sfr file generated in UV4 folder as shown in the below figure.
I hope this help you!
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-04-26 04:10 AM
Hello @RBein.1 ,
I think that you use the MDK-ARM toolchain and it is the issue of updating files.
So to solve the problem, try to use the correct system view description published in ST Web site.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Thank you for your contribution in the ST community.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-04-26 09:18 AM - edited 2023-11-20 07:19 AM
Hi @RBein.1 ,
To add the correct SVD file in Keil, please follow these steps:
6.Browse the STM32G051.sfr file generated in UV4 folder as shown in the below figure.
I hope this help you!
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-04-30 05:38 AM
Dear Kaouthar,
This is fantastic help. I ignored/forgot to check ST website for this issue.
Thanks for the effort of demonstrating the steps required for .svd to .sfr conversion.
Rytis