MSPM0G3507: Can we customize the code path from Reset Handler to before main()?

Guru 13285 points

Part Number: MSPM0G3507

Hi,

For MSPM0G3507, can we customize the processing during boot, i.e., from the reset handler up to before main() runs? If customization is possible, could you explain how to do it (which file/function to modify, e.g., startup code / reset handler / SystemInit, etc.)?

Thanks,

Conor

  • The sanctioned methods for altering the startup are the "hooks" described in CC User's Guide (SPNU151W) Sec 6.10.1. Perhaps the most commonly used is _system_pre_init().

    ------------------

    The source for the library startup code is (on my system) in: 

    C:\ti\ccs2040\ccs\tools\compiler\ti-cgt-armllvm_4.0.4.LTS\lib\src\boot_cortex_m.c

    The last time I tried it (OK, a long time ago) the library would rebuild automatically as needed.

    If you modify this code, there's probably a clause somewhere about voiding your warranty.