I'm trying to get he LPCUSB serial example to work under my Crosswork IDE. It works, but only if i poll the interupt service routine, and do not enable the interrupts.
If i enalbe the interrupts its shoot in the abort stub on the first change it gets.
In my search i found many problems it concerning the peripheral clock. but its running on 30MHz, so that should be fine.
btw, if anyone is interested in my code so far, mail me at: russel592@hotmail.com
Regards,
Richard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the interrupts also working. I reacreated the interrupt according CTL (rowley crossworks only).
// Set ir interrupt
ctl_set_isr(22, 0, CTL_ISR_TRIGGER_FIXED, USBIntHandler, 0);
ctl_unmask_isr(22);
also removed the forward declaration off the usbinthandler. i suspect it has to do with a GCC bug #16634.Removing may also help with other ide or make a forward declaration without "__attribute__ ((interrupt("IRQ")))". but i didn't try this.
other usefull hits i came across (by default they are set correctly):
- Run the lpc on 60mhz
- Run peripheral clock on 30mhz
- make sure theres enough stack space
Usefull thins i did to make it compile
changed asm to __asm
in usbdebug.h
#define DBG debug_printf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm trying to get he LPCUSB serial example to work under my Crosswork IDE. It works, but only if i poll the interupt service routine, and do not enable the interrupts.
If i enalbe the interrupts its shoot in the abort stub on the first change it gets.
In my search i found many problems it concerning the peripheral clock. but its running on 30MHz, so that should be fine.
btw, if anyone is interested in my code so far, mail me at: russel592@hotmail.com
Regards,
Richard
Hello,
I have the interrupts also working. I reacreated the interrupt according CTL (rowley crossworks only).
// Set ir interrupt
ctl_set_isr(22, 0, CTL_ISR_TRIGGER_FIXED, USBIntHandler, 0);
ctl_unmask_isr(22);
also removed the forward declaration off the usbinthandler. i suspect it has to do with a GCC bug #16634.Removing may also help with other ide or make a forward declaration without "__attribute__ ((interrupt("IRQ")))". but i didn't try this.
other usefull hits i came across (by default they are set correctly):
- Run the lpc on 60mhz
- Run peripheral clock on 30mhz
- make sure theres enough stack space
Usefull thins i did to make it compile
changed asm to __asm
in usbdebug.h
#define DBG debug_printf