Error: an unexpected interrupt occurs or a specific handler is not present in the application code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error: an unexpected interrupt occurs or a specific handler is not present in the application code

Jump to solution
1,778 Views
doini
Contributor III

Hello,

I created a new C++ project based on LPCOpen for the LPCXpresso1549 demo board, and I copied the code from LPCOpen periph_adc project to try it in my C++ project. It compiled just fine, but at run time it will block here:

 

//*****************************************************************************

// Processor ends up here if an unexpected interrupt occurs or a specific

// handler is not present in the application code.

//*****************************************************************************

__attribute__ ((section(".after_vectors")))

void IntDefaultHandler(void)

{ while(1) {}

}

 

Also the message: 'No source available for "0x30000b8" ' appears.

I attach here my project.

 

I would really appreciate any help.

Thank you,

Doini

Original Attachment has been moved to: Workspace_Receiver_LPC1549.zip

Labels (4)
0 Kudos
1 Solution
1,429 Views
doini
Contributor III

Thank you, I wrote extern "C" {...} around the interrupt functions and it is working now, the error disappeared.

Doini

View solution in original post

0 Kudos
2 Replies
1,429 Views
lpcxpresso_supp
NXP Employee
NXP Employee

One thing to watch with C++ is the name mangling of the interrupt handler names.  For more details see : Startup code and interrupt handlers 

With regards to the message 'No source available for "0x30000b8" - this does occasionally happen. But you can just ignore this and close the tab containing it. The debugger has simply stopped the MCU during the connection sequence whilst it was executing code in the ROM bootloader (causing the IDE to try to display the code at that location - which of course there is no source for in your application).

Regards,

LPCXpresso Support

1,430 Views
doini
Contributor III

Thank you, I wrote extern "C" {...} around the interrupt functions and it is working now, the error disappeared.

Doini

0 Kudos