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.
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.