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.

MSPM0G1107: vector table shift

Part Number: MSPM0G1107
Other Parts Discussed in Thread: SYSCONFIG

Hi,
customer implemented their own boot loader and has to shift the vector table to 0x00006000. Now he sees problems sometimes in the code execution depending if he includes a line of code more or less.
The problems vanish when using GCC.
Could it the problem come from the byte alignment? I read following e2e?

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1229394/mspm0l1305-changed-flash-memory-origin-to-0x2000-in-linker-requires-intvec-to-have-palign-8-why

Why is this not documented somewhere?
Why not change the default linker file in the SDK?
What else to take care when changing the vector table address?

Tools:
- CCS 20.2.0.12__1.8.0
- SysConfig 1.25.0
- MSPM0 SDK 2.6.0.05
- TI ARM Clang Compiler V4.0.3.LTS
- J-Link Ultra+ Programmieradapter

Regards, Holger

  • Hi Higer,

    I tried it with TI ARM CLANG before, no issue occurs. I can double try GCC to see whether it has this issues. It more likely to GCC issues.

    By the way, I am not sure which type your project set. When user generate bin or intel-hex files, they should manually do alignment in the porject property:

    B.R.

    Sal

  • Hi Sal,
    the problem is only with clang and with the shifting or the vectors.

    Where are you setting the alignment for the bin files? Why is it not set per default?

    Regards, Holger

  • Hi Holger,

    That is due to bin files is not enabled by default, we generate the .out files in default and has force its alignment with 8 bytes.

    - Please let me know if there any issues with the .out file.

    The bin files is generated by the Arm Hex Unity (convert the files from .out files to hex or bin files).

    Then after user enable this, some rulers need add into setting for MSPM0.

    You can open the project property and go to the page I shared here:

    By the way, I am not sure which type your project set. When user generate bin or intel-hex files, they should manually do alignment in the porject property:

    B.R.

    Sal