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.

[参考译文] CC2651R3:启动文件为何包含在 nortos 库中?

Guru**** 2460850 points


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

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1230668/cc2651r3-why-is-the-startup-file-included-in-nortos-library

器件型号:CC2651R3

如标题所示、为什么启动文件(startup_cc13x1_cc26x1_ticlang.c.obj)包含在 nortos (nortos_cc26x1.a)库中? 如何修改 startup 文件或其中的函数?

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

    您好、JHi:

    kernel\nortos\startup\startup_cc13x1_cc26x1_ticlang.c 包含 复位 ISR (在处理器在复位事件后首次开始执行时调用)和默认故障处理程序。  如果处理正确、resetISR 立即跳转到 C 初始化例程(main)。   您为什么要修改此文件?

    此致、
    Ryan

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

    以修改例如的默认处理程序。 在某些用例中、您可以/想要在跳转到 main 之前做一些事情。 通常、您需要将 startup 文件包含到项目中。 我认为把它包括在一个库中是愚蠢的。  

    从文档中:

    Startup Files
    A “nortos” application should use the startup files and linker command files that come packaged with the “nortos” TI Driver examples. 
    These files have been tailored for the devices and OS in use. The startup files contain the initialized vector table, which can be modified 
    to suit the application needs. There is a different startup file and linker command file for each supported compiler (CCS, GCC, IAR).
    
    The SimpleLink examples come packaged with the necessary startup and linker command files from the particular driverlib that is contained in the SDK.