SREC file bad address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SREC file bad address

696 Views
barrypurtymun
Contributor II

Support,

I am working on a bootloader program for a Kinetis K60 chip.  I am using KDS.  I set my code (interrupts and data) to start at address 0x8000 so that my bootloader can reside in 0x0 - 0x7fff.  When I generate my application code, the first line is at address 0x400, then the rest of the lines are at 0x8000 +.  Is this line necessary to be programmed by the bootloader?  That block of addresses (less than 0x8000, is protected in my bootloader program to keep parts of my bootloader from being overwritten by the application.  Here are the first 3 lines of my SREC file.

S0150000537072696E675F5465737465722E73726563C6
S214000400FFFFFFFFFFFFFFFFFEFFFFFF7EFFFFFF79
S21400800000000020C500010099130100B51301000F

0 Kudos
1 Reply

303 Views
mjbcswitzerland
Specialist V

Barry

These are the flash configuration values, which are at a fixed address.

You MUST remove them from an application working with a boot loader since they cannot be programmed (only the boot loader can define them) - they are redundant at the application too.

If you find problems removing them there are two other workarounds:
1. Remove the fixed location that they are at so that they are just anywhere in the application.
2. When receiving them in the boot loader just ignore them if their address is not in the valid application area.
The second is also done (as a general safe-guard) in the uTasker SREC/iHEX loader: http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf

Regards

Mark


uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html

0 Kudos