Skip to main content
OIba?
Associate
October 23, 2018
Question

Program not running in a STM32L052K6T, but debug is working

  • October 23, 2018
  • 2 replies
  • 1326 views

Hello, I'm having a problem with a board with a STM32L052K6T. I'm able to Debug, but I can't use the Run function.

The board was designed by myself. The schematic Is attached at the bottom of this post. Using STM32CubeMX I have done a HAL, and imported it in OpenSTM32 (AC6). The project is also attached.

With a ST-Link v2 I'm able to use the Debug function in the board, this is, program, use breakpoints, step over and even run the program, but I cannot use the Run function, as programming is working but it doesn't run. Even if I disconnect the ST-Link, and power off and on the board, the program doesn't run.

My program prints some messages over UART1 to tell if the program is running. In Debug mode I see the messages, but in Run mode there are no messages.

About the OpenOCD script file being used, I'm using the automated generation script. In "Connection Setup", the interface selected is SWD and frequency is set to 240khz. Under "Reset Mode" I have tested with "Hardware reset", "Connect under reset" and "Software system reset" but the behavior is the same for every choice.

I'm running out of ideas. Could it be a problem in the schematic design? any help is appreciated.

0690X000006CEPIQA4.png0690X000006CEPSQA4.png

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    October 23, 2018

    >>Could it be a problem in the schematic design?

    Pull BOOT0 LOW

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    OIba?
    OIba?Author
    Associate
    October 23, 2018

    Thanks Clive Two.Zero, I will try that.