Skip to content

Commit 5b8d763

Browse files
committed
boards: microchip: add SAM E54 Xplained Pro board support
Add initial support for the Microchip SAM E54 Xplained Pro board (ATSAME54-XPRO). Product page: https://www.microchip.com/en-us/development-tool/atsame54-xpro Signed-off-by: Arunprasath P <[email protected]>
1 parent 4b182e3 commit 5b8d763

File tree

11 files changed

+311
-0
lines changed

11 files changed

+311
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_SAM_E54_XPRO
5+
select SOC_ATSAME54P20A
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
board:
5+
name: sam_e54_xpro
6+
full_name: SAM E54 Xplained Pro
7+
vendor: microchip
8+
socs:
9+
- name: atsame54p20a
Binary file not shown.
Binary file not shown.
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
.. zephyr:board:: sam_e54_xpro
2+
3+
SAM E54 Xplained Pro Evaluation Kit
4+
###################################
5+
6+
Overview
7+
********
8+
9+
The SAM E54 Xplained Pro evaluation kit is ideal for evaluation and
10+
prototyping with the SAM E54 Cortex®-M4F processor-based
11+
microcontrollers. The kit includes Microchip’s Embedded Debugger (EDBG),
12+
which provides a full debug interface without the need for additional
13+
hardware.
14+
15+
.. image:: img/atsam_e54_xpro.webp
16+
:align: center
17+
:alt: SAM_E54_XPRO
18+
19+
Hardware
20+
********
21+
22+
- ATSAME54P20A ARM Cortex-M4F processor at 120 MHz
23+
- 32.768 kHz crystal oscillator
24+
- 12 MHz crystal oscillator
25+
- 1024 KiB flash memory and 256 KiB of RAM
26+
- One yellow user LED
27+
- One mechanical user push button
28+
- One reset button
29+
- On-board USB based EDBG unit with serial console
30+
- One QTouch® PTC button
31+
- 32 MiB QSPI Flash
32+
- ATECC508 CryptoAuthentication™ device
33+
- AT24MAC402 serial EEPROM with EUI-48™ MAC address
34+
- Ethernet
35+
36+
- RJ45 connector with built-in magnetics
37+
- KSZ8091RNA PHY
38+
- 10Base-T/100Base-TX IEE 802.3 compliant Ethernet transceiver
39+
40+
- USB interface, host, and device
41+
- SD/SDIO card connector
42+
43+
Supported Features
44+
==================
45+
46+
.. zephyr:board-supported-hw::
47+
48+
The default configuration can be found in the Kconfig
49+
:zephyr_file:`boards/microchip/sam/sam_e54_xpro/sam_e54_xpro_defconfig`.
50+
51+
Pin Mapping
52+
===========
53+
54+
The SAM E54 Xplained Pro evaluation kit has 4 GPIO controllers. These
55+
controllers are responsible for pin muxing, input/output, pull-up, etc.
56+
57+
For more details please refer to `SAM D5x/E5x Family Datasheet`_ and the `SAM E54
58+
Xplained Pro Schematic`_.
59+
60+
.. image:: img/atsam_e54_xpro_pinout.webp
61+
:align: center
62+
:alt: SAME54-XPRO-pinout
63+
64+
Default Zephyr Peripheral Mapping:
65+
----------------------------------
66+
- SERCOM2 USART TX : PB24
67+
- SERCOM2 USART RX : PB25
68+
- GPIO/PWM LED0 : PC18
69+
- GPIO SW0 : PB31
70+
- GMAC RMII REFCK : PA14
71+
- GMAC RMII TXEN : PA17
72+
- GMAC RMII TXD0 : PA18
73+
- GMAC RMII TXD1 : PA19
74+
- GMAC RMII CRSDV : PC20
75+
- GMAC RMII RXD0 : PA13
76+
- GMAC RMII RXD1 : PA12
77+
- GMAC RMII RXER : PA15
78+
- GMAC MDIO MDC : PC11
79+
- GMAC MDIO MDIO : PC12
80+
- SERCOM4 SPI SCK : PB26
81+
- SERCOM4 SPI MOSI : PB27
82+
- SERCOM4 SPI MISO : PB29
83+
- SERCOM7 I2C SDA : PD08
84+
- SERCOM7 I2C SCL : PD09
85+
- USB DP : PA25
86+
- USB DM : PA24
87+
88+
System Clock
89+
============
90+
91+
The SAME54 MCU is configured to use the 32.768 kHz external oscillator
92+
with the on-chip PLL generating the 48 MHz system clock.
93+
94+
Serial Port
95+
===========
96+
97+
The SAME54 MCU has 8 SERCOM based USARTs with one configured as USARTs in
98+
this BSP. SERCOM2 is the default Zephyr console.
99+
100+
- SERCOM2 115200 8n1 connected to the onboard Microchip Embedded Debugger (EDBG)
101+
102+
Programming and Debugging
103+
*************************
104+
105+
The SAM E54 Xplained Pro comes with a Microchip Embedded Debugger (EDBG). This
106+
provides a debug interface to the SAME54 chip and is supported by
107+
OpenOCD.
108+
109+
Flashing
110+
========
111+
112+
#. Build the Zephyr kernel and the ``hello_world`` sample application:
113+
114+
.. zephyr-app-commands::
115+
:zephyr-app: samples/hello_world
116+
:board: sam_e54_xpro
117+
:goals: build
118+
:compact:
119+
120+
#. Connect the SAM E54 Xplained Pro to your host computer using the USB debug
121+
port.
122+
123+
#. Run your favorite terminal program to listen for output. Under Linux the
124+
terminal should be :code:`/dev/ttyACM0`. For example:
125+
126+
.. code-block:: console
127+
128+
$ minicom -D /dev/ttyACM0 -o
129+
130+
The -o option tells minicom not to send the modem initialization
131+
string. Connection should be configured as follows:
132+
133+
- Speed: 115200
134+
- Data: 8 bits
135+
- Parity: None
136+
- Stop bits: 1
137+
138+
#. To flash an image:
139+
140+
.. zephyr-app-commands::
141+
:zephyr-app: samples/hello_world
142+
:board: sam_e54_xpro
143+
:goals: flash
144+
:compact:
145+
146+
You should see "Hello World! same_54_xpro" in your terminal.
147+
148+
References
149+
**********
150+
151+
.. target-notes::
152+
153+
.. _Microchip website:
154+
http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=ATSAME54-XPRO
155+
156+
.. _SAM D5x/E5x Family Datasheet:
157+
http://ww1.microchip.com/downloads/en/DeviceDoc/60001507C.pdf
158+
159+
.. _SAM E54 Xplained Pro Schematic:
160+
http://ww1.microchip.com/downloads/en/DeviceDoc/SAME54-Xplained-Pro_Design-Documentation.zip
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <dt-bindings/sam/sam_d5x_e5x/same54/atsame54p20a-pinctrl.h>
8+
9+
&pinctrl {
10+
sercom2_uart_default: sercom2_uart_default {
11+
group1 {
12+
pinmux = <PB25D_SERCOM2_PAD0>,
13+
<PB24D_SERCOM2_PAD1>;
14+
};
15+
};
16+
};
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
#include <microchip/sam/sam_d5x_e5x/same54/atsame54p20a.dtsi>
9+
#include "sam_e54_xpro-pinctrl.dtsi"
10+
#include <zephyr/dt-bindings/input/input-event-codes.h>
11+
12+
/ {
13+
model = "SAM E54 Xplained Pro";
14+
compatible = "same54,xpro", "microchip,atsame54p20a", "microchip,same54";
15+
16+
chosen {
17+
zephyr,console = &sercom2;
18+
zephyr,shell-uart = &sercom2;
19+
zephyr,sram = &sram0;
20+
zephyr,flash = &flash0;
21+
};
22+
};
23+
24+
&flash0 {
25+
partitions {
26+
compatible = "fixed-partitions";
27+
#address-cells = <1>;
28+
#size-cells = <1>;
29+
30+
/*
31+
* The final 16 KiB is reserved for the application.
32+
* Storage partition will be used by FCB/LittleFS/NVS
33+
* if enabled.
34+
*/
35+
storage_partition: partition@fc000 {
36+
label = "storage";
37+
reg = <0x000fc000 0x00004000>;
38+
};
39+
};
40+
};
41+
42+
&cpu0 {
43+
clock-frequency = <48000000>;
44+
};
45+
46+
&sercom2 {
47+
status = "okay";
48+
compatible = "microchip,sercom-g1-uart";
49+
50+
current-speed = <115200>;
51+
data-bits = <8>;
52+
parity = "none";
53+
stop-bits = "1";
54+
55+
rxpo = <1>;
56+
txpo = <0>;
57+
58+
#address-cells = <1>;
59+
#size-cells = <0>;
60+
61+
pinctrl-0 = <&sercom2_uart_default>;
62+
pinctrl-names = "default";
63+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
identifier: sam_e54_xpro
5+
name: SAM E54 Xplained Pro
6+
type: mcu
7+
arch: arm
8+
toolchain:
9+
- zephyr
10+
- gnuarmemb
11+
- xtools
12+
flash: 1024
13+
ram: 256
14+
supported:
15+
- pinctrl
16+
- shell
17+
- uart
18+
vendor: microchip
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_BUILD_OUTPUT_HEX=y
5+
6+
CONFIG_ARM_MPU=y
7+
CONFIG_HW_STACK_PROTECTION=y
8+
9+
CONFIG_CONSOLE=y
10+
CONFIG_SERIAL=y
11+
CONFIG_UART_CONSOLE=y

0 commit comments

Comments
 (0)