Hi,
I am trying to integrate UART and DFU serial from the mesh example.
What I did is:
1. Adding uart drivers and libraries into the DFU project.
2. Adding codes of uart into DFU codes. I changed the priority of the art to "LOW".
3. Editing the sdk_config to enable uart1.
4. Programming an nrf52840 devkit by softdevice, dfu application, device page, and a bootloader as the board connected to the pc.
5. Programing an nrf52840 dongle by softdevice, dfu application, device page, and a bootloader as the target device.
Once I enter the command to send a file it returns:
Upgrading target on COM3 with DFU package D:\Behine Niroo\Nordic\NRF Mesh\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_blinky\pca10059\s140\ses\Output\Release\Exe\dfu_test.zip. Flow control is enabled.
Failed to upgrade target. Error is: Failed to establish connection
Possible causes:
- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
- baud rate or flow control is not the same as in the target bootloader.
- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.
- if the error is ERROR_BUSY at the beginning of the DFU process,increase the value of PAGE_ERASE_TIME_MAX by few milliseconds.
What does make this problem? May this relate to the art codes I added?
I appreciate it if you advise me on this issue.
Br,
Sama