I do have the CCS beta 2 (Version: 6.1.1.00027) installed on mac os x 10.9.5 to program a MSP432P01R launchpad. I am struggling to get the timer32 module to work.
I tried the example-project from the driverlib-section in the ti resource explorer ("timer32_periodic_mode_led_toggle") --> timer32_isr was never called (or the debugger failed to catch the breakpoint).
I also tried the following minimalistic program to initialize and start the timer:
//*****************************************************************************
//
// MSP432 main.c template - Empty main
//
//****************************************************************************
#include "msp.h"
#include "driverlib.h"
void main(void)
{
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
//user driverlib to setup timer32
MAP_Timer32_initModule(TIMER32_0_MODULE, TIMER32_PRESCALER_256, TIMER32_32BIT,
TIMER32_PERIODIC_MODE);
MAP_Timer32_setCount(TIMER32_0_MODULE, 187);
MAP_Timer32_enableInterrupt(TIMER32_0_MODULE);
//Use driverlib to globally enable interrupts
MAP_Interrupt_enableSleepOnIsrExit(); // Enable sleep on exit from ISR
MAP_Interrupt_enableMaster();
//Use driverlib to start the timer
MAP_Timer32_startTimer(TIMER32_0_MODULE, false);
}
Again, the defaultISR is not called. What am I doing wrong?
Any help appreciated.