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

Cannot set a breakpoint in an assembly function

Hello,

Before I start nagging to Keil support about this, maybe you can help me: I have a couple of assembly functions, like this one

__asm __irq void DAbt_Handler(void)
{
        IMPORT gp_software_event
        IMPORT s_data_abort_exception_code

        // no point in saving registers. this is a fatal software failure

        // fill in parameter list for function call to application
        MOV             R0, #1 // critical
        LDR             R1, =s_data_abort_exception_code // error code
        LDR             R1, [R1]
        SUB             R2, LR, #8 // the instruction that caused the failure
        MOV             R3, #0  // parameter
        LDR             R4, =gp_software_event
        LDR             R4, [R4]
        BX              R4
}

now, this code is executed - of that I'm sure. But I cannot set a breakpoint anywhere in it (but I can in C functions). I tried to play with optimization etc. to no avail. Anybody...?

0