Skip to main content
sm23
Associate III
June 12, 2018
Question

[SOLVED] STM32L031G6U6 only works in debug debug mode

  • June 12, 2018
  • 1 reply
  • 688 views
Posted on June 12, 2018 at 09:41

Custom PCB using an STM32L031G6U6 (as a slave co-processor to a BLE module, to drive a graphics LCD display). We started with a Nucleo then migrated the project to a custom PCB which implements SWD directly and the program runs okay when debugging via an adapter lead to my Segger J-Link under the control of IAR Embedded Workbench for ARM 8.22.2. The STM is configured using STM32CubeMX 4.25.1. Both of these projects are contained in the attached zip file.

Previously, I have 4-5 years experience with STM32F205 and the IAR (and previously Atollic) IDEs, but this is my first project using STMCube.

1) Anyway, my progran runs fine on the STD debugger, but when I detach the SWD port the program does not start. The rise time of my DC PSU is 2ms. I have an external 100nF capacitor on NRST. I have tried putting 100K pull-up resistors on SWDIO and SWCLK but this made no difference. As far as I can tell, the program just does not start. Please can I have your ideas?

2) Can anybody tell me how to set up the level of POR from either STMCube or IAR?

Thanks in advance, Simon

#stm-32lo #reset-problem #bor
This topic has been closed for replies.

1 reply

sm23
sm23Author
Associate III
June 29, 2018
Posted on June 29, 2018 at 08:26

For what it's worth, this turned out to be a devious hardware (S/C) problem.