This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

crash while starting / startup

hello,

I tested the HID example on the eval board (with lpc2148) and it works fine.
Then I made my own pcb using lpc2146 (not a lpc2148).
I can download my firmware using JTAG to the lpc2146. When i start it, then it crashs at startup file.

There is any difference between lpc2148 and lpc2146? (axcept flash size)


thanks,
Joseph

Parents
  • hello,

    I inserted a breakpoint is in the STARTUP file at "Vectors:"

    when I use the eval board, the program jumps to "Reset_Addr:", where the controller is initialized and at the end the program jumps to main().

    when I use my pcb, the program does not jump to "Reset_Addr:". The program goes as follow till "FIQ_Addr" and then in an endless loop!

    STARTUP FILE

    Vectors:        LDR     PC,Reset_Addr
                    LDR     PC,Undef_Addr
                    LDR     PC,SWI_Addr
                    LDR     PC,PAbt_Addr
                    LDR     PC,DAbt_Addr
                    NOP                            /* Reserved Vector */
    ;               LDR     PC,IRQ_Addr
                    LDR     PC,[PC, #-0x0FF0]      /* Vector from VicVectAddr */
                    LDR     PC,FIQ_Addr
    

    The Eval board uses a crystal (12MHz) with two caps.

    My pcb uses a clock source (12MHz), which is connected to XTAL1 only, and XTAL2 is open. Is this the problem? How should I configure the LPC2148 in order to use the clock source on XTAL1?


    Joseph

Reply
  • hello,

    I inserted a breakpoint is in the STARTUP file at "Vectors:"

    when I use the eval board, the program jumps to "Reset_Addr:", where the controller is initialized and at the end the program jumps to main().

    when I use my pcb, the program does not jump to "Reset_Addr:". The program goes as follow till "FIQ_Addr" and then in an endless loop!

    STARTUP FILE

    Vectors:        LDR     PC,Reset_Addr
                    LDR     PC,Undef_Addr
                    LDR     PC,SWI_Addr
                    LDR     PC,PAbt_Addr
                    LDR     PC,DAbt_Addr
                    NOP                            /* Reserved Vector */
    ;               LDR     PC,IRQ_Addr
                    LDR     PC,[PC, #-0x0FF0]      /* Vector from VicVectAddr */
                    LDR     PC,FIQ_Addr
    

    The Eval board uses a crystal (12MHz) with two caps.

    My pcb uses a clock source (12MHz), which is connected to XTAL1 only, and XTAL2 is open. Is this the problem? How should I configure the LPC2148 in order to use the clock source on XTAL1?


    Joseph

Children
No data