This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430F5247: Partition of FLASH (FLASH & FLASH2) used in linker file of MSP430F5247

Part Number: MSP430F5247

Tool/software: Code Composer Studio

As MSP430F5247 having FLASH size of 64KB. There is partition used for FLASH and FLASH2 in linker file in CCS Version: 9.2.0.00013.

I am using compiler of TI v18.12.4.LTS. The linker file lnk_msp430f5247.cmd Version: 1.207 in which following code is given as

MEMORY
{
SFR : origin = 0x0000, length = 0x0010
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
RAM : origin = 0x2400, length = 0x2000
INFOA : origin = 0x1980, length = 0x0080
INFOB : origin = 0x1900, length = 0x0080
INFOC : origin = 0x1880, length = 0x0080
INFOD : origin = 0x1800, length = 0x0080
FLASH : origin = 0x4400, length = 0xBB80
FLASH2 : origin = 0x10000,length = 0x4400
INT00 : origin = 0xFF80, length = 0x0002
INT01 : origin = 0xFF82, length = 0x0002
.
.
.
}

Can we change the length of FLASH and FLASH to permissible limit of 64KB of total FLASH?

I have compiled code with swapping the lenght of FLASH and FLASH2, it compiled but will it work on actual hardware?
FLASH : origin = 0x4400, length =0x4400
FLASH2 : origin = 0x10000,length = 0xBB80

Why there is need of partition? What are the factor to to consider for partition?

  • Hello,

    You can change the length of FLASH/FLASH2, but can not beyond their physical range and overwrite the interrupt vector section (0xFF80-0xFFFF).

    The need of two partition is also because the FLASH memory is discontinuous due to interrupt vector. 

**Attention** This is a public forum