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.

[参考译文] RTOS/MSP432E401Y:我们能否在 Startup.resetFxn 中使用 DriverLib 调用?

Guru**** 2577385 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/798138/rtos-msp432e401y-can-we-use-driverlib-calls-in-the-startup-resetfxn

器件型号:MSP432E401Y

工具/软件:TI-RTOS

我们在使用连接到 EPI 的外部 SDRAM 的系统中使用 MSP432E SDK v3.10.0.11。 我们希望使用 DriverLib API 为 SDRAM 配置 EPI、并且我们需要在启动过程的早期进行配置。 问题是、我们能否在与 Startup.resetFxn 关联的函数内使用 DriverLib 调用?

引起关注的原因是 RTSC 启动序列的下图 Wiki 建议在 C 运行时初始化之前执行 resetFxn、而 driverlib 是 C 库。  

谢谢

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

    由于栈未初始化、因此只要不使用栈、即、就可以使用 Driverlib API
    *不要使用局部变量
    *不要调用使用大量本地变量的 Driverlib API。
    *不要调用调用调用其他 Driverlib API 的 Driverlib API。

    由于此处的目标似乎是初始化外设、因此您应该能够满足上述限制。

    谢谢、
    SAI