We are using nRF52840 with the
nrf5_SDK_for_Mesh_v1.0.0
in combination with
s140_5.0.0-3.alpha
I'm working with the nRF52840-Preview-DK board.
Task: program a bootloader for our product
I tried to integrate the serial bootloder and followed the Quick Start Guide for the Mesh SDK.
That is the link: infocenter.nordicsemi.com/.../md_doc_getting_started_dfu_quick_start.htm
The first problem appeared in step 4:
When entering this command in the command line interface:
python device_page_generator.py -d nrf52840_xxAA -sd "s140_5.0.0-3.alpha"
I got this result:
Wrote device page for nrf52840_xxAA with the s140_5.0.0-3.alpha SoftDevice to bin/device_page_nrf52832_xxAA_s132_5.0.0.hex
==> the name of the hex-file contains the default names from the json file
Steps 6 to 9 didn't show up a problem.
After step 9 I veryfied the the result with nRFgo Studio and there whre 3 parts as expected:
- Bootloader
- Application
- Softdevice
I was aware of the fact that my application just contained the DFU part, but not the serial part
=> so there it was no surprise when the output of step 10 was:
Failed to upgrade target. Error is: Serial port could not be opened on 17. Reason: .... and so on ...
Nevertheless I did step 11 checking the bootloader.
This result was a surprise:
bootloader_verify.py 683338486 17
Output:
Device family: NRF51
Reading UICR.. ERROR: The --family option given with the command (or the default from
ERROR: nrfjprog.ini) does not match the device connected.
Error calling nrfjprog with arguments -s 683338486 --memrd 0x10001014 --n 4 --w 32 --family NRF51.
Question 1:
Where is this information (NRF51) taken from? That is the wrong family as I'm using NRF52.
I expect this is taken from the bootloader file
nrfjprog --program mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.hex
My next step: try to use the serial example in the Mesk_SDK.
As this example is using Softdevice s130 I tried to adapt it to Softdevice s140
=> I failed badly as many files within this Softdevice changed a lot.
Question 2:
- Is it possible to adapt the example in nrf5_SDK_for_Mesh_v1.0.1_src\examples\serial from s130 to s140?
Question 3:
- is there any other way to flash bootloader, softdevice and application other than using the command line tool following the steps in Quick Start Guide