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.

MSP432P401Y 初始化调用 Power_init 跑飞

之前我们使用 MSP432P401R 做的产品已经小量使用。

现在新的产品使用 MSP432P401Y, 软件基于最新版本的  MSP432P4 SDK 开发,在 MSP432P401R 程序的基础上做了如下改动:

1. 在编译环境中预定义了 __MSP432P401Y__

2. Device Family 修改为 DeviceFamily_MSP432P4x1xI

3.  Driverlib调用,涉及到 Flash_Ctrl 的修改为 Flash_Ctrl_A 

但是程序在进入main之后调用驱动层 Power_init 的时候会跑飞,如果注释掉 Power_init,则可以正常运行。

单步跟踪,结果发现具体是在以下位置跑飞:

TI Drivers 函数 Power_init 调用 static bool initPerfControl(unsigned int initLevel) 函数的 SET_WAIT_STATES(BANK0, perfNew.flashWaitStates); 语句处。

不知道是否有熟悉 MSP432P401Y 的高手,或者对 MSP432P4 SDK 熟悉的请赐教! 谢谢了!