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

Code cannot run when downloaded to flash

I find sth very strange. My code runs perfectly when in debug mode, but cannot run when the firmware is downloaded to flash. My code is based on the Basic_USB code provided by atmel(add the UDP interrupt).It seems the interrupt routine handler is never entered.

Can any one point out the possible causes of this problem? really confused.

Parents
  • The startup files (Cstartup.s and Cstartup_SAM7.c provided by Keil) and target options work well for the code including UART interrupt in flash release mode. But I dont know why it cannot work for the UDP interrupt in flash release mode.

    BTW, the MCU I am using is AT91SAM7S256, compiler is Keil MicroVision3 V3.23.

    Hope can get some help from u guys.

Reply
  • The startup files (Cstartup.s and Cstartup_SAM7.c provided by Keil) and target options work well for the code including UART interrupt in flash release mode. But I dont know why it cannot work for the UDP interrupt in flash release mode.

    BTW, the MCU I am using is AT91SAM7S256, compiler is Keil MicroVision3 V3.23.

    Hope can get some help from u guys.

Children
No data