View STM32 MCU peripheral registers Posted by samuel.zhang@rheem.com on 2015-07-28 02:09 It is useful to view the periperal register values during debugging, such as UART, SPI.. I can do it with IAR workbench, how can I do it for SW STM32? Regards Sam
Posted by Kaziq on 2015-07-28 07:12 In Debug Perspective ("Debug" button - right side of the top tool bar) there is the area occupying the top right side of the SW. You can choose from among some tabs, such as "Variables" and "Breakpoints". One of the tabs is "I/O Registers" - in this tab you have the list of the CPU peripherals. Expand one, and you will see its registers. Then you have to double-click on a register icon to enable reading its value from the CPU (it will update automaticaly with each break or step). Double-click again on the register to disable reading.
Posted by samuel.zhang@rheem.com on 2015-07-28 08:09 I am working on STM32F373 MCU now. When I do it, the screen display this error message "No CMSIS-SVD schema for this target", nothing display in the table.
Posted by tang on 2015-07-28 10:02 The peripherals view is enabled when the debug configuration is launched. If the debug is already launched, click on the refresh button to reload the peripherals definition. Hope it solves the problem. Kevin.
Posted by samuel.zhang@rheem.com on 2015-07-29 02:35 Hi Kevin, There is a button in the top right of the table, I press the button but nothing happen, I move the mouse to this button, it shows a message "Refresh periperal registers table (not refreshing register value)". The Ac6 is version 1.30 which I download yesterday from this website. Is some debugging setting related to view the registers? Sam
Posted by samuel.zhang@rheem.com on 2015-07-30 01:03 The MCU is STM32F373RC. The register view feature is not for all STM32 family MCU?
Posted by samuel.zhang@rheem.com on 2015-08-04 01:13 Does anyone use this feature to view MCU register? Which MCU?
Posted by dautrevaux on 2015-08-04 09:11 It should work with all MCUs and the STM32F373RCTx is supported... It looks like either there was an installation problem or your custom board definition was incorrect. On which OS are you working? Where did you install System Workbench? in the standard place (C:\Ac6\SystemWorkbench) or another place? Could you check you can find the following file, in your installation directory: Copy to clipboardplugins\fr.ac6.mcu.ide_1.3.0.201507241045\resources\cmsis\STMicroelectronics_CMSIS_SVD\STM32F437x.svd Could you attach (or include in a CODE block) your board definition file? Bernard
Posted by samuel.zhang@rheem.com on 2015-08-04 09:45 Hi 1. My PC is WinXP. 2. I install it in c:\AC6\SystemWorkbench directory. 3. I can find STM32F437X.svd, but no STM32F373X.svd. My target board MCU is STM32F373RCT, should I download STM32F373X.svd? 4. I check my STM32F3Discovery board, the on board MCU is STM32F303VCT6. I can find STM32F303X.svd, but the IDE on "I/O Register" window has an error message "No CMSIS-SVD schema for this target". Should I add some information for IDE related to the CMSIS-SVD file? where and how to add it? Regards Sam
Posted by samuel.zhang@rheem.com on 2015-10-29 01:54 It works now after I set the debug configuration to "Ac6 STM32 Debugging". Previously, I set the debug configuration to "GDB Hardware Debugging". Regards Sam
Posted by dulan on 2017-06-27 16:15 Hello, It is possible to use the "GDB Hardware Debugging" debug configuration, using the J-Link reflash of the on chip ST-Link debugger of the ST demo boards (Nucleo, Discovery, ...) and still see the I/O Registers. I posted a solution on this thread to properly show the registers, please have a look: http://www.openstm32.org/forumthread574?forumId=7 Dulan