1.I am using nrf52832 board with freertos application with dfu support.
Q1)Is it necessary to flash bootloader in to stm board for using dfu
1.I am using nrf52832 board with freertos application with dfu support.
Q1)Is it necessary to flash bootloader in to stm board for using dfu
Hi,
The DFU functionality is implemented the bootloader code, so it is necessary to program the bootloader to support DFU. Recommend to read through the following documentation to get an overview of the bootloader architecture: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_bootloader_modules.html?cp=4_0_0_3_5
i am flashing like this
1.first softdevice
2.bootloader
3.application
i am flashing first two steps with jlink and 3rd step with dfu for the board to work
Q)if i flash the application with jlink it is not working what is the reason?
Q)where the linker file present and what need to be cahnged?
i am flashing like this
1.first softdevice
2.bootloader
3.application
i am flashing first two steps with jlink and 3rd step with dfu for the board to work
Q)if i flash the application with jlink it is not working what is the reason?
Q)where the linker file present and what need to be cahnged?
The application needs to be validated, otherwise the bootloader will not boot the application on startup. You can do this by manually creating bootloader settings page as outlined here: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrfutil/nrfutil_settings_generate_display.html?cp=5_5_6
then program the generated settings page with jlink:
i am using sdk11 and nrfutil 0.52 so there are no commands
The legacy bootloaders do not have the same requirements/format for the bootloader settings page. In SDK 11 it is sufficient to set the BANK_APP_VALID ('1') flag to validate the app:
why i am able to flash the application after doing dfu for the first time?
Bootloader sets the BANK_APP_VALID in the final step of the DFU process to validate the app. So the flag will be set after a successful DFU.