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.

[参考译文] CCS/MSP432P401R:MSP432P401R Launchpad:Timer32中断丢失或 FAULTISR

Guru**** 2540720 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/570259/ccs-msp432p401r-msp432p401r-launchpad-timer32-interrupt-missed-or-faultisr

器件型号:MSP432P401R

工具/软件:Code Composer Studio

您好!

我正在尝试为 MSP432重复使用大约一年前编写的一些代码。  遗憾的是、我为处理时钟编写的包装程序代码似乎不再起作用。

在简单的延迟函数中、进入循环似乎会触发 FAULTISR。  如果我将映射函数更改为 MAP_PCM_gotoLPM0InterruptSafe  至  MAP_PCM_gotoLPM0 、则会触发以下 ISR、但当延迟参数过低时会错过中断。

我复制了以下相关材料;是否有人可以提供任何帮助?

非常感谢您的观看、

塞安

#include "clock.h"
#include "driverlib.h"

静态易失性 bool waitT32 = true;

void clock_setup (void){
//以24MHz
MAP_CS_initClockSignal (CS_MCLK、CS_MOinitDOSC_select、CS_clock_divider)运行 MCLK
(void 24MHz MAP_CS_initClock (






32);timer32_timerature_timerature_timer32_timerature_timer32_timeratege_timer32_timer32_m_timerat_timer32_m_timest_timer32_timer32_timest_timer32_timest_em_em_timerat_timest_timerat_timer32_timer32_timest_em_timer32_timest_timest_em_timest_timest_timerature_timer32_timest_timerature_


MAP_Timer32_clearInterruptFlag ((uint32_t) TIMER32_0_BASE);

MAP_Interrupt_enableInterrupt (INT_T32_INT1);
}

void timer32_delay (uint32_t msDelay){
uint64_t sdelay = 1500* tmsdelay;
if (sdelay)(sdelay =



32) t_t32 (uint32) t_delay = uint32_t/t32) t/t_delt32 (t/t/t32) t_delt/t/tagt32 (t/t/t_delt/t32) t/t/t/t/t/t/t/tit_timerefort32) t/t/t/t/t/t/t/

TRUE);
while (waitT32){//忽略处理器端
MAP_PCM_gotoLPM0InterruptSafe ();
}


void timer32_ISR (void){
MAP_Timer32_clearInterruptFlag (TIMER32_0_BASE);
waitT32 = false;
}

编辑:使用 Code Composer v6.2.0.00050和 Linux Debian 发行版(如果两者都相关)。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    嘿 Sean、
    对 MSP432进行了许多更改。 修订版 C 芯片以及对 IDE 的更新。您是否为最新芯片更新了 CCS? 您是否正在使用最新器件?

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

    尊敬的 Chris:

    感谢您的回复。

    我已经更新了 CCS、但芯片可能是较旧的版本、我认为是版本 B。  实际上、记住第一手资料、IDE 确实提供了有关使用"预制器件"的警告。

    如果这确实是问题的根源、我是否可以删除某些更新以便与我当前持有的芯片配合使用?  或者是否有替代解决方案?

    谢谢、

    塞安