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

[DFU on nrf51822] Error during firmware upload with MCP 3.10.

Dear Sirs, We compile the bootloader in dfu folder, sdk 10.0.0, with IAR, and download on 51822 QFAA chip. When trying the DFU function with MCP tool with version 3.10.0.14, we always receive the error "Error during firmware upload. Disconnected from device while waiting for notification from device". Capture the log fragment from the MCP tools as below.


6814;05:30:43.6388 [480107207][MainThread] Data sent on pipe number 1: 0xF1 0x0E 0x02 0x00 0xF3 0x0E 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 6815;05:30:43.6398 [480107207][MainThread] Sending Firmware bytes [180, 200]

6816;05:30:43.6398 [480107207][MainThread] GATT: Sending Write Command on Characteristic Value uuid 0x15321212EFDE1523785FEABCD123 on handle=000E 6817;05:30:43.6408 [480107207][MainThread] WRITE DATA PACKET:17-00-04-00-52-0E-00-00-00-00-00-00-00-00-00-00-00-00-00-F1-B4-05-98-06-9C-C9-B2 6818;05:30:43.6408 [480107207][MainThread] Sending packet: AttWriteCommand, 52-0E-00-00-00-00-00-00-00-00-00-00-00-00-00-F1-B4-05-98-06-9C-C9-B2, Handle: 0x000E, Value: 00-00-00-00-00-00-00-00-00-00-00-00-F1-B4-05-98-06-9C-C9-B2 6819;05:30:43.6408 [480107207][MainThread] Serial port write: 02-00-00-1B-00-17-00-04-00-52-0E-00-00-00-00-00-00-00-00-00-00-00-00-00-F1-B4-05-98-06-9C-C9-B2 6820;05:30:43.6408 [480107207][MainThread] Data buffer queue length (+1): 4 6821;05:30:43.6408 [480107207][MainThread] Number of data packets sent: 26 6822;05:30:43.6408 [480107207][MainThread] [05:30:43.640] [Emulator] Data sent on pipe number 1: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xF1 0xB4 0x05 0x98 0x06 0x9C 0xC9 0xB2

6823;05:30:43.6408 [480107207][MainThread] Data sent on pipe number 1: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xF1 0xB4 0x05 0x98 0x06 0x9C 0xC9 0xB2 6824;05:30:46.6476 [480107207][ReadPacketQueueThread] Serial port read: 04-05-04-00-00-00-08 6825;05:30:46.6476 [480107207][ReadPacketQueueThread] HCI event: BTLE_EVENT_DISCONNECTION_COMPLETE ConnectionHandle: 0x0000, Reason: BTLE_CONNECTION_TIMEOUT 6826;05:30:46.6606 [480107207][ReadPacketQueueThread] Received LL Connection Termination Event, reason 08 6827;05:30:46.6606 [480107207][ReadPacketQueueThread] Lost connection to device 6828;05:30:46.6656 [480107207][ReadPacketQueueThread] [05:30:46.665] Disconnected from peer device

6829;05:30:46.6817 [480107207][ReadPacketQueueThread] Device disconnected, reason: ConnectionTimeout

6830;05:30:46.7307 [480107207] SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A> 6831;05:30:46.7307 [480107207] SERVER: Received Link Loss 6832;05:30:46.7629 [480107207][MainThread] Disconnected from device while waiting for notification from device. 6833;05:30:47.7744 [480107207][MainThread] [05:30:47.773] Not connected - Skipping

6834;05:30:47.7794 [480107207][MainThread] SERVER: Stopping server 6835;05:30:47.7794 [480107207][MainThread] [05:30:47.779] [Emulator] Close

6836;05:30:47.7794 [480107207][MainThread] Close 6837;05:30:47.7817 [480107207][MainThread] HciH4Driver closed 6838;05:30:48.7340 [480107207] SERVER: Server has stopped

I try some solution on forum, such as adjusting timer of interval, supervisory timeout, but still not work. And I also try the DFU in "nrf Toolbox" on ios. The error "DFU, the connection has been lost" will occur when starting to upload the firmware, 0%. Any idea??

Thank you in advance.

Phate

Related