Hello,
Simple problem, but needs detailed answer, as I don't have actual hardware accessible:
1- I'm using MSP430F5525, and I want to modify the memory map to fit in my application code
2- The default FLASH and FLASH2 segments are shown below, have these lengthes:
MEMORY
{
SFR : origin = 0x0000, length = 0x0010
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
RAM : origin = 0x2400, length = 0x1000
USBRAM : origin = 0x1C00, length = 0x0800
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
INT02 : origin = 0xFF84, length = 0x0002
3- The objective is to cut down FLASH segment to length=0x7000 instead of 0xBB80, and use this space in FLASH2
4- I tried changing the values to the following but I got a memory map error as shown below:
MEMORY
{
SFR : origin = 0x0000, length = 0x0010
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
RAM : origin = 0x2400, length = 0x1000
USBRAM : origin = 0x1C00, length = 0x0800
INFOA : origin = 0x1980, length = 0x0080
INFOB : origin = 0x1900, length = 0x0080
INFOC : origin = 0x1880, length = 0x0080
INFOD : origin = 0x1800, length = 0x0080
FLASH : origin = 0x4400, length = 0x7000 //0xBB80
FLASH2 : origin = 0x10000,length = 0x9000 //0x4400
Error:
Questions:
- What are the correct FLASH and FLASH2 origin values so that I get it working? Please write the lines in details
- is there anything else that needs to be changed?
- Note: I'll place 1 large array in this combined section, so I think it should be continuous in memory?



