Similar to your post above, I was able to get the Edge 1 working with the micro_speech example, however I’m struggling with doing the same on the Edge 2 on Ubuntu 18.04.3:
I run the commands from the sparkfun repository (rather than the Tensorflow owned one) in the order you recommended:
Header Size = 0x80
original app_size 0x1926c ( 103020 )
load_address 0xc000 ( 49152 )
app_size 0x1926c ( 103020 )
w0 = 0xcb0192ec
Security Value 0x10
w2 = 0x10008080
addrWord = 0xc000
versionKeyWord = 0x0
child0/feature = 0xffffffff
child1 = 0xffffffff
crc = 0xe258736a
Writing to file main_nonsecure_ota_OTA_blob.bin
testing: main_nonsecure_ota_OTA_blob.bin
Header Size = 0x60
app_size 0x192ec ( 103148 )
Writing to file main_nonsecure_ota_Wired_OTA_blob.bin
Image from 0x0 to 0x192ec will be loaded at 0x20000
Connecting over serial port /dev/ttyUSB0…
Sending Hello.
Received response for Hello
Received Unknown Message
msgType = 0xa0a
Length = 0xa0a
[‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0x48’, ‘0x65’, ‘0x6c’, ‘0x6c’, ‘0x6f’, ‘0x20’, ‘0x57’, ‘0x6f’, ‘0x72’, ‘0x6c’, ‘0x64’, ‘0x21’, ‘0xa’, ‘0xa’, ‘0x56’, ‘0x65’, ‘0x6e’, ‘0x64’, ‘0x6f’, ‘0x72’, ‘0x20’, ‘0x4e’, ‘0x61’, ‘0x6d’, ‘0x65’, ‘0x3a’, ‘0x20’, ‘0x41’, ‘0x4d’, ‘0x42’, ‘0x51’, ‘0xa’, ‘0x44’, ‘0x65’, ‘0x76’, ‘0x69’, ‘0x63’, ‘0x65’, ‘0x20’, ‘0x74’, ‘0x79’, ‘0x70’, ‘0x65’, ‘0x3a’, ‘0x20’, ‘0x41’, ‘0x70’, ‘0x6f’, ‘0x6c’, ‘0x6c’, ‘0x6f’, ‘0x33’, ‘0xa’, ‘0x51’, ‘0x75’, ‘0x61’, ‘0x6c’, ‘0x69’, ‘0x66’, ‘0x69’, ‘0x65’, ‘0x64’, ‘0x3a’, ‘0x20’, ‘0x4e’, ‘0x6f’, ‘0xa’, ‘0x44’, ‘0x65’, ‘0x76’]
Fail
Sending Hello.
Received response for Hello
Received Unknown Message
msgType = 0xa0a
Length = 0xa0a
[‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0x48’, ‘0x65’, ‘0x6c’, ‘0x6c’, ‘0x6f’, ‘0x20’, ‘0x57’, ‘0x6f’, ‘0x72’, ‘0x6c’, ‘0x64’, ‘0x21’, ‘0xa’, ‘0xa’, ‘0x56’, ‘0x65’, ‘0x6e’, ‘0x64’, ‘0x6f’, ‘0x72’, ‘0x20’, ‘0x4e’, ‘0x61’, ‘0x6d’, ‘0x65’, ‘0x3a’, ‘0x20’, ‘0x41’, ‘0x4d’, ‘0x42’, ‘0x51’, ‘0xa’, ‘0x44’, ‘0x65’, ‘0x76’, ‘0x69’, ‘0x63’, ‘0x65’, ‘0x20’, ‘0x74’, ‘0x79’, ‘0x70’, ‘0x65’, ‘0x3a’, ‘0x20’, ‘0x41’, ‘0x70’, ‘0x6f’, ‘0x6c’, ‘0x6c’, ‘0x6f’, ‘0x33’, ‘0xa’, ‘0x51’, ‘0x75’, ‘0x61’, ‘0x6c’, ‘0x69’, ‘0x66’, ‘0x69’, ‘0x65’, ‘0x64’, ‘0x3a’, ‘0x20’, ‘0x4e’, ‘0x6f’, ‘0xa’, ‘0x44’, ‘0x65’, ‘0x76’]
Fail
Sending Hello.
Received response for Hello
Received Unknown Message
msgType = 0xa0a
Length = 0xa0a
[‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0xa’, ‘0x48’, ‘0x65’, ‘0x6c’, ‘0x6c’, ‘0x6f’, ‘0x20’, ‘0x57’, ‘0x6f’, ‘0x72’, ‘0x6c’, ‘0x64’, ‘0x21’, ‘0xa’, ‘0xa’, ‘0x56’, ‘0x65’, ‘0x6e’, ‘0x64’, ‘0x6f’, ‘0x72’, ‘0x20’, ‘0x4e’, ‘0x61’, ‘0x6d’, ‘0x65’, ‘0x3a’, ‘0x20’, ‘0x41’, ‘0x4d’, ‘0x42’, ‘0x51’, ‘0xa’, ‘0x44’, ‘0x65’, ‘0x76’, ‘0x69’, ‘0x63’, ‘0x65’, ‘0x20’, ‘0x74’, ‘0x79’, ‘0x70’, ‘0x65’, ‘0x3a’, ‘0x20’, ‘0x41’, ‘0x70’, ‘0x6f’, ‘0x6c’, ‘0x6c’, ‘0x6f’, ‘0x33’, ‘0xa’, ‘0x51’, ‘0x75’, ‘0x61’, ‘0x6c’, ‘0x69’, ‘0x66’, ‘0x69’, ‘0x65’, ‘0x64’, ‘0x3a’, ‘0x20’, ‘0x4e’, ‘0x6f’, ‘0xa’, ‘0x44’, ‘0x65’, ‘0x76’]
Fail
Tries = 3
Upload failed
I’ve attempted to do the same by building each main_nonsecure_ota.bin and main_nonsecure_wire.bin and then attempting to flash with uart_wired_update.py, but the result was basically the same (though less verbose). I also increased the number of loadTries and connection_timeout, in hopes that one of those would suffice.
Were there any other areas of code that you changed between your initial issue on the 13th and the resolution on the 16?