Menu

Ser Example on Crossworks partially working

Help
rDols
2010-08-13
2013-04-17
  • rDols

    rDols - 2010-08-13

    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

     
  • rDols

    rDols - 2010-08-22

    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

     

Log in to post a comment.