cancel
Showing results for 
Search instead for 
Did you mean: 

Program only working on debug mode fails after reset with STM32WLE5JC

JPrad.1
Associate II

Hi!

I'm working with the STM32WLE5JCC lora IC. Im using it to read sensor data through I2C and a voltage with the ADC. Program works fine in debug mode. When you unplug it from the pc it keeps working. Then, if you reset the board, ADC and I2C return an error.

What changes between debuging and after the reset?

This works using the MSI (48Mhz) and the RTC LSE.

My external clocks are:

TCXO 32MHz and a RTC

if i change those settings to my TCXO and RTC it stops working.

Thank you very much.

1 ACCEPTED SOLUTION

Accepted Solutions
JPrad.1
Associate II

Solved: The problem was with the stop mode.

After disabling it, it worked fine. To use it with stop mode, you must call the initialization functions.

Hope it helps :)

View solution in original post

1 REPLY 1
JPrad.1
Associate II

Solved: The problem was with the stop mode.

After disabling it, it worked fine. To use it with stop mode, you must call the initialization functions.

Hope it helps :)