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.

Getting isr_trap on eusci_a_uart_ex1_loopbackAdvanced

Other Parts Discussed in Thread: MSP-EXP430FR4133

Hi all,

I'm testing my new MSP-EXP430FR4133 LaunchPad, I tried the rtc_ex1_countmode sample from MSPWare/Libraries/Driver Library/MSP430FR2xx_4xx and it works fine.

Now I need to make the UART work so I'm trying the eusci_a_uart_ex1_loopbackAdvanced sample code, but it doesn't work. As soon as it executes the line with __enable_interrupt() it will jump to isr_trap.asm. I looked around on the forum and I know that this means that one of the ISR handlers is not declared, but I can see that EUSCI_A0_ISR(void) is declared like this:

#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A0_VECTOR
__interrupt
#elif defined(__GNUC__)
__attribute__((interrupt(USCI_A0_VECTOR)))
#endif
void EUSCI_A0_ISR(void)

I'm using CCS 6.1.2.00015 and MSPWare Version 3.20.00.37, I just installed all this yesterday. I tried a check for updates and there is none so I have the latest version. Why isn't this working? Is there a known bug on these sample code?

Second question, how can I know that my ISR handler is declared correctly and which one is calling the isr_trap?

Thanks in advance,

Pedro

  • To find out which interrupt was raised, you need separate interrupt handlers for all possible candidates.
  • I found the problem and it is a noob thing, I was running the UART sample code after running the RTC sample code, so I guess the RTC interrupt enable bits were active. I powered down / up the board and now it works!
    Now I think I have a second problem, as the TXD (P1.0) and RXD (P1.1) pins are used by the USB programming cable I need to disconnect the jumpers from J101 that connect to the eZ-FET on-board emulator... This will be a PIA while programming / testing the code... can I program the uC without this jumpers?
  • Ok, to program the uC I just need the SBWTDIO and SBWTCK jumpers, I can take out the RXD and TXD jumpers.
    You also need to be careful if the RXD and TXD jumpers are in and you put these pins as outputs.

**Attention** This is a public forum