Hello,
I am trying to work with the DFU examples provided with the SDK. My board is a custom USB dongle to which I need to add the bootloader. Following the steps from here (https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/sdk_app_serial_dfu_bootloader.html?cp=8_1_4_4_4), I managed to get the example working with the NRF52840, but not whith the NRF52820.
The project I am facing issues is "secure_bootloader_usb_mbr_pca10100e - nrf52820xxaa". As required for the project to compile, I built the micro-ecc lib and added to the folder. After building, the hex file is programmed into the device using: "nrfjprog --reset --program bootloader_52820.hex --family NRF52 --sectoranduicrerase" (renamed the bootloader hex file for simplicity).
It is expected that, after program, the device should sow up as a CDC interface for windows. When using the NRF52840, all goes well and I am able to perform DFU. But, when I program the NRF52820, nothing happens. I can see the device memory is prgrammed (via nrfConnect), including the softdevice (s112/s122 for 52820 or s140 for 52840) that was previously added.
So I tried to debug, hoping I would see something throw an error message. But this where it gets weird.. the debugger don't even reach the main routine as it is stopping in a HardFault exception:
The processor has escalated a configurable-priority exception to HardFault.
A coprocessor access error has occurred (CFSR.NOCP).
Exception occurred at PC = 0x3d470, LR = 0x3d511
See the call stack for more information.
And, at the Call Stack has the following call: [__iar_dadd + 0xd1]
My environment is:
- nRF5 SDK v17.1.0;
- IAR 9.10.2;
- Boards: PCA10059 and custom nRF52820 dongle;
I know that my custom board is working fine, as I already have plenty of code working on it (including USB custom HID and NUS).
Could anyone help me?
