Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

App gets stuck when booted from bootloader (works fine without bootloader) - SDK15 - 0xCAFEBABE in registers

Hello,

I'm having a weird issue that I'm not sure how to debug. I have an app that I know works fine if programmed just with the softdevice. However, when I also program the bootloader, the app gets stuck when initializing the softdevice. I can't see any error codes, I just see all the debug output that happens before ble_stack_init() and then nothing. The bootloader works fine as far as I'm concerned.

How can I go about this problem? Thanks for your help!

I'm using Eclipse + ARM GCC 7.2.1 , SDK15.0, S132 v6.0.0, NRF52832.

EDIT: Just to be clear, the bootloader does jump to the app normally. My app actually starts running and then it stops

Parents Reply
  • I have narrowed it down to this piece of code:

    	uint32_t err_code;
    	ble_dfu_buttonless_init_t dfus_init = {
    		.evt_handler = ble_dfu_evt_handler
    	};
    
    	// Initialize the async SVCI interface to bootloader.
    	err_code = ble_dfu_buttonless_async_svci_init();
    	APP_ERROR_CHECK(err_code);
    
    	if (err_code == NRF_SUCCESS) {
    		err_code = ble_dfu_buttonless_init(&dfus_init);
    		APP_ERROR_CHECK(err_code);
    	} else {
    		debug_error("Bootloader not found");
    	}

    Somewhere there it gets stuck.

Children
Related