/******************************************************************************/ /* LINKER COMMAND FILE FOR MSPBoot BOOTLOADER USING msp430f5529 */ /* File generated with MSPBoot_linkergen_Flash.pl on 06-22-2017 */ /*----------------------------------------------------------------------------*/ /****************************************************************************/ /* SPECIFY THE SYSTEM MEMORY MAP */ /****************************************************************************/ /* The following definitions can be changed to customize the memory map for a different device * or other adjustments * Note that the changes should match the definitions used in MEMORY and SECTIONS * */ /* RAM Memory Addresses */ __RAM_Start = 0x1C00; /* RAM Start */ __RAM_End = 0x5BFF; /* RAM End */ /* RAM shared between App and Bootloader, must be reserved */ PassWd = 0x1C00; /* Password sent by App to force boot mode */ StatCtrl = 0x1C02; /* Status and Control byte used by Comm */ /* Unreserved RAM used for Bootloader or App purposes */ _NonReserved_RAM_Start = 0x1C03; /* Non-reserved RAM */ /* Flash memory addresses */ /* App area : 4400-F3FF & 10000-149FF*/ /* Download area: 14A00-243FF*/ /* Boot area : F400-FFFF*/ _Appl1_Start = 0x10000; /* Start of Application1 area */ _Appl1_End = 0x2ADFF; /* End of Application1 area */ _Appl2_Start = 0x2AE00; /* Start of Application2 area */ _Appl2_End = 0x45BFF; /* End of Application2 area */ /* Reserved Flash locations for Bootloader Area */ __Boot_Start = 0x5CFE; /* Boot flash */ __Boot_Reset = 0xFFFE; /* Boot reset vector */ __Boot_VectorTable = 0xFF80; /* Boot vector table */ //__Boot_SharedCallbacks_Len = 6; /* Length of shared callbacks (2 calls =4B(msp430) or 8B(msp430x) */ //__Boot_SharedCallbacks = 0xFF7A; /* Start of Shared callbacks */ _Appl_Proxy_Vector_Start = 0x5C00; /* Proxy interrupt table */ /* Reserved Flash locations for Application Area */ _Appl1_Checksum_Checksum = (_Appl1_Start); /* CRC16 of Application */ _Appl1_Start_Memory = (_Appl1_Start+2); /* Application Area */ _Appl1_CRC_Size1 = (_Appl1_End - _Appl1_Start_Memory +1); /* Number of bytes in lower memory calculated for CRC */ _Appl2_Checksum = (_Appl2_Start); /* CRC16 of Application */ _Appl2_Start_Memory = (_Appl2_Start+2); /* Application Area */ _Appl2_CRC_Size1 = (_Appl2_End - _App2_Start_Memory +1); /* Number of bytes in lower memory calculated for CRC */ _Appl_Reset_Vector = (__Boot_Start - 2); /* MEMORY definition, adjust based on definitions above */ MEMORY { SFR : origin = 0x0000, length = 0x0010 PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0 PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100 // RAM from _NonReserved_RAM_Start - __RAM_End RAM : origin = 0x1C03, length = 0x3FFC // Flash from __Boot_Start -( __Boot_SharedCallbacks or INT_VECTOR_TABLE) FLASH : origin = 0x5CFE, length = 0xA282 // Shared callbacks from __Boot_SharedCallbacks + Len (when used) //BOOT_SHARED_CALLBACKS : origin = 0xFF7A, length = 6 // Boot vector Table from __Boot_VectorTable- __Boot_Reset INT_VECTOR_TABLE : origin = 0xFF80, length = 0x7E // Boot reset from __Boot_Reset-_Flash_End RESET : origin = 0xFFFE, length = 0x0002 } /****************************************************************************/ /* SPECIFY THE SECTIONS ALLOCATION INTO MEMORY */ /****************************************************************************/ SECTIONS { .bss : {} > RAM /* GLOBAL & STATIC VARS */ .data : {} > RAM /* GLOBAL & STATIC VARS */ .sysmem : {} > RAM /* DYNAMIC MEMORY ALLOCATION AREA */ .stack : {} > RAM (HIGH) /* SOFTWARE SYSTEM STACK */ .text : {} >> FLASH /* CODE */ .cinit : {} > FLASH /* INITIALIZATION TABLES*/ .const : {} >> FLASH /* CONSTANT DATA */ .cio : {} > RAM /* C I/O BUFFER */ .BOOT_APP_VECTORS : {} > BOOT_SHARED_CALLBACKS /* MSP430 INTERRUPT VECTORS */ .BOOT_VECTOR_TABLE : {} > INT_VECTOR_TABLE .reset : {} > RESET /* MSP430 RESET VECTOR */ } /****************************************************************************/ /* INCLUDE PERIPHERALS MEMORY MAP */ /****************************************************************************/ -l msp430f5438a.cmd