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

BKPT 0xAB - problem without SWI

Hi,

I have the same problem, program stuck at bkpt 0xab, but I do not use serial wire interface (SWI). The Ulink2 is configured JTAG and SWJ checkbox is noch marked.
My program runs before I added C++ code (a mix of c and cpp files - main() is in a standerd c file), sprintf() is used now - but not printf().
Any ideas?

Parents
  • Hi Marcus,

    I have used the file retarget.c in my project,
    and have tried to add some code for _sys_open:

    -------------------------------------------------
    #include "rt_misc.h"

    #pragma import(__use_no_semihosting_swi)

    int _sys_open(const char *name,int return_code) {
    label: goto label; // endless loop
    }

    void _sys_exit(int return_code) {
    label: goto label; // endless loop
    }

    void _ttywrch(int ch) { // Not used (No Output)
    } -------------------------------------------------
    Now I have only linker error left:
    Symbol _sys_open multiply defined (by sys_io.o and retarget.o)

    I NEED MORE HELP. Which tool documentation? Believe me I've searched for days before using the forum. The problem is that there are so much documentations the most of them absolutly useless.

    Edi

Reply
  • Hi Marcus,

    I have used the file retarget.c in my project,
    and have tried to add some code for _sys_open:

    -------------------------------------------------
    #include "rt_misc.h"

    #pragma import(__use_no_semihosting_swi)

    int _sys_open(const char *name,int return_code) {
    label: goto label; // endless loop
    }

    void _sys_exit(int return_code) {
    label: goto label; // endless loop
    }

    void _ttywrch(int ch) { // Not used (No Output)
    } -------------------------------------------------
    Now I have only linker error left:
    Symbol _sys_open multiply defined (by sys_io.o and retarget.o)

    I NEED MORE HELP. Which tool documentation? Believe me I've searched for days before using the forum. The problem is that there are so much documentations the most of them absolutly useless.

    Edi

Children