Seems i can not find where nrf_dfu_set_adv_name_init is defined? It seems not in SDK source files, neither can find any sign on SDK documents.
Thank you.
Seems i can not find where nrf_dfu_set_adv_name_init is defined? It seems not in SDK source files, neither can find any sign on SDK documents.
Thank you.
thanks for pointing the direction. I will read into it. Will async SVC call interrupt RTT Log? I am adding DFU service into my app, and noticed the RTT logs in caller application seems like been lost or muted when SVC calls issued.
I would assume the queuing of the log would be delayed because the SVC call but I don't think the log would get lost. But be aware that we usually call the SVC to write bond information and advertising name right before we reset and switch to bootloader, could it be the reason you see the log missing ?
my understanding is unless nRF connection client sends out the reboot command then DFU service will reset and get into bootloader? Before that 52 will stay in current app. But the log is just missing after SVC thus i could not locate where the app actually reached. Take the following code fragment as an example:
{
....
services_init();
NRF_LOG_INFO("services initialized.");
NRF_LOG_FLUSH();
advertising_init();
conn_params_init();
advertising_start();
NRF_LOG_INFO("start advertising...");
NRF_LOG_FLUSH();
.....
}
DFU service is initialized inside 'services_init()', during execution the log message "services initialized." and "start advertising..." is never shown. However it does starting advertising as i can find the services from Iphone client app.
There is no reboot command. The application send DFU request command. And the application will write the adv name , bond information, then disconnect the connection, wait for the call back that flash operation is finished and then trigger the reset.
There is some issue with RTT log between application and bootloader as you can find here. Have you applied the work around ?