SLAA450G April 2010 – April 2020
For this BSL project, the following modifications needs to be made to the file:
CCS | IAR |
---|---|
Info memory segments are no longer used for data and therefore can be removed. | |
Remove or comment (/* and */) four lines in MEMORY section
/* INFOA: origin = 0x10C0, length = 0x0040 */ /* INFOB: origin = 0x1080, length = 0x0040 */ /* INFOC: origin = 0x1040, length = 0x0040 */ /* INFOD: origin = 0x1000, length = 0x0040 */ |
Remove or comment (//) five lines
//-Z(CONST)INFO=1000-10FF //-Z(CONST)INFOA=10C0-10FF //-Z(CONST)INFOB=1080-10BF //-Z(CONST)INFOC=1040-107F //-Z(CONST)INFOD=1000-103F |
This no longer used memory is assigned to one new memory block labeled BSL and containing code. The following line is added below the just removed or commented lines. | |
BSL : origin = 0x1000, length = 0x00FE | -P(CODE)BSL=1000-10FD |
Assign content to memory area | |
Remove four lines from SECTIONS part:
/* MSP430 INFO FLASH MEMORY SEGMENTS */ /* .infoA : {} > INFOA *//* .infoB : {} > INFOB */ /* .infoC : {} > INFOC */ /* .infoD : {} > INFOD */ Add one line below these lines: bsl : {} > BSL /* BSL CODE */ |
Already done with above statement |