Skip to content

Adding a FLASH resident bootloader #696

Answered by jnewcomb
jnewcomb asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for all your advice guys..
In the end.. I created a new sector in the application link script called vector_bootloader and merged boot binary into it.

  add_custom_command(TARGET ${project_name}
    POST_BUILD
	# JN: Although I've done my best to FILL() gaps in the linker script, they still creep in.
	# Seen this in sector .heap0 (NOLOAD), where FLASH seems to be allocated, but not initialised with a value i.e unprogrammed. This
	# can be seen as 'gaps' in the HEX files. Not good for calculating a reliable checksum!!!.. So.. the workaround is this..
	# Force fill 'unallocated' from 0x00 to 0xFF to match 'unprogrammed' FLASH. It's all rather insane if you ask me!
	# All this makes c…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by salkinium
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #625 on September 29, 2021 13:58.