STM32 MCUs products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I'm writing the following code: GPIOA-"MODER" 0x400; (set GPIO_MODER_MODE5_0). It's not working! In the debugging window, bit 11 doesn't change and the LD4 LED doesn't switch.

I have Nucleo-G071RB. I want to flash the LED LD4 using CMSIS. Use IAR 8.40I'm writing the following code: GPIOA->MODER |= 0x400; (set GPIO_MODER_MODE5_0). It's not working! In the debugging window, bit 11 doesn't change and the LD4 LED doesn't switc...

VTyut.1 by Associate
  • 341 Views
  • 3 replies
  • 0 kudos

Resolved! Advice, please, how to view the function call tree and the contents of the MCU stack using STM32Cubeide. After the program crashes in debug the program loops in Hard_Fault_Handler () and it is not clear what cause such event.

What ability to view the contents of the call stack in CubeIDE is present?, i.e. what functions were called before the crash, preferably in the form of a tree

olezhandr by Associate III
  • 2328 Views
  • 9 replies
  • 6 kudos

Resolved! Detect Debugger Connected To STM32L0 ?

Posted on December 13, 2017 at 17:32In Cortex-M3, M4, etc, we can just check the DEBUGEN bit in DHCSR (the Debug Halting Control and Status Register)http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/CEGCJAHJ.html But in Cortex-M0,...

Conditional data watchpoint with debugger or DWT

I've tried both Eclipse and the VSCode Cortex debug plugin to set a conditional watchpoint but both fail (break every access irrespective of value). This I guess is due to OpenOCD not supporting the multiple compare registers in the DWT that are requ...

How to use printf/scanf in both cores using SWO?

I have the M7 core running and printing debug messages to the IAR Workbench terminal, and also have the M4 doing something similar. My probem is that I get a hard fault in the M4 core if the its printtf messages are included in the build. If I don...