All,
I already run BottonlessDFU example successfully after refer to below link. What's more, I added BAS and DIS service to Bottonless DFU example, and after use nrfutil.exe to generate app package, I can use nRF Connect to upload the application firmware succesfully, and I tried it many times, it works well. Now I want to add my own service and other function based on this and debug it with IDE IAR, so need your help and guidance to solve below qestions:
Q1: How to debug Application Code to make sure it works well after add other service to Bottonless DFU? is there any guidance or suggested link to refer to?
Q2: Why did I met below errors when I try to debug my modified applciation code? How to solve it?
Q3: For DFU is need to add public key to bootloader and add private key with application, is it possible to disable uECC function? How?
Looking forward to your reply. Thanks.
More detailed question description and test I did is as below,
1. Try to use Bottoneless DFU IAR project to see how to debug it with IAR. the step I operate is as below,
1-a. Erase all --> download softdevice with nRFgo studio-->download secure_dfu_ble_s132(bootloader) with IAR, it can run to bootloader main --> download buttonless_dfu, it can't run to application main. so guess maybe it no private key with application when download and debug it with IDE directly, so can't run to application main.
1-b. Then with nRF Connect app on Phone, to upload buttonless_DFU_application_package(nrfutil generate which add private key) based on DFUTarg, 100% complete, and Phone app can see Nordic_Bottonless. And then with IAR to download and debug ble_app_buttonless_dfu project, it can run to main.
2. Try to debug my own application (Add BAS and DIS service to Bottonless DFU example)
With same operation steps, 1-a also can't run to application main, when try 1-b, IAR will give below error
"Simulator Driver
User error: Memory access error:
Trying to read outside mapped memory at address 0xf0000fe0 when PC is 0x2ce70. Check your memory configuration
"
https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader
softdevice and SDK Rev I used is as below,
1. s132_nrf52_5.1.0_softdevice.hex
2. nRF5_SDK_14.2.0_17b948a
BR,
XiaoYa