The sketch compiles fine, but when it attempts to upload, I’m getting the “Upload failed” message preceded by “Received Unknown Message”.
I was able to upload several times to the unit, (Blink and other samples for testing) but now it’s failing. The latest sketch I uploaded constantly outputs a lot of data to the serial port, and I can see it fine on the serial monitor, so I suspect that its output may be colliding with messages during the upload attempts. I thought the loader should be able to handle that type of situation, but it’s looking like it might not.
I’ve got the right port and board selected, or it probably wouldn’t get that far. I’m using the Ambiq Secure bootloader, because the SparkFun Variable never successfully loaded for me with the other examples.
The bootloader currently indicates that it sent and received a response for Hello, but fails after that. I’ve experimented with changing baud rates and boot loaders, but no luck. I’ve also tried resetting the device at several points in the process hoping to catch it before the sketch starts streaming serial data.
I’ve attached the upload dialog. Any thoughts for getting it to upload?
Thanks.
Here’s the upload dialog:
Header Size = 0x80
original app_size 0x23f4 ( 9204 )
load_address 0xc000 ( 49152 )
app_size 0x23f4 ( 9204 )
w0 = 0xcb002474
Security Value 0x10
w2 = 0x10008080
addrWord = 0xc000
versionKeyWord = 0x0
child0/feature = 0xffffffff
child1 = 0xffffffff
crc = 0x97c26384
Writing to file /var/folders/xh/krqnlgxx283bbx1vs43g95fr0000gn/T/arduino_build_692960/artemis_nano_microphone.ino_OTA_blob.bin
testing: /var/folders/xh/krqnlgxx283bbx1vs43g95fr0000gn/T/arduino_build_692960/artemis_nano_microphone.ino_OTA_blob.bin
Header Size = 0x60
app_size 0x2474 ( 9332 )
Writing to file /var/folders/xh/krqnlgxx283bbx1vs43g95fr0000gn/T/arduino_build_692960/artemis_nano_microphone.ino_Wired_OTA_blob.bin
Image from 0x0 to 0x2474 will be loaded at 0x20000
Connecting over serial port /dev/cu.wchusbserial1440…
Sending Hello.
Received response for Hello
Received Unknown Message
msgType = 0x0
Length = 0x0
[‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x6’, ‘0xf0’, ‘0xa5’, ‘0x31’, ‘0x1’, ‘0x0’, ‘0x58’, ‘0x0’, ‘0x3’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0xa0’, ‘0xff’, ‘0x4’, ‘0x0’, ‘0x2’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x7’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x1’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0xff’, ‘0xa3’, ‘0x2d’, ‘0xff’, ‘0xff’, ‘0x5f’, ‘0x5’, ‘0x0’, ‘0x1’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x3’, ‘0x0’, ‘0xf4’, ‘0x49’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xfe’, ‘0x0’, ‘0x0’, ‘0x0’]
Fail
Sending Hello.
Received response for Hello
Received Unknown Message
msgType = 0x0
Length = 0x0
[‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’]
Fail
Sending Hello.
Received response for Hello
Received Unknown Message
msgType = 0x0
Length = 0x0
[‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’]
Fail
Tries = 3
Upload failed