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

MCB2929 board not detecting in Keil

Hi,

I wrote a code for MCB2929 using keil uvision4. In debugging mode my code was getting stuck somewhere in startup code. So i commented one line in startup code

 USB_IRQ_H_Handler
   USB_IRQHandler
                B       .
                ENDP
 
 

I commented third line i.e. "B  ." and loaded the code using ulink2.
Now the board is not getting detected by keil. I undo the changes but still the board is not getting detected in keil. Can anyone suggest me regarding the same.

Thanks


Parents
  • Sounds more like your code is enabling interrupts you haven't created handlers to service.

    You might also want to look if you're just getting dumped there by a Hard Fault, if all the weak links point to the same infinite loop branch.

    Think a bit harder about what, and how you're presenting your problem.

    If you honestly think the problem is the start up code, then disable "run to main" and step through it.

Reply
  • Sounds more like your code is enabling interrupts you haven't created handlers to service.

    You might also want to look if you're just getting dumped there by a Hard Fault, if all the weak links point to the same infinite loop branch.

    Think a bit harder about what, and how you're presenting your problem.

    If you honestly think the problem is the start up code, then disable "run to main" and step through it.

Children
  • The board was working.fine before. After commenting that line in startup code now the board is nogetting detected. The board is. dead or some problem with the board...if I try to erase the flash it says cannot erase when cpu is running. The board is not detecting in keil.

  • The board is. dead or some problem with the board
    No, the board is not dead. The problem is with the software.

    if I try to erase the flash it says cannot erase when cpu is running.
    That means software needs to be modified.

    The board is not detecting in keil.
    I assume you are saying in debugging mode. Keil is IDE, not an interface.

    If you have any working code, generate a hex file and program using ISP.
    Advise: Never play with startup code or header files unless you know what you are doing.

  • Lpc2929 doesn't support isp programming. I tried to erase the chip using ulink2 nd jlink both. But the board is not getting detected.