Skip to main content
suraj
Associate II
May 9, 2022
Question

Hello, I am using custom bootloader to update the application firmware using esp32. The bootloader code works properly in debug mode . But when in production mode the code hangs somewhere , i couldnt find where the code is getting stuck. Please ass

..

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
May 10, 2022

What STM32 are you using?

What's in debug/production mode? The ESP32 ?

Perhaps you can output some diagnostic/telemetry detail via a serial port to some terminal application so you can understand what is happening, and debug things that way.

Using the STM32 System Loader via USART?

Gets stuck where, can you break with a debugger?

Present the problem with more thought and clarity, it might help to get your own understanding of the problem to a point you can solve it. And give the rest of us something to swing at..

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
suraj
surajAuthor
Associate II
May 10, 2022

Hello,

I am using STM32F407VET6. My requirement is that i have to do the ota update of the stm application code. For that i am using esp32 to connect with mobile phone.

I am using custom bootloader located at 0x08004000 and 0x08008000 ​ (32k size).

When i put breakpoints and check the code works without any problem. But when i run the code normally ie without any breakpoints (indipendent)

The code is hanging. I am using crc 16 protocol to send data from mobile phone to esp32.

The recieved data ll be sent to stm32f using UART and ll be Stored in an array.

When i receive 128 block of 128bits I'll be writing the recieved data into the application space that starts from 0x0800C000.

​

​

​