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

raspberrypi4 linux mcumgr to nrf5340pdk_smp_svr dfu ota ble image upload

Hello Nordicsemi Community,

I am attempting to update the firmware of nrf5340pdk cpuapp from a mcumgr cli running on a  raspberry pi 4 linux. From the logs, it seems the transfer never begins. I am able to echo a hello from the smp_svr via the mcumgr cli.

The output of the mcumgr dfu image upload attempt is below:

DEBU[2020-12-17 21:55:13.307] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:1 Seq:170 Id:1}} ImageNum:0 Off:173 Len:0 DataSha:[] Upgrade:false Data:[53 49 50 55 48 48 48 48 48 51 55 50 48 48 48 48 55 57 10 58 49 48 48 48 52 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 65 67 10 58 49 48 48 48 53 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 57 67 10 58 49 48 48 48 54 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 56 67 10 58 49 48 48 48 55 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 55 67 10 58 49 48 48 48 56 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48]} to:
00000000  a3 65 69 6d 61 67 65 00  63 6f 66 66 18 ad 64 64  |.eimage.coff..dd|
00000010  61 74 61 58 db 35 31 32  37 30 30 30 30 30 33 37  |ataX.51270000037|
00000020  32 30 30 30 30 37 39 0a  3a 31 30 30 30 34 30 30  |2000079.:1000400|
00000030  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000040  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000050  30 41 43 0a 3a 31 30 30  30 35 30 30 30 44 39 32  |0AC.:10005000D92|
00000060  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
00000070  38 30 30 30 30 44 39 32  38 30 30 30 30 39 43 0a  |80000D92800009C.|
00000080  3a 31 30 30 30 36 30 30  30 44 39 32 38 30 30 30  |:10006000D928000|
00000090  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000a0  30 44 39 32 38 30 30 30  30 38 43 0a 3a 31 30 30  |0D92800008C.:100|
000000b0  30 37 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |07000D9280000D92|
000000c0  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
000000d0  38 30 30 30 30 37 43 0a  3a 31 30 30 30 38 30 30  |800007C.:1000800|
000000e0  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000| 
DEBU[2020-12-17 21:55:13.307] Encoded:
00000000  02 00 00 f0 00 01 aa 01  a3 65 69 6d 61 67 65 00  |.........eimage.|
00000010  63 6f 66 66 18 ad 64 64  61 74 61 58 db 35 31 32  |coff..ddataX.512|
00000020  37 30 30 30 30 30 33 37  32 30 30 30 30 37 39 0a  |700000372000079.|
00000030  3a 31 30 30 30 34 30 30  30 44 39 32 38 30 30 30  |:10004000D928000|
00000040  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000050  30 44 39 32 38 30 30 30  30 41 43 0a 3a 31 30 30  |0D9280000AC.:100|
00000060  30 35 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |05000D9280000D92|
00000070  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
00000080  38 30 30 30 30 39 43 0a  3a 31 30 30 30 36 30 30  |800009C.:1000600|
00000090  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000a0  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000b0  30 38 43 0a 3a 31 30 30  30 37 30 30 30 44 39 32  |08C.:10007000D92|
000000c0  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
000000d0  38 30 30 30 30 44 39 32  38 30 30 30 30 37 43 0a  |80000D92800007C.|
000000e0  3a 31 30 30 30 38 30 30  30 44 39 32 38 30 30 30  |:10008000D928000|
000000f0  30 44 39 32 38 30 30 30                           |0D928000| 
DEBU[2020-12-17 21:55:13.308] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:1 Seq:170 Id:1}} ImageNum:0 Off:173 Len:0 DataSha:[] Upgrade:false Data:[53 49 50 55 48 48 48 48 48 51 55 50 48 48 48 48 55 57 10 58 49 48 48 48 52 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 65 67 10 58 49 48 48 48 53 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 57 67 10 58 49 48 48 48 54 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 56 67 10 58 49 48 48 48 55 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 55 67 10 58 49 48 48 48 56 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48]} to:
00000000  a3 65 69 6d 61 67 65 00  63 6f 66 66 18 ad 64 64  |.eimage.coff..dd|
00000010  61 74 61 58 db 35 31 32  37 30 30 30 30 30 33 37  |ataX.51270000037|
00000020  32 30 30 30 30 37 39 0a  3a 31 30 30 30 34 30 30  |2000079.:1000400|
00000030  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000040  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000050  30 41 43 0a 3a 31 30 30  30 35 30 30 30 44 39 32  |0AC.:10005000D92|
00000060  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
00000070  38 30 30 30 30 44 39 32  38 30 30 30 30 39 43 0a  |80000D92800009C.|
00000080  3a 31 30 30 30 36 30 30  30 44 39 32 38 30 30 30  |:10006000D928000|
00000090  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000a0  30 44 39 32 38 30 30 30  30 38 43 0a 3a 31 30 30  |0D92800008C.:100|
000000b0  30 37 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |07000D9280000D92|
000000c0  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
000000d0  38 30 30 30 30 37 43 0a  3a 31 30 30 30 38 30 30  |800007C.:1000800|
000000e0  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000| 
DEBU[2020-12-17 21:55:13.309] Encoded:
00000000  02 00 00 f0 00 01 aa 01  a3 65 69 6d 61 67 65 00  |.........eimage.|
00000010  63 6f 66 66 18 ad 64 64  61 74 61 58 db 35 31 32  |coff..ddataX.512|
00000020  37 30 30 30 30 30 33 37  32 30 30 30 30 37 39 0a  |700000372000079.|
00000030  3a 31 30 30 30 34 30 30  30 44 39 32 38 30 30 30  |:10004000D928000|
00000040  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000050  30 44 39 32 38 30 30 30  30 41 43 0a 3a 31 30 30  |0D9280000AC.:100|
00000060  30 35 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |05000D9280000D92|
00000070  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
00000080  38 30 30 30 30 39 43 0a  3a 31 30 30 30 36 30 30  |800009C.:1000600|
00000090  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000a0  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000b0  30 38 43 0a 3a 31 30 30  30 37 30 30 30 44 39 32  |08C.:10007000D92|
000000c0  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
000000d0  38 30 30 30 30 44 39 32  38 30 30 30 30 37 43 0a  |80000D92800007C.|
000000e0  3a 31 30 30 30 38 30 30  30 44 39 32 38 30 30 30  |:10008000D928000|
000000f0  30 44 39 32 38 30 30 30                           |0D928000| 
DEBU[2020-12-17 21:55:13.309] {add-nmp-listener} [bll_sesn.go:412] seq=170 
DEBU[2020-12-17 21:55:13.31] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:1 Seq:170 Id:1}} ImageNum:0 Off:173 Len:0 DataSha:[] Upgrade:false Data:[53 49 50 55 48 48 48 48 48 51 55 50 48 48 48 48 55 57 10 58 49 48 48 48 52 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 65 67 10 58 49 48 48 48 53 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 57 67 10 58 49 48 48 48 54 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 56 67 10 58 49 48 48 48 55 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 55 67 10 58 49 48 48 48 56 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48]} to:
00000000  a3 65 69 6d 61 67 65 00  63 6f 66 66 18 ad 64 64  |.eimage.coff..dd|
00000010  61 74 61 58 db 35 31 32  37 30 30 30 30 30 33 37  |ataX.51270000037|
00000020  32 30 30 30 30 37 39 0a  3a 31 30 30 30 34 30 30  |2000079.:1000400|
00000030  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000040  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000050  30 41 43 0a 3a 31 30 30  30 35 30 30 30 44 39 32  |0AC.:10005000D92|
00000060  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
00000070  38 30 30 30 30 44 39 32  38 30 30 30 30 39 43 0a  |80000D92800009C.|
00000080  3a 31 30 30 30 36 30 30  30 44 39 32 38 30 30 30  |:10006000D928000|
00000090  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000a0  30 44 39 32 38 30 30 30  30 38 43 0a 3a 31 30 30  |0D92800008C.:100|
000000b0  30 37 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |07000D9280000D92|
000000c0  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
000000d0  38 30 30 30 30 37 43 0a  3a 31 30 30 30 38 30 30  |800007C.:1000800|
000000e0  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000| 
DEBU[2020-12-17 21:55:13.31] Encoded:
00000000  02 00 00 f0 00 01 aa 01  a3 65 69 6d 61 67 65 00  |.........eimage.|
00000010  63 6f 66 66 18 ad 64 64  61 74 61 58 db 35 31 32  |coff..ddataX.512|
00000020  37 30 30 30 30 30 33 37  32 30 30 30 30 37 39 0a  |700000372000079.|
00000030  3a 31 30 30 30 34 30 30  30 44 39 32 38 30 30 30  |:10004000D928000|
00000040  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000050  30 44 39 32 38 30 30 30  30 41 43 0a 3a 31 30 30  |0D9280000AC.:100|
00000060  30 35 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |05000D9280000D92|
00000070  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
00000080  38 30 30 30 30 39 43 0a  3a 31 30 30 30 36 30 30  |800009C.:1000600|
00000090  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000a0  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000b0  30 38 43 0a 3a 31 30 30  30 37 30 30 30 44 39 32  |08C.:10007000D92|
000000c0  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
000000d0  38 30 30 30 30 44 39 32  38 30 30 30 30 37 43 0a  |80000D92800007C.|
000000e0  3a 31 30 30 30 38 30 30  30 44 39 32 38 30 30 30  |:10008000D928000|
000000f0  30 44 39 32 38 30 30 30                           |0D928000| 
DEBU[2020-12-17 21:55:13.31] Tx NMP async request: seq 170 00000000  02 00 00 f0 00 01 aa 01  a3 65 69 6d 61 67 65 00  |.........eimage.|
00000010  63 6f 66 66 18 ad 64 64  61 74 61 58 db 35 31 32  |coff..ddataX.512|
00000020  37 30 30 30 30 30 33 37  32 30 30 30 30 37 39 0a  |700000372000079.|
00000030  3a 31 30 30 30 34 30 30  30 44 39 32 38 30 30 30  |:10004000D928000|
00000040  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
00000050  30 44 39 32 38 30 30 30  30 41 43 0a 3a 31 30 30  |0D9280000AC.:100|
00000060  30 35 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |05000D9280000D92|
00000070  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
00000080  38 30 30 30 30 39 43 0a  3a 31 30 30 30 36 30 30  |800009C.:1000600|
00000090  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000a0  30 44 39 32 38 30 30 30  30 44 39 32 38 30 30 30  |0D9280000D928000|
000000b0  30 38 43 0a 3a 31 30 30  30 37 30 30 30 44 39 32  |08C.:10007000D92|
000000c0  38 30 30 30 30 44 39 32  38 30 30 30 30 44 39 32  |80000D9280000D92|
000000d0  38 30 30 30 30 44 39 32  38 30 30 30 30 37 43 0a  |80000D92800007C.|
000000e0  3a 31 30 30 30 38 30 30  30 44 39 32 38 30 30 30  |:10008000D928000|
000000f0  30 44 39 32 38 30 30 30                           |0D928000| 
 0 B / 348.68 KiB [------------------------------------------------------------------------]   0.00%DEBU[2020-12-17 21:55:15.664] {remove-nmp-listener} [.:0] seq=170          
DEBU[2020-12-17 21:55:15.664] HandleError off 173 error disconnected       
DEBU[2020-12-17 21:55:15.666] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:1 Seq:171 Id:1}} ImageNum:0 Off:392 Len:0 DataSha:[] Upgrade:false Data:[48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 54 67 10 58 49 48 48 48 57 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 53 67 10 58 49 48 48 48 65 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 52 67 10 58 49 48 48 48 66 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 51 67 10 58 49 48 48 48 67 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 50 67 10 58 49 48 48 48 68 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 49 67 10 58 49 48 48 48 69 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 48 67 10 58 49 48 48 48 70 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 70 67 10 58 49 48 48 49 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 69 66 10 58 49 48 48 49 49 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 66 10 58 49 48 48 49 50 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 67 66 10 58 49 48 48 49 51 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 66 66 10 58 49 48 48 49 52 48 48]} to:
00000000  a3 65 69 6d 61 67 65 00  63 6f 66 66 19 01 88 64  |.eimage.coff...d|
00000010  64 61 74 61 59 02 00 30  44 39 32 38 30 30 30 30  |dataY..0D9280000|
00000020  44 39 32 38 30 30 30 30  36 43 0a 3a 31 30 30 30  |D92800006C.:1000|
00000030  39 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |9000D9280000D928|
00000040  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000050  30 30 30 30 35 43 0a 3a  31 30 30 30 41 30 30 30  |00005C.:1000A000|
00000060  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000070  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000080  34 43 0a 3a 31 30 30 30  42 30 30 30 44 39 32 38  |4C.:1000B000D928|
00000090  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
000000a0  30 30 30 30 44 39 32 38  30 30 30 30 33 43 0a 3a  |0000D92800003C.:|
000000b0  31 30 30 30 43 30 30 30  44 39 32 38 30 30 30 30  |1000C000D9280000|
000000c0  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
000000d0  44 39 32 38 30 30 30 30  32 43 0a 3a 31 30 30 30  |D92800002C.:1000|
000000e0  44 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |D000D9280000D928|
000000f0  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000100  30 30 30 30 31 43 0a 3a  31 30 30 30 45 30 30 30  |00001C.:1000E000|
00000110  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000120  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000130  30 43 0a 3a 31 30 30 30  46 30 30 30 44 39 32 38  |0C.:1000F000D928|
00000140  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000150  30 30 30 30 44 39 32 38  30 30 30 30 46 43 0a 3a  |0000D9280000FC.:|
00000160  31 30 30 31 30 30 30 30  44 39 32 38 30 30 30 30  |10010000D9280000|
00000170  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000180  44 39 32 38 30 30 30 30  45 42 0a 3a 31 30 30 31  |D9280000EB.:1001|
00000190  31 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |1000D9280000D928|
000001a0  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
000001b0  30 30 30 30 44 42 0a 3a  31 30 30 31 32 30 30 30  |0000DB.:10012000|
000001c0  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
000001d0  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
000001e0  43 42 0a 3a 31 30 30 31  33 30 30 30 44 39 32 38  |CB.:10013000D928|
000001f0  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000200  30 30 30 30 44 39 32 38  30 30 30 30 42 42 0a 3a  |0000D9280000BB.:|
00000210  31 30 30 31 34 30 30                              |1001400| 
DEBU[2020-12-17 21:55:15.685] Encoded:
00000000  02 00 02 17 00 01 ab 01  a3 65 69 6d 61 67 65 00  |.........eimage.|
00000010  63 6f 66 66 19 01 88 64  64 61 74 61 59 02 00 30  |coff...ddataY..0|
00000020  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000030  36 43 0a 3a 31 30 30 30  39 30 30 30 44 39 32 38  |6C.:10009000D928|
00000040  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000050  30 30 30 30 44 39 32 38  30 30 30 30 35 43 0a 3a  |0000D92800005C.:|
00000060  31 30 30 30 41 30 30 30  44 39 32 38 30 30 30 30  |1000A000D9280000|
00000070  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000080  44 39 32 38 30 30 30 30  34 43 0a 3a 31 30 30 30  |D92800004C.:1000|
00000090  42 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |B000D9280000D928|
000000a0  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
000000b0  30 30 30 30 33 43 0a 3a  31 30 30 30 43 30 30 30  |00003C.:1000C000|
000000c0  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
000000d0  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
000000e0  32 43 0a 3a 31 30 30 30  44 30 30 30 44 39 32 38  |2C.:1000D000D928|
000000f0  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000100  30 30 30 30 44 39 32 38  30 30 30 30 31 43 0a 3a  |0000D92800001C.:|
00000110  31 30 30 30 45 30 30 30  44 39 32 38 30 30 30 30  |1000E000D9280000|
00000120  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000130  44 39 32 38 30 30 30 30  30 43 0a 3a 31 30 30 30  |D92800000C.:1000|
00000140  46 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |F000D9280000D928|
00000150  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000160  30 30 30 30 46 43 0a 3a  31 30 30 31 30 30 30 30  |0000FC.:10010000|
00000170  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000180  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
00000190  45 42 0a 3a 31 30 30 31  31 30 30 30 44 39 32 38  |EB.:10011000D928|
000001a0  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
000001b0  30 30 30 30 44 39 32 38  30 30 30 30 44 42 0a 3a  |0000D9280000DB.:|
000001c0  31 30 30 31 32 30 30 30  44 39 32 38 30 30 30 30  |10012000D9280000|
000001d0  44 39 32 38 30 30 30 30  44 39 32 38 30 30 30 30  |D9280000D9280000|
000001e0  44 39 32 38 30 30 30 30  43 42 0a 3a 31 30 30 31  |D9280000CB.:1001|
000001f0  33 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |3000D9280000D928|
00000200  30 30 30 30 44 39 32 38  30 30 30 30 44 39 32 38  |0000D9280000D928|
00000210  30 30 30 30 42 42 0a 3a  31 30 30 31 34 30 30     |0000BB.:1001400| 
DEBU[2020-12-17 21:55:15.69] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:1 Seq:171 Id:1}} ImageNum:0 Off:392 Len:0 DataSha:[] Upgrade:false Data:[48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 54 67 10 58 49 48 48 48 57 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 53 67 10 58 49 48 48 48 65 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 52 67 10 58 49 48 48 48 66 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 51 67 10 58 49 48 48 48 67 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 50 67 10 58 49 48 48 48 68 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48]} to:
00000000  a3 65 69 6d 61 67 65 00  63 6f 66 66 19 01 88 64  |.eimage.coff...d|
00000010  64 61 74 61 58 da 30 44  39 32 38 30 30 30 30 44  |dataX.0D9280000D|
00000020  39 32 38 30 30 30 30 36  43 0a 3a 31 30 30 30 39  |92800006C.:10009|
00000030  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
00000040  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
00000050  30 30 30 35 43 0a 3a 31  30 30 30 41 30 30 30 44  |0005C.:1000A000D|
00000060  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
00000070  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 34  |9280000D92800004|
00000080  43 0a 3a 31 30 30 30 42  30 30 30 44 39 32 38 30  |C.:1000B000D9280|
00000090  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
000000a0  30 30 30 44 39 32 38 30  30 30 30 33 43 0a 3a 31  |000D92800003C.:1|
000000b0  30 30 30 43 30 30 30 44  39 32 38 30 30 30 30 44  |000C000D9280000D|
000000c0  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
000000d0  39 32 38 30 30 30 30 32  43 0a 3a 31 30 30 30 44  |92800002C.:1000D|
000000e0  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280| 
DEBU[2020-12-17 21:55:15.693] Encoded:
00000000  02 00 00 f0 00 01 ab 01  a3 65 69 6d 61 67 65 00  |.........eimage.|
00000010  63 6f 66 66 19 01 88 64  64 61 74 61 58 da 30 44  |coff...ddataX.0D|
00000020  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 36  |9280000D92800006|
00000030  43 0a 3a 31 30 30 30 39  30 30 30 44 39 32 38 30  |C.:10009000D9280|
00000040  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
00000050  30 30 30 44 39 32 38 30  30 30 30 35 43 0a 3a 31  |000D92800005C.:1|
00000060  30 30 30 41 30 30 30 44  39 32 38 30 30 30 30 44  |000A000D9280000D|
00000070  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
00000080  39 32 38 30 30 30 30 34  43 0a 3a 31 30 30 30 42  |92800004C.:1000B|
00000090  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
000000a0  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
000000b0  30 30 30 33 43 0a 3a 31  30 30 30 43 30 30 30 44  |0003C.:1000C000D|
000000c0  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
000000d0  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 32  |9280000D92800002|
000000e0  43 0a 3a 31 30 30 30 44  30 30 30 44 39 32 38 30  |C.:1000D000D9280|
000000f0  30 30 30 44 39 32 38 30                           |000D9280| 
DEBU[2020-12-17 21:55:15.695] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:1 Seq:171 Id:1}} ImageNum:0 Off:392 Len:0 DataSha:[] Upgrade:false Data:[48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 54 67 10 58 49 48 48 48 57 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 53 67 10 58 49 48 48 48 65 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 52 67 10 58 49 48 48 48 66 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 51 67 10 58 49 48 48 48 67 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48 48 48 48 50 67 10 58 49 48 48 48 68 48 48 48 68 57 50 56 48 48 48 48 68 57 50 56 48]} to:
00000000  a3 65 69 6d 61 67 65 00  63 6f 66 66 19 01 88 64  |.eimage.coff...d|
00000010  64 61 74 61 58 da 30 44  39 32 38 30 30 30 30 44  |dataX.0D9280000D|
00000020  39 32 38 30 30 30 30 36  43 0a 3a 31 30 30 30 39  |92800006C.:10009|
00000030  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
00000040  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
00000050  30 30 30 35 43 0a 3a 31  30 30 30 41 30 30 30 44  |0005C.:1000A000D|
00000060  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
00000070  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 34  |9280000D92800004|
00000080  43 0a 3a 31 30 30 30 42  30 30 30 44 39 32 38 30  |C.:1000B000D9280|
00000090  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
000000a0  30 30 30 44 39 32 38 30  30 30 30 33 43 0a 3a 31  |000D92800003C.:1|
000000b0  30 30 30 43 30 30 30 44  39 32 38 30 30 30 30 44  |000C000D9280000D|
000000c0  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
000000d0  39 32 38 30 30 30 30 32  43 0a 3a 31 30 30 30 44  |92800002C.:1000D|
000000e0  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280| 
DEBU[2020-12-17 21:55:15.699] Encoded:
00000000  02 00 00 f0 00 01 ab 01  a3 65 69 6d 61 67 65 00  |.........eimage.|
00000010  63 6f 66 66 19 01 88 64  64 61 74 61 58 da 30 44  |coff...ddataX.0D|
00000020  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 36  |9280000D92800006|
00000030  43 0a 3a 31 30 30 30 39  30 30 30 44 39 32 38 30  |C.:10009000D9280|
00000040  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
00000050  30 30 30 44 39 32 38 30  30 30 30 35 43 0a 3a 31  |000D92800005C.:1|
00000060  30 30 30 41 30 30 30 44  39 32 38 30 30 30 30 44  |000A000D9280000D|
00000070  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
00000080  39 32 38 30 30 30 30 34  43 0a 3a 31 30 30 30 42  |92800004C.:1000B|
00000090  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
000000a0  30 30 30 44 39 32 38 30  30 30 30 44 39 32 38 30  |000D9280000D9280|
000000b0  30 30 30 33 43 0a 3a 31  30 30 30 43 30 30 30 44  |0003C.:1000C000D|
000000c0  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 44  |9280000D9280000D|
000000d0  39 32 38 30 30 30 30 44  39 32 38 30 30 30 30 32  |9280000D92800002|
000000e0  43 0a 3a 31 30 30 30 44  30 30 30 44 39 32 38 30  |C.:1000D000D9280|
000000f0  30 30 30 44 39 32 38 30                           |000D9280| 
DEBU[2020-12-17 21:55:15.702] error Attempt to transmit over closed BLE session TxRxMgmtAsync sesn &{{0 0x431f38 512 10000000000 3 false <nil> <nil>} <nil> 0x20f6690 {0 0} 252 0x2226060 0x2226060 <nil> <nil>} seq 171 
DEBU[2020-12-17 21:55:15.703] err txReqAsync Attempt to transmit over closed BLE session 
DEBU[2020-12-17 21:55:15.703] Connecting to peer                           
 0 B / 348.68 KiB [------------------------------------------------------------------------]   0.00%DEBU[2020-12-17 21:55:25.707] goroutine 1 [running]:
mynewt.apache.org/newt/util.NewNewtError(0x2054780, 0x31, 0x31)
	/home/pi/go/src/mynewt.apache.org/newt/util/util.go:77 +0xa4
mynewt.apache.org/newt/util.ChildNewtError(0x674bc0, 0x21cccc0, 0x21f44e0)
	/home/pi/go/src/mynewt.apache.org/newt/util/util.go:103 +0x78
mynewt.apache.org/newtmgr/newtmgr/cli.imageUploadCmd(0x21051e0, 0x20e02a0, 0x1, 0x5)
	/home/pi/go/src/mynewt.apache.org/newtmgr/newtmgr/cli/image.go:214 +0x364
github.com/spf13/cobra.(*Command).execute(0x21051e0, 0x2018c80, 0x5, 0x8, 0x21051e0, 0x2018c80)
	/home/pi/go/src/github.com/spf13/cobra/command.go:854 +0x1f4
github.com/spf13/cobra.(*Command).ExecuteC(0x21042c0, 0x5cce70, 0x2018640, 0x0)
	/home/pi/go/src/github.com/spf13/cobra/command.go:958 +0x26c
github.com/spf13/cobra.(*Command).Execute(...)
	/home/pi/go/src/github.com/spf13/cobra/command.go:895
main.main()
	/home/pi/go/src/github.com/apache/mynewt-mcumgr-cli/mcumgr/mcumgr.go:94 +0xe0

goroutine 21 [syscall, 3 minutes]:
os/signal.signal_recv(0x0)
	/usr/local/go/src/runtime/sigqueue.go:147 +0x130
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:23 +0x14
created by os/signal.init.0
	/usr/local/go/src/os/signal/signal_unix.go:29 +0x30

goroutine 4 [chan receive, 3 minutes]:
main.main.func1(0x2018640)
	/home/pi/go/src/github.com/apache/mynewt-mcumgr-cli/mcumgr/mcumgr.go:82 +0x34
created by main.main
	/home/pi/go/src/github.com/apache/mynewt-mcumgr-cli/mcumgr/mcumgr.go:80 +0xd8

goroutine 5 [syscall]:
syscall.Syscall(0x3, 0x5, 0x21bc000, 0x1000, 0x414b1c, 0x200da88, 0x0)
	/usr/local/go/src/syscall/asm_linux_arm.s:14 +0x8
golang.org/x/sys/unix.read(0x5, 0x21bc000, 0x1000, 0x1000, 0x4, 0x0, 0x41a530)
	/home/pi/go/src/golang.org/x/sys/unix/zsyscall_linux.go:1231 +0x40
golang.org/x/sys/unix.Read(...)
	/home/pi/go/src/golang.org/x/sys/unix/syscall_unix.go:156
github.com/JuulLabs-OSS/ble/linux/hci/socket.(*Socket).Read(0x200da80, 0x21bc000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/home/pi/go/src/github.com/JuulLabs-OSS/ble/linux/hci/socket/socket.go:123 +0x50
github.com/JuulLabs-OSS/ble/linux/hci.(*HCI).sktLoop(0x211e120)
	/home/pi/go/src/github.com/JuulLabs-OSS/ble/linux/hci/hci.go:304 +0x8c
created by github.com/JuulLabs-OSS/ble/linux/hci.(*HCI).Init
	/home/pi/go/src/github.com/JuulLabs-OSS/ble/linux/hci/hci.go:153 +0x470

goroutine 51 [select, 3 minutes]:
github.com/JuulLabs-OSS/ble/linux/hci.(*HCI).Accept(0x211e120, 0x0, 0x0, 0x0, 0x0)
	/home/pi/go/src/github.com/JuulLabs-OSS/ble/linux/hci/gap.go:185 +0xb8
github.com/JuulLabs-OSS/ble/linux.loop(0x211e120, 0x20e45c0, 0x203)
	/home/pi/go/src/github.com/JuulLabs-OSS/ble/linux/device.go:55 +0x1c
created by github.com/JuulLabs-OSS/ble/linux.NewDeviceWithNameAndHandler
	/home/pi/go/src/github.com/JuulLabs-OSS/ble/linux/device.go:48 +0x210

goroutine 35 [select]:
gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).refresher(0x21ce460)
	/home/pi/go/src/gopkg.in/cheggaaa/pb.v1/pb.go:499 +0xa0
created by gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).Start
	/home/pi/go/src/gopkg.in/cheggaaa/pb.v1/pb.go:124 +0xd8

goroutine 458 [select, 3 minutes]:
mynewt.apache.org/newtmgr/nmxact/xact.(*ImageUploadCmd).Run.func1(0x21c8440, 0x21c63a0, 0x21c2300, 0x21c8400, 0x21c83c0, 0x21c4220, 0xad)
	/home/pi/go/src/mynewt.apache.org/newtmgr/nmxact/xact/image.go:374 +0x90
created by mynewt.apache.org/newtmgr/nmxact/xact.(*ImageUploadCmd).Run
	/home/pi/go/src/mynewt.apache.org/newtmgr/nmxact/xact/image.go:373 +0x310

goroutine 3333 [select]:
mynewt.apache.org/newtmgr/nmxact/xact.(*ImageUploadCmd).Run.func1(0x24e1100, 0x2333e80, 0x2054b80, 0x24e10c0, 0x24e1080, 0x2087de0, 0x0)
	/home/pi/go/src/mynewt.apache.org/newtmgr/nmxact/xact/image.go:374 +0x90
created by mynewt.apache.org/newtmgr/nmxact/xact.(*ImageUploadCmd).Run
	/home/pi/go/src/mynewt.apache.org/newtmgr/nmxact/xact/image.go:373 +0x310 
Error: ImageUpload unexpected error after 0/357052 bytes

echo hello to smp_svr:

pi@raspberrypi:~ $ sudo ./mcumgr.rpi4 --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' echo hello
hello

pi@raspberrypi:~ $ sudo ./mcumgr.rpi4 --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload merged.hex 
 0 B / 348.68 KiB [------------------------------------------------------------------------]   0.00%Error: ImageUpload unexpected error after 0/357052 bytes


[00:00:00.005,950] <inf> littlefs: LittleFS version 2.2, disk version 2.0
[00:00:00.006,134] <inf> littlefs: FS at NRF_FLASH_DRV_NAME:0xfa000 is 6 0x1000-byte bloe
[00:00:00.006,134] <inf> littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
[00:00:00.006,378] <inf> littlefs: /lfs mounted
[00:00:00.013,854] <inf> smp_sample: build time: Dec 17 2020 02:42:11
[00:00:00.036,590] <inf> smp_bt_sample: Bluetooth initialized
[00:00:00.041,778] <inf> smp_bt_sample: Advertising successfully started
[00:00:07.277,770] <inf> smp_bt_sample: Connected
[00:00:13.675,262] <wrn> bt_hci_core: Not reporting packet for non-connected conn
[00:00:13.675,323] <inf> smp_bt_sample: Disconnected (reason 0x08)
[00:00:13.680,541] <inf> smp_bt_sample: Advertising successfully started
[00:00:13.901,489] <inf> smp_bt_sample: Connected
uart:~$ 

Thank you for your support

Call me tone5

Parents
  • Hi, On3!

    Could you try to upload the "app_update.bin" image instead of "merged.hex" and see if that improves anything?

    PS: The Holiday season is upon us, which will leave the Nordic support team understaffed until January 4th, 2021. This means that delayed replies will occur during this time. Sorry about the inconvenience and happy Holidays!

    Best regards,
    Carl Richard

Reply
  • Hi, On3!

    Could you try to upload the "app_update.bin" image instead of "merged.hex" and see if that improves anything?

    PS: The Holiday season is upon us, which will leave the Nordic support team understaffed until January 4th, 2021. This means that delayed replies will occur during this time. Sorry about the inconvenience and happy Holidays!

    Best regards,
    Carl Richard

Children
  • Attempting to upload the app_signed.hex from /smp_svr/build/zephyr yields the same result with the 0% upload progress.

    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image list
    Images:
     image=0 slot=0
        version: 0.0.0
        bootable: true
        flags: active confirmed
        hash: 5c1c72030a7d0c3e5588b387d43a176a4947b25468283acf7b3dfbfaf9691865
    Split status: N/A (0)
    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_signed.hex 
    Error: ATT request failed: input channel closed: io: read/write on closed pipe
    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_signed.hex 
     0 B / 368.64 KiB [-----------------------------------------------------------------------------------------------------------------------------------------]   0.00%Error: ImageUpload unexpected error after 0/377492 bytes
    

    mcumgr is able to obtain the list of active images on the board.

  • Hi again!

    Could you try to upload the binary image(app_update.bin) instead? It should be located in the same folder. The mcumgr does not support uploading .hex images as far as I know.

    Best regards,
    Carl Richard

  • Thank you for the suggestion, uploading app_update.bin instead of merged.hex indeed does progress the image upload beyond 0%.

    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_update.bin 
     4.39 KiB / 134.03 KiB [===>-----------------------------------------------------------------------------------------------------------------]   3.27% 165 B/s 04m14sError: ImageUpload unexpected error after 0/137248 bytes
    

    Connection timeout on upload reattempt:

    The issue that I am facing now regarding smp_svr mcumgr dfu ota is that if the image update via the cli fails before fully uploading the image, any reattempts fails with connection timeout. The workaround is to reboot the board running smp_svr.

    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_update.bin 
     4.39 KiB / 134.03 KiB [===>-----------------------------------------------------------------------------------------------------------------]   3.27% 165 B/s 04m14sError: ImageUpload unexpected error after 0/137248 bytes
    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_update.bin 
    Error: Failed to connect to peer after 10s
    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_update.bin 
    Error: Failed to connect to peer after 10s
    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_update.bin 
    Error: ATT request failed: input channel closed: io: read/write on closed pipe
    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_update.bin 
     28.01 KiB / 134.03 KiB [========================>-------------------------------------------------------------------------------------------]  20.90% 218 B/s 06m45sError: ImageUpload unexpected error after 0/137248 bytes
    pi@raspberrypi:~ $ sudo ~/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' image upload app_update.bin 
    Error: Failed to connect to peer after 10s
    pi@raspberrypi:~ $ 
    

    output from smp_svr:

    Welcome to minicom 2.7.1
    
    OPTIONS: I18n 
    Compiled on May  6 2018, 08:02:47.
    Port /dev/ttyACM2
    
    Press CTRL-A Z for help on special keys
    
    m_rpmsg: data_sem given off!
    [00:00:31.650,543] <inf> main_thread_task: sent a message!
    [00:00:31.650,543] <i*** Booting Zephyr OS build v2.4.0-ncs1  ***
    [00:00:00.257,446] <inf> mcuboot: Starting bootloader
    [00:00:00.263,671] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    [00:00:00.273,773] <inf> mcuboot: Boot source: none
    [00:00:00.279,266] <inf> mcuboot: Swap type: none
    [00:00:00.491,210] <inf> mcuboot: Bootloader chainload address offset: 0x10000
    [00:00:00.499,023] <inf> mcuboot: Jumping to the first image slot
    *** Booting Zephyr OS build v2.4.0-ncs1  ***
    
    
    [00:00:00.005,950] <inf> littlefs: LittleFS version 2.2, disk version 2.0
    [00:00:00.006,103] <inf> littlefs: FS at NRF_FLASH_DRV_NAME:0xfa000 is 6 0x1000-byte blocks with 512 cycle
    [00:00:00.006,134] <inf> littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
    [00:00:00.006,347] <inf> littlefs: /lfs mounted
    [00:00:00.013,824] <inf> smp_sample: build time: Dec 28 2020 14:44:46
    [00:00:00.036,956] <inf> smp_bt_sample: Bluetooth initialized
    [00:00:00.042,114] <inf> smp_bt_sample: Advertising successfully started
    [00:00:09.722,656] <inf> smp_bt_sample: Connected
    [00:00:13.041,625] <inf> mcumgr_flash_mgmt: Erased 0x22000 bytes of image slot
    [00:00:13.129,394] <inf> mcumgr_flash_mgmt: Erased 0x1000 bytes of image slot trailer
    [00:02:03.591,827] <wrn> bt_hci_core: Not reporting packet for non-connected conn
    [00:02:03.591,918] <inf> smp_bt_sample: Disconnected (reason 0x08)
    [00:02:03.597,076] <inf> smp_bt_sample: Advertising successfully started
    [00:02:05.802,856] <inf> smp_bt_sample: Connected
    uart:~$ 
    

  • Hi again!

    Good to hear that it starts at least. Does it stop at the same amount of KiB every time? If possible, could you enable debug level logging in the smp_svr sample, as well for BT? The latter can be enabled with "CONFIG_BT_DEBUG_LOG=y"?  A BLE Sniffer trace could be helpful aswell.

    Could you also share your prj.conf for both the app and hci_rpmsg, as well as the "overlay-bt.conf"?

    Best regards,
    Carl Richard

Related