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.

MSPM0G3507: Linker script modification

Part Number: MSPM0G3507

Tool/software:

Hi,

          I have been trying to manipulate the whole flash memory regions to make it customizable. But I am facing some issues while do that. I have listed all the problems/questions. 

 

          I have been using MSPM0G3507 board, so all the issues are related to this microcontroller board.

1.

In this board, there is no EEPROM/ data flash area. So, if we want to store some data which related to the calibration or anything else, we can use the lower 32kB of memory as an EEPROM. But, typically the code resides

in the flash with the starting address of 0x00000000.  If we want to utilize the EEPROM section, the code should to shifted to the offset by the EEPROM length as well as the vector table address also. According to that, we

tried to modify the linker script. During the build project, the linker script makes the default by itself, to restrict this thing, disabled the linker script generation option which is in the CCS. I have attached the image which 

related to that.

 

        I gives the error " flash programmer error, length is 4, must be divisible by 8 while flash programmer programming by 64 bits". And one more thing, it gives the same error while disabled the linker file generation option,

even though linker script has no modification. Kindly, give me an idea to resolve this issue. 

      Give me the procedure must be followed that if we want to change the program starting address...

Thank you,

  • Hi,

    One obvious error I noticed that, if the FLASH start from 0x2000 then the length should be 0x18000 instead of 0x20000. The physical address of the flash is 0x0 to 0x20000. you can split it into several range but the total length of the flash should not exceed 0x20000.

    Best regards,

    Cash Hao