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

Olimex STM32-P103 and Keil uVision 4.0 Lockup issue

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

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

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

Children