cancel
Showing results for 
Search instead for 
Did you mean: 

UART based Boot loader for STM8 MCU's

Utkarash Patil
Associate III

Hello All,

We have designed a custom board using STM8L052C6 MCU chip, where we have include a Boot loader functionality in it.

This Boot loader is UART based where the application binary file will be received on the Custom board in packet over UART and then will launch the application.

This Boot loader works fine when i am using 1 custom board.

Now I have such 6 custom boards which are individually receiving data and should update the application binary file.

However, When i use such 6 device with same code some of the devices are facing issue and the code gets stuck in boot loader.

Thanks and Regards

Utkarash

1 REPLY 1
Ozone
Lead

No one here has a magic crystal ball, or knows your bootloader sources.

With the scanty information available, you get only very general comments and recommendations.

Which boils down to: Either debug your bootloader with those failing boards, or instrument it to observe it with another tool.

A common problem are Flash erase/program times.

Check the datasheet for maximal times (often in the seconds range), and adapt your routines accordingly.