Florian Harmuth

Unhandled Interrupt message

Discussion created by Florian Harmuth on Jun 22, 2012
Latest reply on Jul 10, 2012 by Martin Kojtal

Hello all,
changing the call of _io_printf() to printf() (code see below) results in an unhandled interrupt message, if this function is called. I know that this isn't the real reason for this error but where I can start my search to solve this strange behaviour?

...

*** UNHANDLED INTERRUPT ***
Vector #: 0x03 Task Id: 0x10004 Td_ptr: 0x1ffff9fc
PC: 0x00000782 LR: 0x000074ef PSP: 0x20006190 MSP: 0x1fff5958 PSR: 0x00000003

...

working:
int8_t parseMsg()
{
    while(1) { _time_delay(10); _io_printf("1"); }
    return 0;
}

not working:
int8_t parseMsg()
{
    while(1) { _time_delay(10); printf("1"); }
    return 0;
}

If I trying to run the same code in the debugger anything works fine.

Any hints? (stack size already checked)


Regards,
flo

Outcomes