Skip to content

Seeeduino XIAO - upload fails at about 50% of the time #193

@mightycoco

Description

@mightycoco

Uploading a cpp project to Seeeduino XIAO failes at about 50% of the time. The bossac executable stops after "Uploading...":

Configuring upload protocol...
AVAILABLE: atmel-ice, blackmagic, jlink, sam-ba
CURRENT: upload_protocol = sam-ba
Looking for upload port...
Auto-detected: COM11
Forcing reset using 1200bps open/close on port COM11
Waiting for the new upload port...
Uploading .pio\build\seeed_xiao\firmware.bin

a working upload looks like this

Configuring upload protocol...
AVAILABLE: atmel-ice, blackmagic, jlink, sam-ba
CURRENT: upload_protocol = sam-ba
Looking for upload port...
Auto-detected: COM11
Forcing reset using 1200bps open/close on port COM11
Waiting for the new upload port...
Uploading .pio\build\seeed_xiao\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.819 seconds

Write 76248 bytes to flash (1192 pages)

[=                             ] 5% (64/1192 pages)
[===                           ] 10% (128/1192 pages)
[====                          ] 16% (192/1192 pages)
[======                        ] 21% (256/1192 pages)
[========                      ] 26% (320/1192 pages)
[=========                     ] 32% (384/1192 pages)
[===========                   ] 37% (448/1192 pages)
[============                  ] 42% (512/1192 pages)
[==============                ] 48% (576/1192 pages)
[================              ] 53% (640/1192 pages)
[=================             ] 59% (704/1192 pages)
[===================           ] 64% (768/1192 pages)
[====================          ] 69% (832/1192 pages)
[======================        ] 75% (896/1192 pages)
[========================      ] 80% (960/1192 pages)
[=========================     ] 85% (1024/1192 pages)
[===========================   ] 91% (1088/1192 pages)
[============================  ] 96% (1152/1192 pages)
[==============================] 100% (1192/1192 pages)
done in 0.570 seconds

Verify 76248 bytes of flash with checksum.
Verify successful
done in 0.094 seconds
CPU reset.

The upload always works if

  • The device was put into programming mode manually (cumbersom as a pin has to be pulled to ground in a sequence)
  • The device was put into programming mode when manually calling "mode com10: BAUD=1200" from the command line

Prior uploading the device is put to programming mode in pioupload.py using TouchSerialPort which works only about 50% of the time.

I never had issues with uploading on my old PC but after having to upgrade to a new workstation, the situation is as described.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions