Skip to content

docs/arduino-m0: Migrate README.txt to RST - #20605

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
Swatantra-66:docs/arduino-m0-rst
Oct 12, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:masterfrom
Swatantra-66:docs/arduino-m0-rst

Conversation

@Swatantra-66

@Swatantra-66 Swatantra-66 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Migrates the legacy monospaced README.txt for the Arduino M0 development board (Microchip ATSAMD21G18A MCU) to standard Sphinx rST documentation format in index.rst, removing the .. include:: README.txt :literal: raw inclusion.

Key documentation contents added:

  • Board Overview & Architecture: Clarified Arduino M0 vs. Arduino M0 Pro / Zero (onboard EDBG debugger) vs. third-party clones (Wemos SAMD21 M0, RobotDyn SAMD21 M0). Documented ATSAMD21G18A MCU specifications (32-bit ARM Cortex-M0+ @ 48 MHz, 256 KB Flash, 32 KB SRAM) and internal RC (OSC8M) + DFLL48M clock hierarchy.
  • Operating Voltage Warning: Prominently highlighted that I/O pins operate at 3.3V (not 5V tolerant like AVR Uno/Mega boards).
  • LED Status Table: Documented LED indicator states on pin PA17 under CONFIG_ARCH_LEDS (boot, stack created, panic/halt).
  • Corrected SERCOM5 Pinout: Corrected PB22 as TXD and PB23 as RXD per �oard.h pin mapping, with external 3.3V USB-to-UART TTL wiring instructions.
  • Native USB Port: Documented CDC/ACM virtual serial console support (usbnsh) directly over the native micro-USB connector.
  • Board Configurations: Documented both supported configurations (
    sh and usbnsh) along with build and menuconfig steps.
  • Flashing & Debugging: Detailed OpenOCD programming with CMSIS-DAP / Atmel-ICE, ST-Link (interface/stlink.cfg), Segger J-Link (interface/jlink.cfg), and GDB debugging commands.
  • Bootloader Offset Notice: Clarified that default builds link at x00000000 via scripts/flash.ld, so SWD is the supported method, and explained why flashing via USB bootloaders (e.g., BOSSA at x2000) is not supported without a relocated linker script.

Addresses #11077
Part of #15737

Impact

Documentation only. No impact on existing source code, drivers, or build logic.

Testing

  • Validated rST syntax and HTML rendering with docutils and Sphinx (0 errors, 0 warnings).
  • Verified commit style and formatting with ools/checkpatch.sh -g HEAD (0 errors, 0 warnings).

@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Size: M The size of the change in this PR is medium labels Oct 11, 2026
@xiaoxiang781216

Copy link
Copy Markdown
Contributor

@Swatantra-66 please fix the doc build error

Migrate the legacy monospaced README.txt for the Arduino M0 board
(ATSAMD21G18A MCU) to standard Sphinx rST documentation format in
index.rst and remove the legacy README.txt include stub.

Details included in this guide:
- Hardware specifications and Cortex-M0+ @ 48 MHz architecture
- Board variants: Arduino M0, M0 Pro, Arduino Zero, and compatible clones
  (Wemos SAMD21 M0, RobotDyn SAMD21 M0)
- Operating voltage warnings (3.3V logic)
- LED status indicators table (PA17) for CONFIG_ARCH_LEDS
- Serial console pinout and connection guide (SERCOM5 TX on PB22 / RX on PB23)
- Native USB CDC/ACM NSH console
- Supported configurations (nsh, usbnsh) and build commands
- SWD flashing and debugging via OpenOCD (CMSIS-DAP, ST-Link, J-Link, GDB)
- Clarification on bootloader offset limitations

Addresses apache#11077
Part of apache#15737

Signed-off-by: Swatantra Kumar Gupta <[email protected]>
@Swatantra-66

Copy link
Copy Markdown
Contributor Author

@xiaoxiang781216 Fixed! Removed the unsupported :kconfig:option: role and replaced it with standard inline literals. All CI checks (build-html, Lint) are now passing 100% green.

@xiaoxiang781216
xiaoxiang781216 merged commit 3e7d310 into apache:master Oct 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Documentation Improvements or additions to documentation Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants