Hello,
I am working with the nRF-SDK-for-Mesh v0.10.1 I am able to compile and run everything fine. I am trying to use the "serial" example and perform a DFU, however the DFU functions in"nrf_mesh_weak.c" are getting linked instead of the real ones in "nrf_mesh_dfu.c"
I verified this by adding a log in "nrf_mesh_weak.c" here:
uint32_t _weak_handler()
{
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "_weak_handler...\n");
return NRF_ERROR_NOT_SUPPORTED;
}
I am following the guide from the SDK docs here:
infocenter.nordicsemi.com/topi...
I am using:
PCA10031, nrf51422, s130
SoftDevice: /external/softdevice/s130_2.0.1/s130_nrf51_2.0.1_softdevice.hex
Bootloader: /bin/bootloader_serial_xxAC.hex
Application: /build/examples/serial/serial_nrf51422_xxAC_s130_2.0.1.hex
Here is the RTT trace:
<t: 256>, main.c, 66, ----- Bluetooth Mesh Serial Interface Application -----
<t: 33041>, nrf_mesh_sdk.c, 181, Initializing softdevice
<t: 4>, nrf_mesh_sdk.c, 122, Initializing SoftDevice...
<t: 18>, nrf_mesh_sdk.c, 131, Ram base: 0x200022D8
<t: 85>, nrf_mesh_sdk.c, 140, sd_ble_enable: app_ram_base should be adjusted to 0x20001900
<t: 110>, nrf_mesh_sdk.c, 191, Initializing mesh stack
<t: 1356>, nrf_mesh_weak.c, 54, _weak_handler...
<t: 1373>, nrf_mesh_sdk.c, 198, Enabling mesh stack
<t: 1415>, main.c, 84, Enabling ECDH offloading...
<t: 1431>, main.c, 88, Enabling serial interface...
<t: 1446>, serial_handler_prov.c, 212, Generating encryption keypair...
<t: 36079>, main.c, 92, Initialization complete!
I am running the DFU with this command:
nrfutil --verbose dfu serial -pkg ../build/examples/serial/serial_nrf51422_xxAC_s130_2.0.1.hex.zip -p /dev/tty.usbmodem1441 -b 115200 -fc --mesh
Here is the output:
Upgrading target on /dev/tty.usbmodem1441 with DFU package /Users/jasonpeterson/Documents/nrf5_SDK_for_Mesh_v0-2a/build/examples/serial/serial_nrf51422_xxAC_s130_2.0.1.hex.zip. Flow control is enabled.
[------------------------------------] 0%
Flushing com-port...
Opened com-port
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 118488
Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.
PC -> target: 0502aabbccdd
target -> PC: 0582aabbccdd
Got echo response
Sending DFU init packet
PC -> target: 1378fdff040f3836681359000000010002000000
target -> PC: 0384788e
Here is the RTT trace:
<t: 2492322>, nrf_mesh_weak.c, 54, _weak_handler...
What am I missing? Thank You!