I have a bootloader that I am trying to write and I'm not sure how to go about having program size, in bytes, coded somewhere in the images it tries to load.
Basically, I want to read the app code from flash, and the first 32-bits should be the length or size of the app. I would then read this many bytes do anything else and then jump to the app's reset vector. Also, when update the firmware I would read that many bytes into flash.
Is there a way I can do this with the Keil tools or do I have to write a utility program that appends this data on?
I'll keep saying this over and over: srecord.
http://srecord.sf.net
I see, probably be as fast as writing my own utility program then. Not sure I want to require a bunch of external software to be installed onto the computer to generate new code.
Not sure I want to require a bunch of external software to be installed onto the computer to generate new code.
It's a single file: srec_cat.exe. It would be easy to beat in terms of size, though.
I wasn't aware that it could run in a windows environment without cygwin or similar installed.