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.

How to set the interrupt in sysbios 6

How to set the .cfg when i use interrupt like UART, when i enable the interrupt, the system will go to IntDefaultHandler: while(1)

  • Hi,

       You'll need to create a Hwi object for the UART. Here's an example of what it should look like:

                   var hwiParams = new Hwi.Params();

                   hwiParams.arg = 0;

                   Program.global.uartHwi = Hwi.create(32, "&uartISRFxn", hwiParams);

    In the Hwi.create call, 32 is the interrupt number for that UART peripheral (you should find this in your device datasheet) and uartISRFxn is the interrupt handler that would be used to service that interrupt. 

    Let me know if this helps.

    Moses