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:我们是否可以自定义从复位处理程序到 main () 之前的代码路径?

Guru**** 2805425 points

Other Parts Discussed in Thread: MSPM0G3507

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1610333/mspm0g3507-can-we-customize-the-code-path-from-reset-handler-to-before-main

器件型号: MSPM0G3507

您好、

对于 MSPM0G3507、我们是否可以在引导期间自定义处理、即从复位处理程序到 main () 运行之前?  如果可以进行自定义、您能否解释如何进行(要修改哪个文件/函数、例如启动代码/复位处理程序/系统初始化等)?

谢谢、

Conor

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    更改启动的认可方法是 CC 用户指南 (SPNU151W) 第节中所述的“挂钩“  6.10.1.可能最常用的是 _system_pre_init()。

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

    库启动代码的源代码位于以下位置(在我的系统上):  

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

    我上次尝试它时(好的,很久以前)、库将根据需要自动重建。

    如果您修改此代码、可能会有一条关于使保修失效的条款。