hi .eveyone. i use 51822 sdk12.3.0 , i want to dfu app code with uart, but not use bootloader_secure and experimental_ble_app_buttonless_dfu. i do not know how to develop.
have some sample code to provide ,please?
hi .eveyone. i use 51822 sdk12.3.0 , i want to dfu app code with uart, but not use bootloader_secure and experimental_ble_app_buttonless_dfu. i do not know how to develop.
have some sample code to provide ,please?
Hello,
Unfortunately, we don't have any serial bootloaders in SDK12.3.0.
We do have an experimental serial bootloader in SDK13.0.0, but as you may know, the nRF51 is not supported in this SDK. What you can do is to try to port back the serial transfer layer from SDK13.0.0 to SDK12.3.0.
If you look in SDK13.0.0 ->nrf_dfu_transport.c, you will see the nrf_dfu_transports_init(). It will run the init function declared in DFU_TRANSPORT_REGISTER() in nrf_serial_dfu.c
You need to do the same in SDK12.3.0.
nrf_dfu_transports_init() will run the init function declared in DFU_TRANSPORT_REGISTER() in nrf_ble_dfu.c. Change this to the serial implementation from SDK13.0.0.
Best regards,
Edvin
OH..THANKS . i will try. i have one question. have datasheet about 51822 startup process and how to Interrupt vector mapping? i want only use softdevice and app. and my app include my boot and my app code. so have some datasheet about these?
Check out this function.
But the bootloader project will handle all of this for you.
If you are not familiar with the bootloader for the nRF51, I suggest you try to run through this guide using the nRF51 using BLE before you start changing to a serial bootloader. Just to get familiar with how things work.
yes, i have use 51822 ,SDK 12.3 download softdevice ,bootloader_secure and experimental_ble_app_buttonless_dfu. and phone can scan link 51822 device(Nordic_Buttonless). but i want to debug bootloader_secure. it can not debug. i look many way of web. but do not ok. i think debug softdevice do not go to boot.but i do not know why..
Optimization may lead to strange things while debugging. Try to turn off optimization in your project. I don't think you will be able to do that in the bootloader_secure\pca10028 project due to memory restrictions. Try to use the bootloader_secure\pca10028_debug project for development. It doesn't have the same restrictions.
So: Use SDK\examples\dfu\bootloader_secure\pca10028_debug\arm5_no_packs\secure_dfu_secure_dfu_ble_s130_pca10028_debug.uvprojx, and turn off optimization in your project settings.