User Tools

Site Tools

blog:2023-01-13_stm32_keil_debug_stop_at_beab_bkpt_0xab



2023-01-12 STM32 Keil Debug Stop at BEAB BKPT 0xAB

  • When I using the Keil debuging the program with redefined printf, debugging the program always stop at BEAB BKPT 0xAB immediate. After repear several times, then, the program enter normal main().

Solution

  • I add the program piece in my mail.c
  • #pragma import(__use_no_semihosting_swi)
    #pragma import(__use_no_semihosting) 
    
    void _sys_exit(int x) { 
        x = x; 
    } 
    
    struct __FILE  { 
        int handle; 
    }; 
    
    FILE __stdout;
  • When I run the code, it can run normally.

References

  • Link - Stm32 debug停留在“BKPT 0xAB”或者“SWI 0xAB”的解決辦法

TAGS

  • 170 person(s) visited this page until now.

Permalink blog/2023-01-13_stm32_keil_debug_stop_at_beab_bkpt_0xab.txt · Last modified: 2023/01/12 22:01 by jethro

oeffentlich