Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Dual boot images?

$
0
0
An easy way to achieve that would be to: - reserve the first sector(s) of the flash for a bootloader (more of a switcher really) - reserve a small flash sector for control variables - reserve 2 different and equal regions for application - implement some kind of application validation into your bootloader and jump to selected application region reset_handler (vector table is always at the start of the region) Uploading new firmware data into the free region and validating it is achieved inside the application. Application switching is requested by the application by modifying some control variables inside its allocated sector and then doing a software reset. Not a difficult thing to do... LD linker file is the tough part, but maybe it's just because I always hated linker sript files. ;-) Hope it helps,

Viewing all articles
Browse latest Browse all 59170