How App switch to bootloader_secure

vk8051 gravatar image

asked 2017-09-13 11:35:09 +0100

Hi, I am use nRF51422 and SDK 12.3 sd130. I can use nRFTool App update FW to nRF51422. but I dont know how to switch App to bootloader in BLE not button. which function I can use and reset mcu itself to go back bootloader.


edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
Petter gravatar image

answered 2017-09-14 10:49:13 +0100

You should have a look at the buttonless DFU example.

edit flag offensive delete publish link more


Hi Petter, I did and implement ble_dfu and other related file into my project and it does work. but I still have a question: In nrf_dfu_flash_buttonless.c

FS_REGISTER_CFG(fs_config_t fs_dfu_config) = { .callback = fs_evt_handler, // Function for event callbacks. .p_start_addr = (uint32_t)MBR_SIZE, .p_end_addr = (uint32_t)BOOTLOADER_SETTINGS_ADDRESS + CODE_PAGE_SIZE

//.num_pages = 1, // Number of physical flash pages required. //.priority = 0xFE // Priority for flash usage. };

I used to set .num_pages = 1 or 2 or more but here it has set address. My question is: May I still can set num_pages and use Flash Storage function.


Vincent ( 2017-09-15 05:56:15 +0100 )editconvert to answer

Yes, you can.

Petter Myhre ( 2017-09-15 11:27:10 +0100 )editconvert to answer

ok, I got it. Thank you Petter.

Vincent ( 2017-09-15 14:36:44 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower


Asked: 2017-09-13 11:35:09 +0100

Seen: 36 times

Last updated: sep. 14 '17