Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
2 years ago.
nRF52(832) DFUService problem
I am building the nRF52832 firmware (nRF52_DK then custom hardware) for DFU FOTA using MBED OS 5.9.3 and ARM_GCC offline compiler (using mbed compile). That does not seem to work at all.
According to  "When building for a FOTA-enabled platform, an instance of the DFUService gets added to an application implicitly during the call to ble.init();". But I have no FOTA enabled devices in the FOTA mobile application, nor DFU endpoints on my device.. so I have added the magic line of code to enable FOTA DFU:
#include "DFUService.h" DFUService dfu(ble);
and now my code does not build.  does not specify where exactly this line of code should be placed. When I place it in any function I get
[Error] main.cpp@27,5: 'DFUService' was not declared in this scope
when I put that as global declaration before main() I get this compile error:
[Error] main.cpp@19,1: 'DFUService' does not name a type; did you mean 'UARTService'?
Is FOTA DFU supported on nRF52832? The nRF52840 chip is already out.. and I saw Secure FOTA DFU on Nordic website.
2 years ago.
I was able to do over the air updates following this instruction. https://os.mbed.com/users/kord123/notebook/fota-mbed-app-to-nrf52_dk-with-nordic-dfu-boot-loa/#