Parse HEX File to HAL_FLASH_PROGRAM()
Hello everyone, I want to make bootloader, everything is done, but not working.
1. I create two apps in STM32CubeIDE:
BOOTLOADER: 0x08000000
APPLICATION: 0x08020000
I did simple program and I jump from app to boot, and from boot to app (It's works fine).
2. I send (In next step using GSM) my hex lines using UART, and I receive it correct.
3.I get address, type, checksum from every lines and I parse only data bytes (I see in debug its working good).
4. I clear memory, and try to flash program and just not working.
When I parse hex file I skip the first line and two the last line (do not contain data). In every line I skip ":10100000" (length, address, type)
I don't know if I do this correctly.
Someone maybe know why the penultimate line have type 05, data like: 08023C25
What should I do?
