We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Trying to get a simple flashing LED application running on the target board and can compile - load and single step through code (F11) no problem, LED flashes.
If I try to jump over any statement / method using F10 the program freezes and looks like its in STM32F10x.s
Default_Handler PROC
EXPORT WWDG_IRQHandler [WEAK] . . . . EXTI15_10_IRQHandler RTCAlarm_IRQHandler USBWakeUp_IRQHandler
=====> (looks to break here) B .
main is as follows...
int main(void) { #ifdef DEBUG debug(); #endif
stm32_Init();
while (1) { /* Turn on LD1 */ GPIO_SetBits(GPIO_LED, GPIO_Pin_12); /* Insert delay */ Delay(HALF_SECOND);
/* Turn off LD2 and LD3 */ GPIO_ResetBits(GPIO_LED, GPIO_Pin_12); /* Insert delay */ Delay(HALF_SECOND);
} }
Tried everything I can think off so any ideas / help appreciated.
Thanks in advance..
Hi,
EXTI15_10_IRQHandler RTCAlarm_IRQHandler USBWakeUp_IRQHandler B .
Of course it "looks" there, because B . is a branch on itselv.
If one of the interrupts from the "list" above occurs, that is not programmed in your software, this default handler is called, and it contains an endless loop.
The [weak] attribute means, that if the handler name is found in the user software, that name is taken instead. If not, the [weak] one is taken as default.
> and Keil uVision 4.0 Lockup issue does uVision hang then?
BR, /th.
LOL, little typo: "looks" means "locks" :-)
I can CTRL F5 and stop program which shows the code in interrupt handler default case.
Can't understand why there would be a difference single stepping to F10'ing over a method.
Any way to globally disable all interrupts to try and home in on bug.
Thanks
Features are not well Simulated at the moment?
http://www.keil.com/dd/chip/4231.htm
Tried an old uV3 project and it works ok so problem sorted..
Thanks for input anyway.