ARM & LPC2148 -> Program stucks on Startup

Hello

I have an LPC2148-board and compiled using WINARM (toolchain from Martin Thomas) the usb stack demo program released by Bertrik Sikken.

Compilation is working fine but if I uploaded the program to the controller board and start debugging, the program stucks in startup.c on line:

/*  Stubs for various interrupts (may be replaced later)  */
/*  ----------------------------------------------------  */

void IRQ_Routine (void) {     <===========stuck
	while (1) ;	
}

void FIQ_Routine (void)  {
	while (1) ;	
}
...

Does anybody have an idea how to solve this problem. Thank you very much in advance

Geri

It’s a bug in your startup code. Most likely you’re trying to call a C function or some other function that needs a stack or an initialized data segment, before they have been properly set up (or initialized in the case of .data).

It could also be the memory layout of your board differs, and the code isn’t properly relocated for it.

A peripheral is generating an interrupt, wich is handled by your routine. But it contains a while (1) ; the perfect endless loop :lol:

Check the USB stack source code, it probably contains an IRQ handler. It should be used in the vector table instead of yours.

Angelo