This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Some problems about DFU via UART

Hello,

A problem occurs when i run the DFU over UART on my board.My bootloader project references to nRF51_SDK_9.0.0_2e23562\examples\dfu\bootloader\pca10028\dual_bank_serial_s110

Here is my steps:

1、Configure TX、RX pins;Modify the UART mode to FLOW_CONTROL_DISABLED;Now I can send and receive datas;

2、Erase my board ,then download the SOFTDEVICE from nRF51_SDK_9.0.0_2e23562\components\softdevice\s110\hex;

3、Compile my bootloader project then download.

4、Download the app hex file;

when I download the app hex file,here comes the problem.

image description

Then I try to catch the data ,and found I can sent the ack of the start packet,but the ack of the first block of Application image is missing,and it turns into another invalid ack :0XFC.

image description

Now I do not know how to solve this problem.Can anyone help me?

Regards, DW.

Parents
  • @donwoo, I'm experiencing similar problem. When you configured your TX, RX, and Flow Control, are you modifying nrf_drv_config.h (from components/drivers_nrf/config/nrf_drv_config.h)? Or were you using another config file? I'm just making sure also that I am modifying the correct file as I'm doing similar but my SoC is nRF52832. What is your debug setup and tool you used to get the UART signals? I'm only using USB-TTL and monitoring the data through HTERM on both RX and TX lines but didn't get the invalid ACK.

Reply
  • @donwoo, I'm experiencing similar problem. When you configured your TX, RX, and Flow Control, are you modifying nrf_drv_config.h (from components/drivers_nrf/config/nrf_drv_config.h)? Or were you using another config file? I'm just making sure also that I am modifying the correct file as I'm doing similar but my SoC is nRF52832. What is your debug setup and tool you used to get the UART signals? I'm only using USB-TTL and monitoring the data through HTERM on both RX and TX lines but didn't get the invalid ACK.

Children
Related