stm32-mw-openbl icon indicating copy to clipboard operation
stm32-mw-openbl copied to clipboard

Why is the compatibility of openbl so poor?

Open arilink opened this issue 3 years ago • 1 comments

According to the content described in the readme, openbl should be a bootloader compatible with all stm32 chips. However, when I transplanted openbl to stm32f1 following the program of stm32u5, there were a lot of errors. The flash_interface should be a file compatible with all devices. , but now there are so many errors I don't know how to fix it

arilink avatar Feb 25 '22 07:02 arilink

Hi @arilink-tech

The Open Bootloader MW part is HW independent and will not need porting from one device to another as its code doesn’t access directly to HW resources.

However, from one product to another we need to update the application code that provides to MW code the access to HW resources.

So, interfaces files like flash_interface.c, usart_interface.c, ram_interface.c… contain code that has access to HW this is why it must be ported from one device to another. In general, the code that is under …\Applications\OpenBootloader\OpenBootloader\Targer\ is HW dependent.

You can for example compare these two applications to understand how porting is done from one device to another:

Hope this helps

ALAASTM avatar Apr 28 '22 12:04 ALAASTM