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.

MSP432E401Y: Using UART RX/TX Interrupt in Ethernet-based I/O Control example code.

Part Number: MSP432E401Y


Hi,

I am trying to use the lwip library for TCP/IP to serial communication, my code is based off the ethernet io control example. My code is in c++ and I seem to be running into issues to allow c++ code to run on the example. I'm having issues specifically with the Interrupts. My code goes into the default handler whenever I try to use the UART TX to send information coming from the ethernet port. Is there an example that uses the UART interrupts with the LWIP library. Also what are the necessary changes to allow c++ code to run the program.

Thanks

  • Kirushigan Parathan said:
    My code is in c++ and I seem to be running into issues to allow c++ code to run on the example. I'm having issues specifically with the Interrupts. My code goes into the default handler whenever I try to use the UART TX to send information coming from the ethernet port.

    Looking at the ethernet-based_io_control_MSP_EXP432E401Y_nortos_ccs example from SimpleLink MSP432E SDK 4.20.00.12 the ccs/startup_msp432e401y_ccs.c source file declares interrupt handlers as weak functions with an alias to Default_Handler. E.g.:

    extern void UART0_IRQHandler        (void) __attribute__((weak, alias("Default_Handler")));

    If your interrupt handler is in C++, then name mangling would result in a different name being generated and the Default_Handler being used instead of the handler your C++ source file.

    See How to migrate an C example with interrupts to C++

  • Thanks, that seemed to fix it,