problem with UART update on nRF52840

Good morning,

in our project we would like to implement a DFU system of our Nordic 52840 through UART. In the final version of the board the 52840 will be connected to another MCU through serial, but for the moment we are updating the Nordic through a USB serial adapted connected to the rx/tx pins of the Nordic MCU and using the nrfutil.

What we observe is the following:

1) If I upload the fw through nrfutil after having loaded the SD and the BL itself, the procedure is successful in about 25 seconds

2) If I cancel the DFU procedure while it is ongoing and then I repeat it, only the first SLIP packets are exchanged and the first 4k data batch is sent. When the CRC is requested to the Nordic, no answer is apparently received and the program exits. Please see the attached log, obtained with the -v-v-v-v nrfutil option. The command I use is: 

nrfutil -v -v -v -v dfu serial -cd 1 -p COM36 -fc 0 -b 115200 -pkg NordicPackage.zip

the used zip has been signed with a proprietary private key (.pem file) and of course the bootloader has been compiled with the related public key. I believe I am safe on the public/private key side cause otherwise the first update would not be successful. We also tried the procedure with the usb-serial option, but the behaviour seems to be the same.

Can you please tell me if you have any idea on what the problem is? I would (naively?) expect that if I interrupt the UART DFU procedure in the middle I should then be able to safely repeat it.

Please find attached:

the sdk_config.h used (it has been changed wrt the original one to adapt it to the project's needs)

the aforementioned log file

Thank you.

Kind regards,

Stefano

C:\work\vdf_40170_ca\Prj\tools\App_Generator>nrfutil -v -v -v -v dfu serial -cd 1 -p COM36 -fc 0 -b 115200 -pkg P567_FPNFC_Mesh_App_0_0_0_JustNordic.zip
2023-02-17 09:03:42,181 Using board at serial port: COM36
2023-02-17 09:03:42,190 Sending Application image.
2023-02-17 09:04:13,673 SLIP: --> [9, 1]
2023-02-17 09:04:13,686 SLIP: <-- [96, 9, 1, 1]
2023-02-17 09:04:13,686 Serial: Set Packet Receipt Notification 0
2023-02-17 09:04:13,686 SLIP: --> [2, 0, 0]
2023-02-17 09:04:13,702 SLIP: <-- [96, 2, 1]
2023-02-17 09:04:13,702 SLIP: --> [7]
2023-02-17 09:04:13,718 SLIP: <-- [96, 7, 1, 131, 0]
2023-02-17 09:04:13,718 Sending init packet...
2023-02-17 09:04:13,718 Serial: Selecting Object: type:1
2023-02-17 09:04:13,719 SLIP: --> [6, 1]
2023-02-17 09:04:13,733 SLIP: <-- [96, 6, 1, 0, 2, 0, 0, 141, 0, 0, 0, 133, 3, 198, 153]
2023-02-17 09:04:13,733 Serial: Object selected:  max_size:512 offset:141 crc:2579891077
2023-02-17 09:04:13,734 SLIP: --> [4]
2023-02-17 09:04:13,749 SLIP: <-- [96, 4, 1]
2023-02-17 09:04:13,749 Sending firmware file...
2023-02-17 09:04:13,750 Serial: Selecting Object: type:2
2023-02-17 09:04:13,750 SLIP: --> [6, 2]
2023-02-17 09:04:13,766 SLIP: <-- [96, 6, 1, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2023-02-17 09:04:13,766 Serial: Object selected:  max_size:4096 offset:0 crc:0
2023-02-17 09:04:13,766 SLIP: --> [1, 2, 0, 16, 0, 0]
2023-02-17 09:04:13,781 SLIP: <-- [96, 1, 1]
2023-02-17 09:04:13,781 Serial: Streaming Data: len:4096 offset:0 crc:0x00000000
2023-02-17 09:04:13,781 SLIP: --> [8, 0, 253, 3, 32, 9, 17, 4, 0, 49, 17, 4, 0, 51, 17, 4, 0, 53, 17, 4, 0, 55, 17, 4, 0, 57, 17, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 17, 4, 0, 61, 17, 4, 0, 0, 0, 0, 0, 63, 17, 4, 0, 65, 17, 4, 0]
2023-02-17 09:04:13,783 SLIP: --> [8, 67, 17, 4, 0, 67, 17, 4, 0, 101, 34, 4, 0, 65, 40, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 177, 32, 4, 0, 133, 35, 4, 0, 67, 17, 4, 0, 53, 37, 4, 0, 137, 207, 2, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0]
2023-02-17 09:04:13,788 SLIP: --> [8, 105, 53, 4, 0, 89, 178, 3, 0, 65, 12, 3, 0, 197, 28, 4, 0, 41, 179, 3, 0, 67, 17, 4, 0, 153, 24, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 73, 37, 4, 0, 67, 17, 4, 0, 221, 34, 4, 0, 67, 17, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2023-02-17 09:04:13,794 SLIP: --> [8, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 67, 17, 4, 0, 41, 180, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 67, 17, 4, 0, 0, 0, 0, 0, 67, 17, 4, 0]
2023-02-17 09:04:13,800 SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2023-02-17 09:04:13,805 SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2023-02-17 09:04:13,811 SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2023-02-17 09:04:13,816 SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2023-02-17 09:04:13,823 SLIP: --> [8, 16, 181, 5, 76, 35, 120, 51, 185, 4, 75, 19, 177, 4, 72, 175, 243, 0, 128, 1, 35, 35, 112, 16, 189, 72, 57, 0, 32, 0, 0, 0, 0, 112, 93, 5, 0, 8, 181, 3, 75, 27, 177, 3, 73, 3, 72, 175, 243, 0, 128, 8, 189, 0, 0, 0, 0, 76, 57, 0, 32, 112, 93, 5, 0]
2023-02-17 09:04:13,828 SLIP: --> [8, 21, 75, 0, 43, 8, 191, 19, 75, 157, 70, 163, 245, 128, 58, 0, 33, 139, 70, 15, 70, 19, 72, 20, 74, 18, 26, 38, 240, 145, 252, 15, 75, 0, 43, 0, 208, 152, 71, 14, 75, 0, 43, 0, 208, 152, 71, 0, 32, 0, 33, 4, 0, 13, 0, 13, 72, 0, 40, 2, 208, 12, 72, 40, 240]
2023-02-17 09:04:13,834 SLIP: --> [8, 95, 254, 38, 240, 65, 248, 32, 0, 41, 0, 33, 240, 41, 254, 38, 240, 43, 248, 0, 191, 0, 0, 8, 0, 0, 253, 3, 32, 0, 0, 0, 0, 0, 0, 0, 0, 72, 57, 0, 32, 116, 205, 0, 32, 65, 239, 4, 0, 85, 255, 4, 0, 56, 181, 4, 70, 69, 24, 172, 66, 1, 209, 0, 32]
2023-02-17 09:04:13,840 SLIP: --> [8, 5, 224, 20, 248, 1, 11, 23, 240, 41, 254, 0, 40, 245, 208, 56, 189, 56, 181, 5, 70, 12, 70, 21, 240, 65, 250, 41, 70, 21, 240, 68, 250, 160, 66, 52, 191, 0, 32, 1, 32, 56, 189, 55, 181, 13, 70, 4, 70, 104, 185, 169, 178, 0, 34, 32, 70, 1, 240, 83, 253, 1, 33, 141, 248]
2023-02-17 09:04:13,846 SLIP: --> [8, 7, 0, 13, 241, 7, 0, 255, 247, 213, 255, 3, 176, 48, 189, 255, 247, 209, 255, 0, 40, 249, 209, 236, 231, 7, 181, 12, 72, 3, 33, 255, 247, 228, 255, 11, 75, 27, 104, 91, 4, 13, 213, 10, 75, 27, 104, 3, 43, 9, 221, 9, 75, 9, 74, 211, 248, 4, 53, 9, 73, 0, 146, 4, 32]
2023-02-17 09:04:13,851 SLIP: --> [8, 87, 34, 13, 240, 59, 249, 3, 176, 93, 248, 4, 251, 68, 18, 5, 0, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 194, 17, 5, 0, 180, 17, 5, 0, 1, 72, 5, 33, 255, 247, 191, 191, 71, 18, 5, 0, 7, 181, 12, 72, 3, 33, 255, 247, 184, 255, 11, 75, 27, 104, 91, 4]
2023-02-17 09:04:13,857 SLIP: --> [8, 13, 213, 10, 75, 27, 104, 3, 43, 9, 221, 9, 75, 9, 74, 211, 248, 4, 53, 9, 73, 0, 146, 4, 32, 105, 34, 13, 240, 15, 249, 3, 176, 93, 248, 4, 251, 76, 18, 5, 0, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 195, 17, 5, 0, 180, 17, 5, 0, 1, 72, 3, 33]
2023-02-17 09:04:13,862 SLIP: --> [8, 255, 247, 147, 191, 79, 18, 5, 0, 31, 181, 2, 35, 141, 248, 5, 0, 141, 248, 4, 48, 56, 34, 141, 248, 10, 48, 5, 33, 189, 248, 4, 48, 173, 248, 8, 32, 2, 168, 173, 248, 11, 48, 255, 247, 126, 255, 5, 176, 93, 248, 4, 251, 21, 240, 178, 185, 8, 181, 23, 240, 183, 253, 128, 178]
2023-02-17 09:04:13,868 SLIP: --> [8, 8, 189, 7, 181, 13, 241, 7, 0, 23, 240, 114, 253, 32, 185, 157, 248, 7, 0, 3, 176, 93, 248, 4, 251, 0, 32, 250, 231, 112, 181, 13, 70, 136, 176, 20, 70, 0, 42, 69, 208, 54, 41, 39, 208, 7, 216, 1, 41, 0, 240, 140, 128, 25, 41, 117, 208, 23, 240, 74, 253, 58, 224, 55, 41]
2023-02-17 09:04:13,874 SLIP: --> [8, 58, 208, 56, 41, 248, 209, 16, 70, 0, 240, 62, 254, 196, 178, 255, 44, 72, 78, 173, 248, 20, 0, 68, 209, 51, 104, 88, 4, 42, 213, 70, 75, 27, 104, 3, 43, 38, 221, 69, 75, 69, 74, 211, 248, 4, 53, 0, 146, 156, 34, 68, 73, 4, 32, 13, 240, 161, 248, 27, 224, 17, 70, 2, 32]
2023-02-17 09:04:13,879 SLIP: --> [8, 0, 240, 92, 251, 176, 185, 59, 75, 27, 104, 93, 4, 13, 213, 58, 75, 27, 104, 3, 43, 9, 221, 57, 75, 59, 74, 211, 248, 4, 53, 0, 146, 129, 34, 56, 73, 4, 32, 13, 240, 137, 248, 23, 240, 17, 253, 0, 32, 255, 247, 50, 255, 8, 176, 112, 189, 17, 70, 3, 32, 0, 240, 62, 251]
2023-02-17 09:04:13,885 SLIP: --> [8, 0, 40, 247, 209, 43, 75, 27, 104, 92, 4, 238, 213, 42, 75, 27, 104, 3, 43, 234, 221, 41, 75, 45, 74, 211, 248, 4, 53, 0, 146, 141, 34, 223, 231, 2, 35, 173, 248, 27, 0, 5, 33, 6, 168, 141, 248, 26, 48, 173, 248, 24, 80, 255, 247, 249, 254, 51, 104, 89, 4, 218, 213, 30, 75]
2023-02-17 09:04:13,891 SLIP: --> [8, 27, 104, 3, 43, 214, 221, 157, 248, 21, 32, 28, 75, 29, 73, 211, 248, 4, 53, 205, 233, 1, 66, 30, 74, 0, 146, 4, 32, 169, 34, 13, 240, 77, 248, 199, 231, 255, 247, 109, 255, 99, 120, 131, 66, 194, 209, 17, 75, 27, 104, 90, 4, 190, 213, 16, 75, 27, 104, 3, 43, 186, 221, 15, 75]
2023-02-17 09:04:13,896 SLIP: --> [8, 20, 74, 211, 248, 4, 53, 0, 146, 179, 34, 146, 231, 255, 247, 89, 255, 99, 120, 131, 66, 174, 209, 7, 75, 27, 104, 91, 4, 170, 213, 6, 75, 27, 104, 3, 43, 166, 221, 5, 75, 11, 74, 211, 248, 4, 53, 0, 146, 188, 34, 126, 231, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64]
2023-02-17 09:04:13,903 SLIP: --> [8, 253, 17, 5, 0, 180, 17, 5, 0, 205, 17, 5, 0, 229, 17, 5, 0, 24, 18, 5, 0, 59, 18, 5, 0, 58, 18, 5, 0, 112, 181, 14, 70, 21, 70, 0, 36, 165, 66, 6, 235, 4, 0, 2, 208, 23, 240, 160, 252, 8, 177, 160, 178, 112, 189, 1, 52, 244, 231, 8, 70, 17, 70, 8, 177]
2023-02-17 09:04:13,909 SLIP: --> [8, 255, 247, 120, 190, 112, 71, 7, 181, 141, 248, 7, 16, 13, 241, 7, 0, 1, 33, 255, 247, 111, 254, 3, 176, 93, 248, 4, 251, 23, 240, 120, 188, 31, 40, 138, 191, 5, 75, 79, 240, 160, 67, 0, 240, 31, 0, 211, 248, 16, 53, 35, 250, 0, 240, 0, 240, 1, 0, 112, 71, 0, 3, 0, 80]
2023-02-17 09:04:13,914 SLIP: --> [8, 4, 75, 26, 120, 26, 177, 152, 120, 0, 240, 1, 0, 112, 71, 1, 32, 250, 231, 0, 191, 101, 57, 0, 32, 12, 75, 27, 104, 91, 4, 7, 181, 14, 213, 11, 75, 27, 104, 3, 43, 10, 221, 10, 75, 10, 74, 211, 248, 4, 53, 10, 73, 0, 146, 4, 32, 64, 242, 63, 18, 12, 240, 190, 255]
2023-02-17 09:04:13,919 SLIP: --> [8, 7, 75, 0, 34, 90, 112, 3, 176, 93, 248, 4, 251, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 121, 18, 5, 0, 102, 18, 5, 0, 101, 57, 0, 32, 112, 181, 78, 77, 44, 120, 1, 44, 136, 176, 46, 70, 52, 208, 2, 44, 58, 208, 75, 78, 52, 120, 98, 30, 1, 42, 43, 216]
2023-02-17 09:04:13,926 SLIP: --> [8, 163, 30, 92, 66, 92, 65, 3, 37, 56, 35, 141, 248, 20, 80, 141, 248, 21, 64, 173, 248, 24, 48, 2, 35, 141, 248, 26, 48, 5, 33, 189, 248, 20, 48, 173, 248, 27, 48, 6, 168, 255, 247, 31, 254, 62, 75, 27, 104, 90, 4, 15, 213, 61, 75, 27, 104, 171, 66, 11, 221, 60, 75, 61, 74]
2023-02-17 09:04:13,931 SLIP: --> [8, 211, 248, 4, 53, 60, 73, 0, 146, 205, 233, 1, 84, 177, 34, 4, 32, 12, 240, 116, 255, 0, 35, 51, 112, 8, 176, 112, 189, 2, 32, 30, 240, 71, 252, 0, 40, 199, 209, 2, 35, 43, 112, 196, 231, 30, 240, 128, 252, 0, 40, 192, 209, 49, 75, 24, 104, 154, 136, 6, 144, 155, 121, 141, 248]
2023-02-17 09:04:13,937 SLIP: --> [8, 30, 48, 32, 70, 173, 248, 28, 32, 30, 240, 184, 252, 38, 75, 0, 40, 51, 209, 43, 74, 105, 120, 146, 120, 27, 104, 145, 66, 3, 244, 128, 67, 24, 209, 107, 177, 33, 75, 27, 104, 4, 43, 9, 221, 32, 75, 37, 74, 211, 248, 4, 53, 32, 73, 0, 146, 5, 32, 130, 34, 12, 240, 62, 255]
2023-02-17 09:04:13,943 SLIP: --> [8, 0, 35, 8, 33, 6, 168, 141, 248, 30, 48, 32, 240, 177, 252, 0, 35, 51, 112, 144, 231, 123, 177, 21, 75, 27, 104, 4, 43, 11, 221, 20, 75, 211, 248, 4, 53, 205, 233, 1, 33, 23, 74, 0, 146, 18, 73, 136, 34, 5, 32, 12, 240, 35, 255, 2, 35, 227, 231, 27, 104, 89, 4, 13, 213]
2023-02-17 09:04:13,948 SLIP: --> [8, 10, 75, 27, 104, 4, 43, 9, 221, 9, 75, 16, 74, 211, 248, 4, 53, 9, 73, 0, 146, 5, 32, 143, 34, 12, 240, 16, 255, 1, 35, 208, 231, 105, 57, 0, 32, 100, 57, 0, 32, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 24, 18, 5, 0, 102, 18, 5, 0, 152, 22, 5, 0]
2023-02-17 09:04:13,954 SLIP: --> [8, 213, 200, 0, 32, 159, 18, 5, 0, 183, 18, 5, 0, 235, 18, 5, 0, 45, 233, 240, 65, 5, 70, 198, 176, 12, 70, 0, 41, 0, 240, 132, 128, 68, 75, 15, 136, 26, 104, 18, 244, 128, 79, 152, 70, 23, 208, 66, 75, 27, 104, 3, 43, 19, 221, 65, 75, 138, 120, 211, 248, 4, 53, 2, 146]
2023-02-17 09:04:13,960 SLIP: --> [8, 160, 241, 54, 2, 62, 73, 210, 178, 4, 32, 81, 248, 34, 32, 1, 146, 60, 74, 0, 146, 60, 73, 64, 242, 107, 18, 12, 240, 207, 254, 55, 45, 101, 209, 163, 120, 30, 70, 0, 43, 53, 208, 216, 248, 0, 32, 82, 4, 49, 213, 49, 74, 18, 104, 3, 42, 45, 221, 3, 51, 51, 74, 128, 43]
2023-02-17 09:04:13,965 SLIP: --> [8, 40, 191, 128, 35, 210, 248, 0, 192, 32, 70, 5, 170, 3, 235, 4, 14, 16, 248, 1, 27, 79, 234, 17, 24, 1, 240, 15, 1, 28, 249, 8, 128, 130, 248, 0, 128, 28, 249, 1, 16, 81, 112, 134, 69, 2, 241, 2, 2, 238, 209, 5, 169, 0, 34, 1, 248, 19, 32, 32, 75, 36, 74, 211, 248]
2023-02-17 09:04:13,971 SLIP: --> [8, 4, 53, 1, 146, 35, 74, 2, 145, 0, 146, 31, 73, 79, 244, 185, 114, 4, 32, 12, 240, 147, 254, 179, 28, 26, 10, 141, 248, 21, 32, 141, 248, 23, 112, 5, 34, 5, 169, 0, 32, 63, 10, 141, 248, 20, 80, 141, 248, 22, 48, 141, 248, 24, 112, 255, 247, 128, 254, 0, 34, 5, 33, 5, 168]
2023-02-17 09:04:13,976 SLIP: --> [8, 1, 240, 111, 250, 5, 70, 94, 177, 3, 52, 2, 70, 49, 70, 32, 70, 1, 240, 103, 250, 50, 70, 5, 70, 33, 70, 0, 32, 255, 247, 109, 254, 41, 70, 0, 32, 255, 247, 111, 254, 70, 176, 189, 232, 240, 129, 0, 38, 209, 231, 0, 191, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64]
2023-02-17 09:04:13,982 SLIP: --> [8, 184, 22, 5, 0, 6, 19, 5, 0, 102, 18, 5, 0, 228, 45, 0, 32, 217, 25, 5, 0, 37, 19, 5, 0, 3, 120, 2, 43, 2, 209, 64, 104, 25, 240, 219, 185, 1, 43, 250, 208, 112, 71, 0, 0, 8, 181, 33, 240, 193, 250, 3, 75, 0, 40, 20, 191, 2, 34, 1, 34, 26, 112, 8, 189]
2023-02-17 09:04:13,989 SLIP: --> [8, 100, 57, 0, 32, 14, 74, 0, 35, 50, 248, 51, 16, 129, 66, 3, 209, 2, 235, 195, 3, 88, 104, 112, 71, 1, 51, 13, 43, 244, 209, 1, 40, 8, 208, 2, 40, 8, 208, 3, 40, 8, 209, 2, 34, 5, 75, 3, 235, 194, 3, 239, 231, 0, 34, 249, 231, 1, 34, 247, 231, 2, 72, 112, 71]
2023-02-17 09:04:13,994 SLIP: --> [8, 220, 22, 5, 0, 196, 22, 5, 0, 45, 19, 5, 0, 255, 247, 22, 189, 55, 181, 20, 77, 43, 120, 19, 187, 19, 76, 163, 120, 165, 43, 19, 75, 27, 104, 12, 191, 90, 34, 165, 34, 91, 4, 162, 112, 14, 213, 16, 75, 27, 104, 4, 43, 10, 221, 15, 75, 15, 73, 211, 248, 4, 53, 1, 146]
2023-02-17 09:04:14,000 SLIP: --> [8, 14, 74, 0, 146, 5, 32, 204, 34, 12, 240, 248, 253, 163, 120, 107, 112, 1, 36, 44, 112, 255, 247, 70, 254, 32, 70, 3, 176, 48, 189, 0, 32, 251, 231, 0, 191, 105, 57, 0, 32, 213, 200, 0, 32, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 102, 18, 5, 0, 63, 19, 5, 0]
2023-02-17 09:04:14,006 SLIP: --> [8, 240, 181, 57, 76, 35, 120, 135, 176, 203, 185, 98, 120, 186, 185, 227, 120, 54, 78, 12, 43, 30, 217, 51, 104, 90, 4, 14, 213, 52, 75, 27, 104, 3, 43, 10, 221, 51, 75, 52, 74, 211, 248, 4, 53, 51, 73, 0, 146, 4, 32, 79, 244, 211, 114, 12, 240, 193, 253, 1, 35, 35, 112, 0, 32]
2023-02-17 09:04:14,012 SLIP: --> [8, 1, 240, 192, 249, 16, 177, 0, 32, 1, 240, 12, 250, 255, 247, 10, 254, 7, 176, 240, 189, 1, 35, 42, 72, 99, 112, 79, 244, 0, 65, 20, 240, 33, 254, 51, 104, 39, 77, 19, 244, 128, 79, 22, 208, 32, 75, 27, 104, 3, 43, 18, 221, 226, 120, 31, 75, 5, 235, 194, 1, 53, 248, 50, 32]
2023-02-17 09:04:14,017 SLIP: --> [8, 211, 248, 4, 53, 73, 104, 1, 146, 31, 74, 2, 145, 0, 146, 27, 73, 79, 244, 216, 114, 4, 32, 12, 240, 145, 253, 51, 104, 226, 120, 91, 4, 53, 248, 50, 112, 19, 213, 18, 75, 27, 104, 3, 43, 15, 221, 5, 235, 194, 5, 16, 75, 106, 104, 211, 248, 4, 53, 1, 146, 19, 74, 0, 146]
2023-02-17 09:04:14,023 SLIP: --> [8, 14, 73, 2, 151, 79, 244, 202, 114, 4, 32, 12, 240, 119, 253, 0, 35, 5, 169, 54, 32, 141, 248, 22, 48, 173, 248, 20, 112, 255, 247, 120, 254, 227, 120, 1, 51, 227, 112, 170, 231, 101, 57, 0, 32, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 98, 19, 5, 0, 102, 18, 5, 0]
2023-02-17 09:04:14,029 SLIP: --> [8, 108, 57, 0, 32, 220, 22, 5, 0, 114, 19, 5, 0, 141, 19, 5, 0, 8, 181, 7, 75, 7, 74, 8, 72, 0, 33, 25, 112, 89, 112, 217, 112, 20, 240, 174, 253, 24, 177, 189, 232, 8, 64, 25, 240, 214, 184, 8, 189, 101, 57, 0, 32, 25, 102, 2, 0, 68, 23, 5, 0, 45, 233, 240, 79]
2023-02-17 09:04:14,034 SLIP: --> [8, 4, 70, 207, 176, 13, 70, 0, 41, 0, 240, 165, 130, 131, 30, 1, 43, 0, 242, 32, 130, 75, 136, 18, 43, 1, 217, 0, 36, 8, 225, 1, 43, 26, 217, 0, 32, 255, 247, 77, 252, 105, 120, 6, 70, 1, 240, 10, 249, 104, 112, 0, 32, 173, 248, 32, 96, 255, 247, 67, 252, 105, 120, 6, 70]
2023-02-17 09:04:14,039 SLIP: --> [8, 1, 240, 0, 249, 189, 248, 32, 48, 104, 112, 67, 234, 6, 32, 107, 136, 173, 248, 32, 0, 2, 59, 107, 128, 106, 136, 114, 177, 13, 241, 34, 1, 0, 32, 255, 247, 251, 252, 107, 136, 152, 66, 1, 70, 213, 209, 106, 120, 13, 241, 34, 0, 1, 240, 245, 248, 104, 112, 0, 32, 255, 247, 33, 252]
2023-02-17 09:04:14,046 SLIP: --> [8, 107, 120, 131, 66, 201, 209, 180, 79, 181, 248, 2, 128, 59, 104, 3, 44, 3, 244, 128, 67, 62, 70, 0, 240, 125, 129, 195, 177, 175, 75, 27, 104, 3, 43, 20, 221, 189, 248, 32, 64, 173, 75, 32, 70, 211, 248, 4, 53, 5, 147, 255, 247, 167, 254, 171, 74, 1, 144, 0, 146, 205, 233, 2, 72]
2023-02-17 09:04:14,052 SLIP: --> [8, 5, 155, 169, 73, 79, 244, 24, 114, 4, 32, 12, 240, 215, 252, 167, 76, 111, 136, 1, 35, 163, 112, 51, 104, 3, 244, 128, 67, 0, 47, 64, 240, 222, 128, 187, 177, 157, 75, 27, 104, 3, 43, 19, 221, 189, 248, 32, 80, 155, 75, 40, 70, 211, 248, 4, 53, 5, 147, 255, 247, 131, 254, 156, 74]
2023-02-17 09:04:14,057 SLIP: --> [8, 0, 146, 205, 233, 1, 5, 5, 155, 151, 73, 64, 242, 5, 34, 4, 32, 12, 240, 180, 252, 189, 248, 32, 0, 6, 169, 30, 240, 123, 248, 0, 40, 89, 209, 51, 104, 157, 248, 26, 128, 189, 248, 24, 80, 88, 4, 193, 70, 35, 213, 223, 248, 40, 162, 218, 248, 0, 48, 3, 43, 29, 221, 223, 248]
2023-02-17 09:04:14,063 SLIP: --> [8, 32, 178, 40, 70, 219, 248, 4, 53, 5, 147, 255, 247, 91, 254, 137, 74, 5, 155, 1, 144, 0, 146, 205, 233, 2, 88, 131, 73, 64, 242, 221, 18, 4, 32, 12, 240, 139, 252, 51, 104, 205, 248, 20, 176, 19, 244, 128, 79, 3, 208, 218, 248, 0, 48, 3, 43, 94, 220, 54, 35, 141, 248, 52, 48]
2023-02-17 09:04:14,069 SLIP: --> [8, 9, 241, 2, 3, 27, 10, 141, 248, 55, 80, 5, 34, 45, 10, 13, 169, 0, 32, 8, 241, 2, 8, 141, 248, 53, 48, 141, 248, 56, 80, 141, 248, 54, 128, 255, 247, 106, 252, 0, 34, 5, 33, 13, 168, 1, 240, 89, 248, 5, 70, 185, 241, 0, 15, 10, 208, 2, 70, 73, 70, 7, 152, 1, 240]
2023-02-17 09:04:14,075 SLIP: --> [8, 80, 248, 7, 153, 5, 70, 74, 70, 0, 32, 255, 247, 86, 252, 41, 70, 0, 32, 255, 247, 88, 252, 0, 37, 148, 248, 0, 128, 184, 241, 0, 15, 32, 209, 255, 177, 227, 120, 100, 74, 1, 59, 50, 248, 51, 32, 189, 248, 32, 48, 154, 66, 22, 209, 97, 72, 20, 240, 0, 253, 51, 104, 132, 248]
2023-02-17 09:04:14,080 SLIP: --> [8, 1, 128, 89, 4, 14, 213, 85, 75, 27, 104, 3, 43, 10, 221, 84, 75, 91, 74, 211, 248, 4, 53, 84, 73, 0, 146, 4, 32, 64, 242, 57, 18, 12, 240, 44, 252, 0, 45, 0, 240, 148, 128, 80, 75, 0, 36, 156, 112, 32, 70, 79, 176, 189, 232, 240, 143, 82, 75, 7, 154, 211, 248, 0, 224]
2023-02-17 09:04:14,085 SLIP: --> [8, 184, 241, 128, 15, 196, 70, 13, 171, 40, 191, 79, 240, 128, 12, 12, 235, 2, 10, 24, 70, 146, 69, 3, 241, 2, 3, 17, 209, 0, 35, 0, 248, 28, 48, 5, 155, 72, 74, 211, 248, 4, 53, 1, 146, 71, 74, 2, 144, 0, 146, 61, 73, 79, 244, 239, 114, 4, 32, 12, 240, 255, 251, 124, 231]
2023-02-17 09:04:14,092 SLIP: --> [8, 18, 248, 1, 27, 79, 234, 17, 27, 1, 240, 15, 1, 30, 249, 11, 176, 3, 248, 2, 188, 30, 249, 1, 16, 3, 248, 1, 28, 218, 231, 27, 179, 223, 248, 184, 144, 217, 248, 0, 48, 3, 43, 29, 221, 189, 248, 32, 128, 43, 77, 64, 70, 213, 248, 4, 53, 5, 147, 255, 247, 163, 253, 52, 74]
2023-02-17 09:04:14,097 SLIP: --> [8, 5, 155, 1, 144, 205, 233, 2, 135, 0, 146, 39, 73, 79, 244, 4, 114, 4, 32, 12, 240, 211, 251, 51, 104, 19, 244, 128, 79, 168, 70, 3, 208, 217, 248, 0, 48, 3, 43, 5, 220, 57, 70, 8, 168, 30, 240, 188, 251, 5, 70, 113, 231, 35, 75, 186, 28, 211, 248, 0, 192, 128, 42, 13, 171]
2023-02-17 09:04:14,103 SLIP: --> [8, 40, 191, 128, 34, 13, 241, 32, 14, 0, 32, 29, 70, 30, 248, 1, 27, 79, 234, 17, 25, 1, 240, 15, 1, 28, 249, 9, 144, 131, 248, 0, 144, 1, 48, 28, 249, 1, 16, 89, 112, 130, 66, 3, 241, 2, 3, 237, 209, 0, 35, 5, 248, 18, 48, 20, 74, 216, 248, 4, 53, 1, 146, 19, 74]
2023-02-17 09:04:14,109 SLIP: --> [8, 0, 146, 9, 73, 2, 149, 64, 242, 17, 34, 4, 32, 12, 240, 150, 251, 202, 231, 165, 112, 1, 36, 107, 231, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 174, 19, 5, 0, 102, 18, 5, 0, 101, 57, 0, 32, 228, 19, 5, 0, 13, 20, 5, 0, 220, 22, 5, 0, 108, 57, 0, 32]
2023-02-17 09:04:14,114 SLIP: --> [8, 99, 20, 5, 0, 228, 45, 0, 32, 217, 25, 5, 0, 37, 19, 5, 0, 50, 20, 5, 0, 27, 179, 223, 248, 232, 145, 217, 248, 0, 48, 3, 43, 29, 221, 189, 248, 32, 64, 109, 78, 32, 70, 214, 248, 4, 53, 5, 147, 255, 247, 40, 253, 106, 74, 5, 155, 1, 144, 0, 146, 205, 233, 2, 72]
2023-02-17 09:04:14,120 SLIP: --> [8, 104, 73, 79, 244, 27, 114, 4, 32, 12, 240, 88, 251, 59, 104, 19, 244, 128, 79, 180, 70, 3, 208, 217, 248, 0, 48, 3, 43, 13, 220, 98, 78, 105, 136, 1, 36, 8, 168, 180, 112, 30, 240, 62, 251, 0, 40, 127, 244, 28, 175, 176, 112, 255, 247, 28, 250, 26, 231, 107, 136, 91, 74, 2, 51]
2023-02-17 09:04:14,126 SLIP: --> [8, 20, 104, 128, 43, 13, 170, 40, 191, 128, 35, 8, 174, 0, 32, 23, 70, 22, 248, 1, 27, 79, 234, 17, 30, 1, 240, 15, 1, 20, 249, 14, 224, 130, 248, 0, 224, 1, 48, 97, 86, 81, 112, 131, 66, 2, 241, 2, 2, 238, 209, 0, 34, 7, 248, 19, 32, 77, 74, 220, 248, 4, 53, 1, 146]
2023-02-17 09:04:14,131 SLIP: --> [8, 76, 74, 0, 146, 71, 73, 2, 151, 64, 242, 109, 34, 4, 32, 12, 240, 21, 251, 196, 231, 144, 179, 1, 40, 127, 244, 223, 173, 223, 248, 28, 129, 216, 248, 0, 48, 91, 4, 36, 213, 223, 248, 20, 145, 217, 248, 0, 48, 3, 43, 30, 221, 14, 136, 57, 79, 48, 70, 215, 248, 4, 53, 5, 147]
2023-02-17 09:04:14,137 SLIP: --> [8, 255, 247, 192, 252, 170, 120, 5, 155, 1, 144, 205, 233, 2, 98, 58, 74, 0, 146, 52, 73, 64, 242, 147, 34, 4, 32, 12, 240, 239, 250, 216, 248, 0, 48, 19, 244, 128, 79, 188, 70, 3, 208, 217, 248, 0, 48, 3, 43, 36, 220, 41, 70, 55, 32, 255, 247, 235, 251, 185, 230, 47, 75, 27, 104]
2023-02-17 09:04:14,144 SLIP: --> [3]
Traceback (most recent call last):
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\nrfutil-script.py", line 33, in <module>
    sys.exit(load_entry_point('nrfutil==6.1.3', 'console_scripts', 'nrfutil')())
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nordicsemi\__main__.py", line 1063, in serial
    do_serial(package, port, connect_delay, flow_control, packet_receipt_notification, baud_rate, serial_number, True,
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nordicsemi\__main__.py", line 980, in do_serial
    dfu.dfu_send_images()
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nordicsemi\dfu\dfu.py", line 127, in dfu_send_images
    self._dfu_send_image(self.manifest.application)
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nordicsemi\dfu\dfu.py", line 100, in _dfu_send_image
    self.dfu_transport.send_firmware(data)
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 301, in send_firmware
    response['crc'] = self.__stream_data(data=data, crc=response['crc'], offset=i)
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 474, in __stream_data
    response = self.__calculate_checksum()
  File "C:\Users\uPD008\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 412, in __calculate_checksum
    raise NordicSemiException('Did not receive checksum response from DFU target. '
pc_ble_driver_py.exceptions.NordicSemiException: Did not receive checksum response from DFU target. If MSD is enabled on the target device, try to disable it ref. https://wiki.segger.com/index.php?title=J-Link-OB_SAM3U

7282.sdk_config.h

Parents
  • Hi Stefano, 

    As far as I know nrfutil doesn't have the feature to continue DFU update after interrupted. The documentation here mentioned about that the DFU master can start by select the last object was sent and can determine that it should re-send the object or continue with the new object. 
    But this feature is not implemented in nrfutil. 

    From the log you provided nrfutil simply send a new init packet (initialize packet ) for a new DFU update. The problem here is that the bootloader is still in the process of the interrupted DFU update. I would assume that it wouldn't expect the init packet and didn't response to the init packet send request. 

    So in your case if you are planning to make your own DFU master then you can implement this feature to continue DFU update after interrupted (you can refer to our BLE DFU library on the phone that you can find inside nRF Toolbox or nRF Device Firmware Update. As far as I know the feature to continue after interrupted is implemented on the apps. 

    Another option is to send an abort command (0x0C) to reset the bootloader and start a new DFU update. I don't think we have the feature implemented on nrfutil neither. The solution is do a power/pin reset on the board after you have an interrupted DFU update. 

  • Dear Hung Bui,

    Thank you for your quick answer. Trying to understand which is the last unsent packet and restart the update from there can be tricky and we don't want to do that. However, the problem I described in my message takes place not only if I perform an update attempt (through nrfutil) immediately after I cancelled the ongoing one, but also if I stop the update, switch the board off/on and then perform the second DFU attempt. In our custom board we perform a board reset each time we attempt a DFU (because we need to send the board in DFU mode from the application fw) and the result is the same as the one observed on the Nordic updated through nrfutil and connected straight to a serial adapter
    Do you have some other ideas on why this happens? Could you do a quick test on your side (it takes justa  couple of minutes) to confirm if you see the same behaviour? 

    Thanks.

    Kind regards,

    Stefano

Reply
  • Dear Hung Bui,

    Thank you for your quick answer. Trying to understand which is the last unsent packet and restart the update from there can be tricky and we don't want to do that. However, the problem I described in my message takes place not only if I perform an update attempt (through nrfutil) immediately after I cancelled the ongoing one, but also if I stop the update, switch the board off/on and then perform the second DFU attempt. In our custom board we perform a board reset each time we attempt a DFU (because we need to send the board in DFU mode from the application fw) and the result is the same as the one observed on the Nordic updated through nrfutil and connected straight to a serial adapter
    Do you have some other ideas on why this happens? Could you do a quick test on your side (it takes justa  couple of minutes) to confirm if you see the same behaviour? 

    Thanks.

    Kind regards,

    Stefano

Children
  • Hi Stefano, 

    Could you let me know how exactly you did the test ? How you interrupt the DFU process  , by killing nrfutil or by resetting the nRF5 ? 

    I did a quick test here and found that the nrfutil actually can continue a DFU update that was interrupted, as long as you turn on the PRN. 

    You can see the screen shot here , I break (Ctrl+C) nrfutil at 17% and then it continue from 17% next time I started it. Then I break again at 51% and then next time it will start at 51% and will eventually finish DFU. 


    ( I use nrfutil v7.x , it requires extra parameter nrf5sdk-tools to use the "legacy" nrfutil feature) 

    If I do a reset of the chip, the next time it will start from 0 and I don't see the issue that the device don't response. 

    Have you made sure after you reset the device enter DFU mode? By default you need to hold Button 4 on the DK to make the device enter DFU mode. 


  • Dear Hung Bui,

    thank you for your answer and sorry for being late, I was stuck between multiple deadlines...

    In order to do the test I actually interrupted nrfutil with a Ctrl+C, as you do in your example. I am also sure that the device is in DFU mode, as it answers to initial SLIP packets (whose protocol is only implemented in the bootloader, and not in my application). Consider that in my case I do not have flow control, I do not know if it makes any difference.

    I also collected memory readouts of the entire chip which might shed some light on what is going on. The first one shows a readout where a successful (i.e. non-interrupted) update has taken place. The second shows a readout of an interrupted update. By comparing with the first readout one sees that 1k starting from 0x64000 is set to 0xff (my firmware starts at 0x57000, which is probably where the bootloader caches the received data before moving them to the address specified by the linker), most probably the one being transferred when I hit ctrl+c. One can also see that some bits in the end are also different, probably those related to the CRC. The third readout refers to an update attempt after the interruption has taken place. One sees that, with respect to the second readout, the initial 1k (i.e. the one starting at 0x57000) is set to 0xff, which means that the first block was erased by the update process but the update could not proceed. From my log I can see indeed that the first 1k was transferred (see slip_log.txt), but the CRC requested after it was never received.

    I believe that the interrupted fw update triggers somehow a wrong CRC when a subsequent update attempt is performed, but I cannot clearly see how to cure it. Do you have more insight on the issue?

    Thanks.
    Regards,

    Stefano

    PS: the "Nordic" txt files are originally .mot files which I renamed. For some reason Nordic page does not allow to upload .mot files

    Stefano

    09/03/2023 17:29:17 (199516765 ms)  Start Writing C:\work\vdf_40170_ca\Prj\tools\App_Generator\P567_FPNFC_Mesh_App_V_ca_0.0.1_f6e329d_JustNordic\changed_fw.567
    09/03/2023 17:29:17 (199516781 ms)  All 40170 .bin bytes read (200432) C:\work\vdf_40170_ca\Prj\tools\App_Generator\P567_FPNFC_Mesh_App_V_ca_0.0.1_f6e329d_JustNordic\changed_fw.567
    09/03/2023 17:29:17 (199516781 ms)  All 40170 .dat bytes read (141) C:\work\vdf_40170_ca\Prj\tools\App_Generator\P567_FPNFC_Mesh_App_V_ca_0.0.1_f6e329d_JustNordic\changed_fw.567
    09/03/2023 17:29:17 (199516781 ms)  Sent S-Command SW
    09/03/2023 17:29:17 (199516781 ms)  Received 0x59 0x79 0x59 0x79
    09/03/2023 17:29:18 (199517796 ms)  SLIP Protocol Asking Ping, retry 1
    09/03/2023 17:29:18 (199517796 ms)  SLIP Protocol SLIP: --> [9, 1]
    09/03/2023 17:29:18 (199517796 ms)  SLIP Protocol dfu_serial_ping[SEND]: 0
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol TIMEOUT RX USART nessun byte ricevuto
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Asking Ping, retry 2
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: --> [9, 2]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol dfu_serial_ping[SEND]: 0
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: <-- [96, 0, 1, 1]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Invalid response size: 4
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Asking Ping, retry 3
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: --> [9, 3]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol dfu_serial_ping[SEND]: 0
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: <-- [96, 9, 1, 3]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Set Packet Receipt Notification 0
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: --> [2, 0, 0]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: <-- [96, 2, 1]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: --> [7]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: <-- [96, 7, 1, 131, 0]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Received MTU: 131
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Sending init packet...
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Selecting Object type: 1
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: --> [6, 1]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: <-- [96, 6, 1, 0, 2, 0, 0, 141, 0, 0, 0, 27, 213, 46, 70]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Object selected:  max_size:512 offset:141 crc:0x462ED51B
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: --> [4]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: <-- [96, 4, 1]
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Sending firmware file...
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol Selecting Object type: 2
    09/03/2023 17:29:19 (199518796 ms)  SLIP Protocol SLIP: --> [6, 2]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: <-- [96, 6, 1, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol Object selected:  max_size:4096 offset:0 crc:0x00000000
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol Creating object type 2 with size 4096
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [1, 2, 0, 16, 0, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: <-- [96, 1, 1]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol Streaming Data: len:4096 offset:0 crc:0x00000000
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 0, 253, 3, 32, 233, 17, 4, 0, 17, 18, 4, 0, 19, 18, 4, 0, 21, 18, 4, 0, 23, 18, 4, 0, 25, 18, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 18, 4, 0, 29, 18, 4, 0, 0, 0, 0, 0, 31, 18, 4, 0, 33, 18, 4, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 35, 18, 4, 0, 35, 18, 4, 0, 69, 35, 4, 0, 33, 41, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 145, 33, 4, 0, 101, 36, 4, 0, 35, 18, 4, 0, 21, 38, 4, 0, 105, 208, 2, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 73, 54, 4, 0, 57, 179, 3, 0, 33, 13, 3, 0, 165, 29, 4, 0, 9, 180, 3, 0, 35, 18, 4, 0, 121, 25, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 41, 38, 4, 0, 35, 18, 4, 0, 189, 35, 4, 0, 35, 18, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 35, 18, 4, 0, 253, 180, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 18, 4, 0, 0, 0, 0, 0, 35, 18, 4, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 16, 181, 5, 76, 35, 120, 51, 185, 4, 75, 19, 177, 4, 72, 175, 243, 0, 128, 1, 35, 35, 112, 16, 189, 72, 57, 0, 32, 0, 0, 0, 0, 128, 94, 5, 0, 8, 181, 3, 75, 27, 177, 3, 73, 3, 72, 175, 243, 0, 128, 8, 189, 0, 0, 0, 0, 76, 57, 0, 32, 128, 94, 5, 0]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 21, 75, 0, 43, 8, 191, 19, 75, 157, 70, 163, 245, 128, 58, 0, 33, 139, 70, 15, 70, 19, 72, 20, 74, 18, 26, 38, 240, 251, 252, 15, 75, 0, 43, 0, 208, 152, 71, 14, 75, 0, 43, 0, 208, 152, 71, 0, 32, 0, 33, 4, 0, 13, 0, 13, 72, 0, 40, 2, 208, 12, 72, 40, 240]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 223, 254, 38, 240, 171, 248, 32, 0, 41, 0, 33, 240, 151, 254, 38, 240, 149, 248, 0, 191, 0, 0, 8, 0, 0, 253, 3, 32, 0, 0, 0, 0, 0, 0, 0, 0, 72, 57, 0, 32, 124, 205, 0, 32, 65, 240, 4, 0, 85, 0, 5, 0, 56, 181, 4, 70, 69, 24, 172, 66, 1, 209, 0, 32]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 5, 224, 20, 248, 1, 11, 23, 240, 153, 254, 0, 40, 245, 208, 56, 189, 56, 181, 5, 70, 12, 70, 21, 240, 177, 250, 41, 70, 21, 240, 180, 250, 160, 66, 52, 191, 0, 32, 1, 32, 56, 189, 55, 181, 13, 70, 4, 70, 104, 185, 169, 178, 0, 34, 32, 70, 1, 240, 179, 253, 1, 33, 141, 248]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 7, 0, 13, 241, 7, 0, 255, 247, 213, 255, 3, 176, 48, 189, 255, 247, 209, 255, 0, 40, 249, 209, 236, 231, 7, 181, 12, 72, 3, 33, 255, 247, 228, 255, 11, 75, 27, 104, 91, 4, 13, 213, 10, 75, 27, 104, 3, 43, 9, 221, 9, 75, 9, 74, 211, 248, 4, 53, 9, 73, 0, 146, 4, 32]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 87, 34, 13, 240, 171, 249, 3, 176, 93, 248, 4, 251, 68, 19, 5, 0, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 194, 18, 5, 0, 180, 18, 5, 0, 1, 72, 5, 33, 255, 247, 191, 191, 71, 19, 5, 0, 7, 181, 12, 72, 3, 33, 255, 247, 184, 255, 11, 75, 27, 104, 91, 4]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 13, 213, 10, 75, 27, 104, 3, 43, 9, 221, 9, 75, 9, 74, 211, 248, 4, 53, 9, 73, 0, 146, 4, 32, 105, 34, 13, 240, 127, 249, 3, 176, 93, 248, 4, 251, 76, 19, 5, 0, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 195, 18, 5, 0, 180, 18, 5, 0, 1, 72, 3, 33]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 255, 247, 147, 191, 79, 19, 5, 0, 31, 181, 2, 35, 141, 248, 5, 0, 141, 248, 4, 48, 56, 34, 141, 248, 10, 48, 5, 33, 189, 248, 4, 48, 173, 248, 8, 32, 2, 168, 173, 248, 11, 48, 255, 247, 126, 255, 5, 176, 93, 248, 4, 251, 21, 240, 34, 186, 8, 181, 23, 240, 39, 254, 128, 178]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 8, 189, 7, 181, 13, 241, 7, 0, 23, 240, 226, 253, 32, 185, 157, 248, 7, 0, 3, 176, 93, 248, 4, 251, 0, 32, 250, 231, 112, 181, 13, 70, 136, 176, 20, 70, 0, 42, 69, 208, 54, 41, 39, 208, 7, 216, 1, 41, 0, 240, 140, 128, 25, 41, 117, 208, 23, 240, 186, 253, 58, 224, 55, 41]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 58, 208, 56, 41, 248, 209, 16, 70, 0, 240, 158, 254, 196, 178, 255, 44, 72, 78, 173, 248, 20, 0, 68, 209, 51, 104, 88, 4, 42, 213, 70, 75, 27, 104, 3, 43, 38, 221, 69, 75, 69, 74, 211, 248, 4, 53, 0, 146, 156, 34, 68, 73, 4, 32, 13, 240, 17, 249, 27, 224, 17, 70, 2, 32]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 0, 240, 188, 251, 176, 185, 59, 75, 27, 104, 93, 4, 13, 213, 58, 75, 27, 104, 3, 43, 9, 221, 57, 75, 59, 74, 211, 248, 4, 53, 0, 146, 129, 34, 56, 73, 4, 32, 13, 240, 249, 248, 23, 240, 129, 253, 0, 32, 255, 247, 50, 255, 8, 176, 112, 189, 17, 70, 3, 32, 0, 240, 158, 251]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 0, 40, 247, 209, 43, 75, 27, 104, 92, 4, 238, 213, 42, 75, 27, 104, 3, 43, 234, 221, 41, 75, 45, 74, 211, 248, 4, 53, 0, 146, 141, 34, 223, 231, 2, 35, 173, 248, 27, 0, 5, 33, 6, 168, 141, 248, 26, 48, 173, 248, 24, 80, 255, 247, 249, 254, 51, 104, 89, 4, 218, 213, 30, 75]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 27, 104, 3, 43, 214, 221, 157, 248, 21, 32, 28, 75, 29, 73, 211, 248, 4, 53, 205, 233, 1, 66, 30, 74, 0, 146, 4, 32, 169, 34, 13, 240, 189, 248, 199, 231, 255, 247, 109, 255, 99, 120, 131, 66, 194, 209, 17, 75, 27, 104, 90, 4, 190, 213, 16, 75, 27, 104, 3, 43, 186, 221, 15, 75]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 20, 74, 211, 248, 4, 53, 0, 146, 179, 34, 146, 231, 255, 247, 89, 255, 99, 120, 131, 66, 174, 209, 7, 75, 27, 104, 91, 4, 170, 213, 6, 75, 27, 104, 3, 43, 166, 221, 5, 75, 11, 74, 211, 248, 4, 53, 0, 146, 188, 34, 126, 231, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 253, 18, 5, 0, 180, 18, 5, 0, 205, 18, 5, 0, 229, 18, 5, 0, 24, 19, 5, 0, 59, 19, 5, 0, 58, 19, 5, 0, 112, 181, 14, 70, 21, 70, 0, 36, 165, 66, 6, 235, 4, 0, 2, 208, 23, 240, 16, 253, 8, 177, 160, 178, 112, 189, 1, 52, 244, 231, 8, 70, 17, 70, 8, 177]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 255, 247, 120, 190, 112, 71, 7, 181, 141, 248, 7, 16, 13, 241, 7, 0, 1, 33, 255, 247, 111, 254, 3, 176, 93, 248, 4, 251, 23, 240, 232, 188, 31, 40, 138, 191, 5, 75, 79, 240, 160, 67, 0, 240, 31, 0, 211, 248, 16, 53, 35, 250, 0, 240, 0, 240, 1, 0, 112, 71, 0, 3, 0, 80]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 4, 75, 26, 120, 26, 177, 152, 120, 0, 240, 1, 0, 112, 71, 1, 32, 250, 231, 0, 191, 113, 57, 0, 32, 12, 75, 27, 104, 91, 4, 7, 181, 14, 213, 11, 75, 27, 104, 3, 43, 10, 221, 10, 75, 10, 74, 211, 248, 4, 53, 10, 73, 0, 146, 4, 32, 64, 242, 139, 18, 13, 240, 46, 248]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 7, 75, 0, 34, 90, 112, 3, 176, 93, 248, 4, 251, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 121, 19, 5, 0, 102, 19, 5, 0, 113, 57, 0, 32, 7, 181, 7, 75, 0, 147, 141, 248, 6, 0, 68, 242, 70, 51, 8, 33, 104, 70, 173, 248, 4, 48, 32, 240, 137, 253, 3, 176]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 93, 248, 4, 251, 3, 0, 4, 71, 112, 181, 95, 76, 95, 77, 35, 120, 1, 59, 136, 176, 3, 43, 9, 216, 223, 232, 3, 240, 2, 58, 144, 155, 2, 32, 30, 240, 213, 252, 8, 185, 2, 35, 35, 112, 44, 120, 99, 30, 1, 43, 43, 216, 163, 30, 92, 66, 92, 65, 3, 38, 56, 35, 141, 248]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 20, 96, 141, 248, 21, 64, 173, 248, 24, 48, 2, 35, 141, 248, 26, 48, 5, 33, 189, 248, 20, 48, 173, 248, 27, 48, 6, 168, 255, 247, 5, 254, 75, 75, 27, 104, 90, 4, 15, 213, 74, 75, 27, 104, 179, 66, 11, 221, 73, 75, 74, 74, 211, 248, 4, 53, 73, 73, 0, 146, 205, 233, 1, 100]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 237, 34, 4, 32, 12, 240, 202, 255, 0, 35, 43, 112, 8, 176, 112, 189, 30, 240, 222, 252, 0, 40, 201, 209, 66, 75, 6, 147, 2, 32, 68, 242, 76, 99, 173, 248, 28, 48, 30, 240, 25, 253, 57, 75, 0, 40, 50, 209, 61, 74, 33, 122, 146, 120, 27, 104, 145, 66, 3, 244, 128, 67, 23, 209]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 107, 177, 52, 75, 27, 104, 4, 43, 9, 221, 51, 75, 55, 74, 211, 248, 4, 53, 51, 73, 0, 146, 5, 32, 159, 34, 12, 240, 159, 255, 0, 35, 8, 33, 6, 168, 141, 248, 30, 48, 32, 240, 18, 253, 0, 35, 156, 231, 123, 177, 40, 75, 27, 104, 4, 43, 11, 221, 39, 75, 211, 248, 4, 53]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 205, 233, 1, 33, 42, 74, 0, 146, 37, 73, 165, 34, 5, 32, 12, 240, 133, 255, 2, 35, 228, 231, 27, 104, 89, 4, 13, 213, 29, 75, 27, 104, 4, 43, 9, 221, 28, 75, 35, 74, 211, 248, 4, 53, 28, 73, 0, 146, 5, 32, 172, 34, 12, 240, 114, 255, 1, 35, 209, 231, 22, 75, 211, 248]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 4, 53, 99, 96, 4, 35, 35, 112, 0, 35, 43, 112, 1, 240, 102, 253, 108, 231, 1, 240, 103, 252, 6, 70, 48, 177, 0, 32, 255, 247, 66, 255, 0, 35, 35, 112, 43, 112, 97, 231, 11, 75, 98, 104, 211, 248, 4, 53, 155, 26, 179, 245, 0, 79, 127, 246, 89, 175, 2, 32, 255, 247, 50, 255]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 38, 112, 46, 112, 82, 231, 0, 191, 100, 57, 0, 32, 112, 57, 0, 32, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 24, 19, 5, 0, 102, 19, 5, 0, 3, 0, 4, 83, 221, 200, 0, 32, 159, 19, 5, 0, 183, 19, 5, 0, 235, 19, 5, 0, 45, 233, 240, 65, 5, 70, 198, 176]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 12, 70, 0, 41, 0, 240, 132, 128, 68, 75, 15, 136, 26, 104, 18, 244, 128, 79, 152, 70, 23, 208, 66, 75, 27, 104, 3, 43, 19, 221, 65, 75, 138, 120, 211, 248, 4, 53, 2, 146, 160, 241, 54, 2, 62, 73, 210, 178, 4, 32, 81, 248, 34, 32, 1, 146, 60, 74, 0, 146, 60, 73, 64, 242]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 183, 18, 12, 240, 11, 255, 55, 45, 101, 209, 163, 120, 30, 70, 0, 43, 53, 208, 216, 248, 0, 32, 82, 4, 49, 213, 49, 74, 18, 104, 3, 42, 45, 221, 3, 51, 51, 74, 128, 43, 40, 191, 128, 35, 210, 248, 0, 192, 32, 70, 5, 170, 3, 235, 4, 14, 16, 248, 1, 27, 79, 234, 17, 24]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 1, 240, 15, 1, 28, 249, 8, 128, 130, 248, 0, 128, 28, 249, 1, 16, 81, 112, 134, 69, 2, 241, 2, 2, 238, 209, 5, 169, 0, 34, 1, 248, 19, 32, 32, 75, 36, 74, 211, 248, 4, 53, 1, 146, 35, 74, 2, 145, 0, 146, 31, 73, 79, 244, 223, 114, 4, 32, 12, 240, 207, 254, 179, 28]
    09/03/2023 17:29:19 (199518812 ms)  SLIP Protocol SLIP: --> [8, 26, 10, 141, 248, 21, 32, 141, 248, 23, 112, 5, 34, 5, 169, 0, 32, 63, 10, 141, 248, 20, 80, 141, 248, 22, 48, 141, 248, 24, 112, 255, 247, 76, 254, 0, 34, 5, 33, 5, 168, 1, 240, 155, 250, 5, 70, 94, 177, 3, 52, 2, 70, 49, 70, 32, 70, 1, 240, 147, 250, 50, 70, 5, 70]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 33, 70, 0, 32, 255, 247, 57, 254, 41, 70, 0, 32, 255, 247, 59, 254, 70, 176, 189, 232, 240, 129, 0, 38, 209, 231, 0, 191, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 212, 23, 5, 0, 6, 20, 5, 0, 102, 19, 5, 0, 228, 45, 0, 32, 233, 26, 5, 0, 37, 20, 5, 0]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 3, 120, 2, 43, 2, 209, 64, 104, 25, 240, 23, 186, 1, 43, 250, 208, 112, 71, 0, 0, 8, 181, 33, 240, 251, 250, 3, 75, 0, 40, 20, 191, 2, 34, 1, 34, 26, 112, 8, 189, 112, 57, 0, 32, 14, 74, 0, 35, 50, 248, 51, 16, 129, 66, 3, 209, 2, 235, 195, 3, 88, 104, 112, 71]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 1, 51, 13, 43, 244, 209, 1, 40, 8, 208, 2, 40, 8, 208, 3, 40, 8, 209, 2, 34, 5, 75, 3, 235, 194, 3, 239, 231, 0, 34, 249, 231, 1, 34, 247, 231, 2, 72, 112, 71, 248, 23, 5, 0, 224, 23, 5, 0, 45, 20, 5, 0, 255, 247, 226, 188, 55, 181, 20, 77, 43, 120, 27, 187]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 19, 76, 163, 120, 165, 43, 19, 75, 27, 104, 12, 191, 90, 34, 165, 34, 91, 4, 162, 112, 15, 213, 16, 75, 27, 104, 4, 43, 11, 221, 15, 75, 15, 73, 211, 248, 4, 53, 1, 146, 14, 74, 0, 146, 5, 32, 79, 244, 132, 114, 12, 240, 51, 254, 163, 120, 43, 114, 1, 36, 44, 112, 255, 247]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 35, 254, 32, 70, 3, 176, 48, 189, 0, 32, 251, 231, 100, 57, 0, 32, 221, 200, 0, 32, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 102, 19, 5, 0, 63, 20, 5, 0, 19, 181, 15, 76, 34, 120, 202, 185, 14, 75, 27, 104, 91, 4, 14, 213, 13, 75, 27, 104, 4, 43, 10, 221]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 12, 75, 13, 74, 211, 248, 4, 53, 12, 73, 0, 146, 5, 32, 79, 244, 140, 114, 12, 240, 3, 254, 3, 35, 35, 112, 255, 247, 245, 253, 1, 32, 2, 176, 16, 189, 0, 32, 251, 231, 100, 57, 0, 32, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 97, 20, 5, 0, 102, 19, 5, 0]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 240, 181, 57, 76, 35, 120, 135, 176, 203, 185, 98, 120, 186, 185, 227, 120, 54, 78, 12, 43, 30, 217, 51, 104, 90, 4, 14, 213, 52, 75, 27, 104, 3, 43, 10, 221, 51, 75, 52, 74, 211, 248, 4, 53, 51, 73, 0, 146, 4, 32, 79, 244, 249, 114, 12, 240, 209, 253, 1, 35, 35, 112, 0, 32]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 1, 240, 192, 249, 16, 177, 0, 32, 1, 240, 12, 250, 255, 247, 188, 253, 7, 176, 240, 189, 1, 35, 42, 72, 99, 112, 79, 244, 0, 65, 20, 240, 49, 254, 51, 104, 39, 77, 19, 244, 128, 79, 22, 208, 32, 75, 27, 104, 3, 43, 18, 221, 226, 120, 31, 75, 5, 235, 194, 1, 53, 248, 50, 32]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 211, 248, 4, 53, 73, 104, 1, 146, 31, 74, 2, 145, 0, 146, 27, 73, 79, 244, 254, 114, 4, 32, 12, 240, 161, 253, 51, 104, 226, 120, 91, 4, 53, 248, 50, 112, 19, 213, 18, 75, 27, 104, 3, 43, 15, 221, 5, 235, 194, 5, 16, 75, 106, 104, 211, 248, 4, 53, 1, 146, 19, 74, 0, 146]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 14, 73, 2, 151, 79, 244, 240, 114, 4, 32, 12, 240, 135, 253, 0, 35, 5, 169, 54, 32, 141, 248, 22, 48, 173, 248, 20, 112, 255, 247, 76, 254, 227, 120, 1, 51, 227, 112, 170, 231, 113, 57, 0, 32, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 132, 20, 5, 0, 102, 19, 5, 0]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 120, 57, 0, 32, 248, 23, 5, 0, 148, 20, 5, 0, 175, 20, 5, 0, 8, 181, 7, 75, 7, 74, 8, 72, 0, 33, 25, 112, 89, 112, 217, 112, 20, 240, 190, 253, 24, 177, 189, 232, 8, 64, 25, 240, 230, 184, 8, 189, 113, 57, 0, 32, 25, 102, 2, 0, 96, 24, 5, 0, 45, 233, 240, 79]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 4, 70, 207, 176, 13, 70, 0, 41, 0, 240, 165, 130, 131, 30, 1, 43, 0, 242, 32, 130, 75, 136, 18, 43, 1, 217, 0, 36, 8, 225, 1, 43, 26, 217, 0, 32, 255, 247, 237, 251, 105, 120, 6, 70, 1, 240, 10, 249, 104, 112, 0, 32, 173, 248, 32, 96, 255, 247, 227, 251, 105, 120, 6, 70]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 1, 240, 0, 249, 189, 248, 32, 48, 104, 112, 67, 234, 6, 32, 107, 136, 173, 248, 32, 0, 2, 59, 107, 128, 106, 136, 114, 177, 13, 241, 34, 1, 0, 32, 255, 247, 155, 252, 107, 136, 152, 66, 1, 70, 213, 209, 106, 120, 13, 241, 34, 0, 1, 240, 245, 248, 104, 112, 0, 32, 255, 247, 193, 251]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 107, 120, 131, 66, 201, 209, 180, 79, 181, 248, 2, 128, 59, 104, 3, 44, 3, 244, 128, 67, 62, 70, 0, 240, 125, 129, 195, 177, 175, 75, 27, 104, 3, 43, 20, 221, 189, 248, 32, 64, 173, 75, 32, 70, 211, 248, 4, 53, 5, 147, 255, 247, 123, 254, 171, 74, 1, 144, 0, 146, 205, 233, 2, 72]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 5, 155, 169, 73, 79, 244, 43, 114, 4, 32, 12, 240, 231, 252, 167, 76, 111, 136, 1, 35, 163, 112, 51, 104, 3, 244, 128, 67, 0, 47, 64, 240, 222, 128, 187, 177, 157, 75, 27, 104, 3, 43, 19, 221, 189, 248, 32, 80, 155, 75, 40, 70, 211, 248, 4, 53, 5, 147, 255, 247, 87, 254, 156, 74]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 0, 146, 205, 233, 1, 5, 5, 155, 151, 73, 64, 242, 81, 34, 4, 32, 12, 240, 196, 252, 189, 248, 32, 0, 6, 169, 30, 240, 139, 248, 0, 40, 89, 209, 51, 104, 157, 248, 26, 128, 189, 248, 24, 80, 88, 4, 193, 70, 35, 213, 223, 248, 40, 162, 218, 248, 0, 48, 3, 43, 29, 221, 223, 248]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 32, 178, 40, 70, 219, 248, 4, 53, 5, 147, 255, 247, 47, 254, 137, 74, 5, 155, 1, 144, 0, 146, 205, 233, 2, 88, 131, 73, 64, 242, 41, 34, 4, 32, 12, 240, 155, 252, 51, 104, 205, 248, 20, 176, 19, 244, 128, 79, 3, 208, 218, 248, 0, 48, 3, 43, 94, 220, 54, 35, 141, 248, 52, 48]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 9, 241, 2, 3, 27, 10, 141, 248, 55, 80, 5, 34, 45, 10, 13, 169, 0, 32, 8, 241, 2, 8, 141, 248, 53, 48, 141, 248, 56, 80, 141, 248, 54, 128, 255, 247, 10, 252, 0, 34, 5, 33, 13, 168, 1, 240, 89, 248, 5, 70, 185, 241, 0, 15, 10, 208, 2, 70, 73, 70, 7, 152, 1, 240]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 80, 248, 7, 153, 5, 70, 74, 70, 0, 32, 255, 247, 246, 251, 41, 70, 0, 32, 255, 247, 248, 251, 0, 37, 148, 248, 0, 128, 184, 241, 0, 15, 32, 209, 255, 177, 227, 120, 100, 74, 1, 59, 50, 248, 51, 32, 189, 248, 32, 48, 154, 66, 22, 209, 97, 72, 20, 240, 16, 253, 51, 104, 132, 248]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 1, 128, 89, 4, 14, 213, 85, 75, 27, 104, 3, 43, 10, 221, 84, 75, 91, 74, 211, 248, 4, 53, 84, 73, 0, 146, 4, 32, 64, 242, 133, 18, 12, 240, 60, 252, 0, 45, 0, 240, 148, 128, 80, 75, 0, 36, 156, 112, 32, 70, 79, 176, 189, 232, 240, 143, 82, 75, 7, 154, 211, 248, 0, 224]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 184, 241, 128, 15, 196, 70, 13, 171, 40, 191, 79, 240, 128, 12, 12, 235, 2, 10, 24, 70, 146, 69, 3, 241, 2, 3, 17, 209, 0, 35, 0, 248, 28, 48, 5, 155, 72, 74, 211, 248, 4, 53, 1, 146, 71, 74, 2, 144, 0, 146, 61, 73, 64, 242, 42, 34, 4, 32, 12, 240, 15, 252, 124, 231]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 18, 248, 1, 27, 79, 234, 17, 27, 1, 240, 15, 1, 30, 249, 11, 176, 3, 248, 2, 188, 30, 249, 1, 16, 3, 248, 1, 28, 218, 231, 27, 179, 223, 248, 184, 144, 217, 248, 0, 48, 3, 43, 29, 221, 189, 248, 32, 128, 43, 77, 64, 70, 213, 248, 4, 53, 5, 147, 255, 247, 119, 253, 52, 74]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 5, 155, 1, 144, 205, 233, 2, 135, 0, 146, 39, 73, 79, 244, 23, 114, 4, 32, 12, 240, 227, 251, 51, 104, 19, 244, 128, 79, 168, 70, 3, 208, 217, 248, 0, 48, 3, 43, 5, 220, 57, 70, 8, 168, 30, 240, 204, 251, 5, 70, 113, 231, 35, 75, 186, 28, 211, 248, 0, 192, 128, 42, 13, 171]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 40, 191, 128, 34, 13, 241, 32, 14, 0, 32, 29, 70, 30, 248, 1, 27, 79, 234, 17, 25, 1, 240, 15, 1, 28, 249, 9, 144, 131, 248, 0, 144, 1, 48, 28, 249, 1, 16, 89, 112, 130, 66, 3, 241, 2, 3, 237, 209, 0, 35, 5, 248, 18, 48, 20, 74, 216, 248, 4, 53, 1, 146, 19, 74]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 0, 146, 9, 73, 2, 149, 64, 242, 93, 34, 4, 32, 12, 240, 166, 251, 202, 231, 165, 112, 1, 36, 107, 231, 224, 45, 0, 32, 220, 45, 0, 32, 0, 16, 1, 64, 208, 20, 5, 0, 102, 19, 5, 0, 113, 57, 0, 32, 6, 21, 5, 0, 47, 21, 5, 0, 248, 23, 5, 0, 120, 57, 0, 32]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 133, 21, 5, 0, 228, 45, 0, 32, 233, 26, 5, 0, 37, 20, 5, 0, 84, 21, 5, 0, 27, 179, 223, 248, 232, 145, 217, 248, 0, 48, 3, 43, 29, 221, 189, 248, 32, 64, 109, 78, 32, 70, 214, 248, 4, 53, 5, 147, 255, 247, 252, 252, 106, 74, 5, 155, 1, 144, 0, 146, 205, 233, 2, 72]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [8, 104, 73, 79, 244, 46, 114, 4, 32, 12, 240, 104, 251, 59, 104, 19, 244, 128, 79, 180, 70, 3, 208, 217, 248, 0, 48, 3, 43, 13, 220, 98, 78, 105, 136, 1, 36, 8, 168, 180, 112, 30, 240, 78, 251, 0, 40, 127, 244, 28, 175, 176, 112, 255, 247, 188, 249, 26, 231, 107, 136, 91, 74, 2, 51]
    09/03/2023 17:29:19 (199518828 ms)  SLIP Protocol SLIP: --> [3]
    09/03/2023 17:29:20 (199519828 ms)  SLIP Protocol TIMEOUT RX USART nessun byte ricevuto
    09/03/2023 17:29:20 (199519828 ms)  SLIP Protocol Sending close stream...
    09/03/2023 17:29:20 (199519843 ms)  SLIP dfu_send_image() result code = 1
    09/03/2023 17:29:20 (199519843 ms)  End Writing C:\work\vdf_40170_ca\Prj\tools\App_Generator\P567_FPNFC_Mesh_App_V_ca_0.0.1_f6e329d_JustNordic\changed_fw.567
    Nordic_after_successful_update_1.txtnordic_after_interrupted_update_2.txtnordic_after_interrupted_update_and_failed_second_attempt_3.txt

  • Hi Stefano, 


    Did you do any modification to the bootloader ? 

    Why you application starts at 0x57000 ? Is there any reason for that? It's not a familiar start address to me. How did you configure the bootloader to jump to this address ? 

    How large is your application ? I would assume the size of the application should be around 0x64000 - 0x57000 = 52 kB ?

    I assume it's dual bank DFU you are doing. 

    Normally the bootloader would receive the new image to the secondary bank (slot 1, the application is in primary bank-slot 0). Only after the image is received properly it will start erasing the original application and swapping the new image to the primary bank. So it's very strange that 0x57000 being erase even before the DFU update process is finished. 

    Which software did you use to get the flash dump out ? I just want to double check if the address is correct.

  • Dear Hung Bui,

    Thank you for your quick answer. The 0x57000 address is not where the application starts (instead it correctly starts at the flash address in the linker script, 0x26000) but where the fw I am sending through the slip protocol is cached before being moved to 0x26000. My understanding is that in the dual bank framework the bootloader starts caching the fw I send through the slip protocol from the first useful address after the "old" application ends, in blocks of 0x1000: indeed my old application starts at 0x26000 and ends at 0x56EE0 and, in the case of successful update (_1 file) I see a copy of the application fw from 0x57000 on. My settings in the sdk_config is not to force dual bank update, but I believe there is enough space to proceed with dual bank (and I assume that in a single bank update an abrupt interruption of the update process would corrupt the application fw).   
    If I interrupt the update process (_2 file) I see 4k (sorry if in my previous message I said 1k, it is 0x1000=4096) set to 0xFF from the address 0x64000 to 0x65000, which should correspond to the 0x1000 being transmitted when I hit the ctrl-c keys. If I then retry the process (_3 file), the initial 0x1000 (i.e. from 0x57000 to 0x58000) is set to 0xff, which means that the update failed when trying to upload the first 4k data.
    I should also mention that the first image present before the first successful update is larger than the one uploaded through the serial protocol, as it contains some additional, extra-fw data we need for our application, which you can see in the _1 dump starting at 0x58000 and finishing at about 0x71000. Even if those data are never reached by the application fw, the packet has been generated in such a way that those bytes are part of the fw itself, i.e. the computed crc is coherent (and indeed the Nordic correctly boots after the application has been loaded). Can you clarify to me how exactly the bootloader sets the initial address where the CACHED fw is stored during the update process before being moved to the application address? In our case I would expect the bootloader to cache the new image at about 0x72000, instead it starts at 0x57000, thus erasing our custom data (which are not relevant to us anymore at that moment).
    The dump was taken with J-flash v. 7.84.

    Thank you.

    Kind regards,

    Stefano

  • Hi Stefano, 

    Thanks for the explanation. 
    Your understanding is correct. The bootloader will allocate the new image into bank 1 starting from the first page right after the current application. 

    If you have a look at update_data_addr_get() you can find how it's calculated. 

    Basically nrf_dfu_bank1_start_addr() = nrf_dfu_bank0_start_addr() + bank_0.image_size 

    nrf_dfu_bank0_start_addr() is either MBR or softdevice size, depends if the softdevice is flashed or not. 

    bank_0.image_size is the image size you provide in your init packet of the previous DFU update. 

    So what I suspect is that the image size may not match with the actual image size you have including the extra data pages. 

    I would suggest to test first with a "normal"  image , for example our example project. And make sure you can continue after  you break the DFU process. After that you can test with your customized image. Please double check which bank_0.image_size you have. 

Related