← index #15887PR #15942
Likely Duplicate · high · value 5.355
QUERY · ISSUE

Microchip SAMD21 XPLAINED Pro does not work with micropython

openby SirTobiasopened 2024-09-20updated 2026-03-16
port-samd

Hi,

I have this Microchip board to run micropython on it. I have build the current master branch with
make BOARD=SAMD21_XPLAINED_PRO

but have the same problem as described in issue 13790.
When I connect the USB to the DEBUG port, the power status LED switches on and I can see the flash drive mounted. When I copy the firmware file (UF2) format, nothing happens until I plug it out and in the USB again with the mounted flash drive and the firmware vanished. When I instead power via TARGET USB, the power status LED also switches on, but nothing happens: Neither a flash drive is coming up after pressing twice the reset button nor a connection to the /dev/ttyACM port is possible.

IN MPLab X IDE I can see the board and tried to flash it with the firmware in hex format via, but the Micropython bootup procedure does not work.

Does anybody have an idea? Does the PA03 jumper has to be altered? It is now shortened to USB_ID.

The revision of the board is A09-2130/04

Thank you very much in advance.

UPDATE: When I connect in Debug mode, the /dev/ttyACM0 port is there, and the yellow status LED switches on when I connect via picocom or screen but nothing shows up in the terminal.

Originally posted by @SirTobias in https://github.com/micropython/micropython/discussions/15886

CANDIDATE · PULL REQUEST

samd/ports/SAMD21_XPLAINED_PRO: Update the deploy instructions and use the external flash for the file system.

mergedby robert-hhopened 2024-10-01updated 2024-11-19
port-samd

Summary

The SAMD21 Xplained Pro board is delivered without a bootloader, making it impossible to run MicroPython. This PR tells, how to install a .uf2 bootloader and provides samples of bootloaders, which can be used for the board. In addition it
adapts and fixes MicroPython to use the on-board 1MByte flash for the file system. Commits in this PR:

  • Update the deploy instructions
  • Proved two bootloaders as Intel Hex files. One of the is a generic SAMD21 bootloader, that should work on any SAMD21 board. The other has the Volume labels and USB identifiers changed to reflect the Xplained Pro board, but is besides that identical to the generic bootloader.
  • Use the 1 MByte flash for the file system.

Testing

  • Building the firmware.
  • Updating the bootloader following the steps of the instructions.
  • Updating the Firmware using all methods to activate the bootloader.
  • Creating the file system at the 1MB flash (done automatically at the first boot)
  • Creating files , storing data and deleting files with a stress test.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied