This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)

Hello,everyone

I want to add dfu service in UART example ,but when I tried to allocate the RAM,Debug terminal shows nothing,Then I set the breakpoint in nrf_sdh_ble.c and debugging,I can't enter the C file,

After I set breakpoint in main.c,I found that when debug goes to "ble_stack_init();",It will be block and I can't do anything,like the images:

1.before  debug "ble_stack_init();"

2.after  debug "ble_stack_init();"

it shows"restricted memory" in Watch,and The window "output" shows"stopped by vector catch",If I start"built and run" directly,It can succeed,but I think it doesn;t make anythings,Finally,I see maybe I can use app_error_handler_bare(), unfortunately I don't know how to use it.could you please give me some help? thanks!

best regards,

zhong

Parents
  • and then I try to debug the fonction "ble_stack_init()",when it debugs the line "

        err_code = nrf_sdh_enable_request();
        APP_ERROR_CHECK(err_code);

    "

    the debug block,like the two images:

    1.Before debug"err_code = nrf_sdh_enable_request();"

    2.After debug"err_code = nrf_sdh_enable_request();"

    and then I try to set breakpoint in fonction"nrf_sdh_enable_request()"in nrf_sdh.c,but I can't jump to the fonction (because it block when in line"err_code = nrf_sdh_enable_request()")from main.c even I set the breakpoint at the beginning of the fonction"nrf_sdh_enable_request()"

    I set the breakpoint in nrf_sdh.c like the image:

Reply
  • and then I try to debug the fonction "ble_stack_init()",when it debugs the line "

        err_code = nrf_sdh_enable_request();
        APP_ERROR_CHECK(err_code);

    "

    the debug block,like the two images:

    1.Before debug"err_code = nrf_sdh_enable_request();"

    2.After debug"err_code = nrf_sdh_enable_request();"

    and then I try to set breakpoint in fonction"nrf_sdh_enable_request()"in nrf_sdh.c,but I can't jump to the fonction (because it block when in line"err_code = nrf_sdh_enable_request()")from main.c even I set the breakpoint at the beginning of the fonction"nrf_sdh_enable_request()"

    I set the breakpoint in nrf_sdh.c like the image:

Children
No Data
Related