Commit ff7fd44a authored by Justin Watson's avatar Justin Watson Committed by Kumar Gala
Browse files

boards: sam4s_xplained: Changed the sample to use USB on debug port



Changed the default UART used for the console. You used to have to
use wires on the J4 header. Now you can use the UART provided by the
Segger USB composite device.

Signed-off-by: default avatarJustin Watson <jwatson5@gmail.com>
parent a1e5dc1b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ Serial Port
The ATSAM4S16C MCU has 2 UARTs and 2 USARTs. One of the UARTs (UART0) is
connected to the Segger J-Link OB chip (the AT91SAM3U4 is programmed to be
Segger J-Link OB). Segger J-Link OB brings the UART out as a virtual COM port.
The section flashing uses the UART from the Segger USB debug connection.

Programming and Debugging
*************************
+6 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
	};

	chosen {
		zephyr,console = &uart1;
		zephyr,console = &uart0;
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
	};
@@ -27,6 +27,11 @@
	status = "ok";
};

&uart0 {
	current-speed = <115200>;
	status = "ok";
};

&uart1 {
	current-speed = <115200>;
	status = "ok";
+1 −1
Original line number Diff line number Diff line
@@ -7,6 +7,6 @@ CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_SAM=y
CONFIG_UART_SAM_PORT_1=y
CONFIG_UART_SAM_PORT_0=y
CONFIG_BOARD_SAM4S_XPLAINED=y
CONFIG_SOC_ATMEL_SAM4S_EXT_MAINCK=y