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,
UDP and TCP are just to do with communication - the purpose of the communication is irrelevant!
You should consider this in 2 parts
1. Transferring the data: that's where UDP, TCP, etc come in - the purpose of the communication doesn't really matter;
2. The bootloader: This doesn't really care where the data came from, nor how it got there - it just needs to load it, and run it.
Thanks for your answer, it confirms what I was thinking.
Is there a simple Bootloader.c file anywhere that summary all the functions and step to upgrade a firmware ?
Is New application must be entirely loaded before bootloader flash it or can it be flashed in several parts (received packet after received packet : my application will be larger than 100KB and I have to know if an external RAM will have to be used for the bootloader to store the application before the flash)
thank you,
It would have to be specific to the particular chip or, at least, family - so the manufacturer's support site is probably the best place to look...
"Is New application must be entirely loaded before bootloader flash it or can it be flashed in several parts..."
Will depend on the chip.
"if an external RAM will have to be used for the bootloader to store the application before the flash"
I will go to ST site for STR912xx devices !!
Thread closed for me.
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.