Hi all ! I'm looking for a simple code of bootloader using UDP or TCP communication (HTTP or TFTP example given by ST is with IAR kit and I don't want to use HTTP ou TFTP) that can be used, for example, with a VB6 interface (Select file, then Upgrade firmware).
Anyone know where I could find it ??
Thank you,
If your device can survive with just a bootloader, then you can erase the full application and continuously write the new application. When the last block is received, then you verify the checksum and if ok sets a marker that reboots should enter the application.
If your device can't survive with just a bootloader, then you will need to have flash space for two application copies, and not erase - or swap - application until the transfer is done and verified.