Common to most of the boards

Serial terminal configuration - common

Exceptions:

  • sama5d2 revision A, only to access the ROMCode through serial interface and see the RomBOOT message appearing, configure your serial line to 57600.
    Change it back to 115200 for normal operation.
    All components and demo binaries are now configured to work at 115200 8-N-1.

The usual serial communication parameters are 115200 8-N-1 :

Baud rate 115200
Data 8 bits
Parity None
Stop 1 bit
Flow control None

Access the console - sama5d4ek

Evaluation Kit

SAMA5D4-EK SAMA5D4-EK with 7" LCD display

Access the console on DBGU serial port

The DBGU serial console can be accessed from two connectors. One is from the RS-232 connector (marked as DBGU J24), another is from micro-A USB connector that gives access to the on-board serial-USB converter (marked as J22 OB-JLink).

The JP19 and JP20 jumpers are used to select which port is used to access DBGU serial console.

Using RS-232 connector (DBGU J24)

  • Open JP21 to enable DBGU
  • Choose (1-2) for JP19 and JP20 jumper settings
  • Connect a DB9 serial cable to the J24 connector
  • Now open your favorite terminal emulator with appropriate settings

Using the micro-A USB connector (J22 OB-JLink)

You can also access the serial console through the on-board serial-USB converter. In fact, the Cortex-M3 chip underneath the Evaluation Kit acts as a serial-to-USB converter and is loaded with a firmware that is able to speak USB-CDC.

  • For Microsoft Windows users: Install the J-Link CDC USB driver. No need to install a driver on any regular Linux distribution.
  • Open JP21 to enable DBGU
  • Open JP10 to enable CDC for OB-JLINK
  • Choose (2-3) for JP19 and JP20 jumper settings
  • Connect the USB cable to the board (J22 OB-JLink)
    • For Microsoft Windows users: identify the USB connection that is established
      JLink CDC UART Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.

JLink CDC UART Port

    • For Linux users: identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyACMx number will be used to configure the terminal emulator.

  • Now open your favorite terminal emulator with appropriate settings

Access the console - sama5d3xek

Evaluation Kit

SAMA5D3x-EK

Access the console on DBGU serial port

You can access the serial console through the on-board serial-USB converter. In fact, the Cortex-M3 chip underneath the Evaluation Kit acts as a serial-to-USB converter and is loaded with a firmware that is able to speak USB-CDC.

  • For Microsoft Windows users: Install the J-Link CDC USB driver. No need to install a driver on any regular Linux distribution.
  • Connect the USB cable to the board (J14 – JTAG and USB Serial DBGU)
    • For Microsoft Windows users: identify the USB connection that is established
      JLink CDC UART Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.

SAMA5D3x-EK JLINK CDC UART

    • For Linux users: identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyACMx number will be used to configure the terminal emulator.

  • Now open your favorite terminal emulator with appropriate settings

Access the console - at91sam9x5ek

Evaluation Kit

AT91SAM9x5-EK

Access the console on DBGU serial port

The DBGU serial console can be accessed from the RS-232 connector (marked as DBGU J11).

Using RS-232 connector (DBGU J11)

  • Connect a DB9 serial cable to the J11 connector
  • Now open your favorite terminal emulator with appropriate settings

    • For Linux users: identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyUSBx or /dev/ttyACMx number will be used to configure the terminal emulator.
      [605576.562740] usb 1-1.1.2: new full-speed USB device number 17 using ehci-pci
      [605576.660920] usb 1-1.1.2: New USB device found, idVendor=0403, idProduct=6001
      [605576.660933] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [605576.660939] usb 1-1.1.2: Product: TTL232R-3V3
      [605576.660944] usb 1-1.1.2: Manufacturer: FTDI
      [605576.660958] usb 1-1.1.2: SerialNumber: FTGNVZ04
      [605576.663092] ftdi_sio 1-1.1.2:1.0: FTDI USB Serial Device converter detected
      [605576.663120] usb 1-1.1.2: Detected FT232RL
      [605576.663122] usb 1-1.1.2: Number of endpoints 2
      [605576.663124] usb 1-1.1.2: Endpoint 1 MaxPacketSize 64
      [605576.663126] usb 1-1.1.2: Endpoint 2 MaxPacketSize 64
      [605576.663128] usb 1-1.1.2: Setting MaxPacketSize 64
      [605576.663483] usb 1-1.1.2: FTDI USB Serial Device converter now attached to ttyUSB0
      
      A /dev/ttyUSB0 node has been created.

  • Now open your favorite terminal emulator with appropriate settings

Access the console - sama5d4_xplained

Evaluation Kit

SAMA5D4 Xplained

Access the console on DBGU serial port

The DBGU serial console can be accessed from two connectors. One is from the DBGU port with the help of a TTL-to-USB serial cable (marked as DEBUG J1), another is from micro-A USB connector that gives access to the on-board serial-to-USB converter (marked as J20 EDBG-USB).

Using DBGU on TTL-to-USB connector (DEBUG J1)

  • For Microsoft Windows users: Install the driver of your USB TTL serial cable. FTDI-based ones are the most popular, have a look to this page to get the driver: http://www.ftdichip.com/Drivers/VCP.htm
  • Be sure to connect a 3.3V compatible cable and identify its GND pin. Place it properly according to the silkscreen and connect the cable to the board (J1)
    • For Microsoft Windows users: Identify the USB connection that is established, USB Serial Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.

ftdi serial line

    • For Linux users: Identify the serial USB connection by monitoring the last lines of dmesg command. The /dev/ttyUSBx number will be used to configure the terminal emulator.

[605576.562740] usb 1-1.1.2: new full-speed USB device number 17 using ehci-pci
[605576.660920] usb 1-1.1.2: New USB device found, idVendor=0403, idProduct=6001
[605576.660933] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[605576.660939] usb 1-1.1.2: Product: TTL232R-3V3
[605576.660944] usb 1-1.1.2: Manufacturer: FTDI
[605576.660958] usb 1-1.1.2: SerialNumber: FTGNVZ04
[605576.663092] ftdi_sio 1-1.1.2:1.0: FTDI USB Serial Device converter detected
[605576.663120] usb 1-1.1.2: Detected FT232RL
[605576.663122] usb 1-1.1.2: Number of endpoints 2
[605576.663124] usb 1-1.1.2: Endpoint 1 MaxPacketSize 64
[605576.663126] usb 1-1.1.2: Endpoint 2 MaxPacketSize 64
[605576.663128] usb 1-1.1.2: Setting MaxPacketSize 64
[605576.663483] usb 1-1.1.2: FTDI USB Serial Device converter now attached to ttyUSB0

A /dev/ttyUSB0 node has been created.

  • Now open your favorite terminal emulator with appropriate settings

Using the micro-A USB connector (J20 EDBG-USB)

You can also access the serial console through the on-board serial-to-USB converter. In fact, the Atmel EDBG (Embedded Debugger) chip on the Evaluation Kit acts as a serial-to-USB converter and is loaded with a firmware that is able to talk USB-CDC protocol.

  • For Microsoft Windows users: Install USB drivers for Atmel and Segger tools. No need to install a driver on any regular Linux distribution.
  • Open JP1 to enable EDBG
  • Connect the USB cable to the board (J20 EDBG-USB)
    • For Microsoft Windows users: identify the USB connection that is established
      EDBG Virtual COM Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.

EDBG CDC UART Port

    • For Linux users: identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyACMx number will be used to configure the terminal emulator.

[172677.700868] usb 2-1.4.4: new full-speed USB device number 31 using ehci-pci
[172677.792677] usb 2-1.4.4: not running at top speed; connect to a high speed hub
[172677.793418] usb 2-1.4.4: New USB device found, idVendor=03eb, idProduct=6124
[172677.793424] usb 2-1.4.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[172677.793897] cdc_acm 2-1.4.4:1.0: This device cannot do calls on its own. It is not a modem.
[172677.793924] cdc_acm 2-1.4.4:1.0: ttyACM0: USB ACM device
   
idVendor=03eb, idProduct=6124: from this message you can see it's Microchip board USB connection.

  • Now open your favorite terminal emulator with appropriate settings

Access the console - sama5d3_xplained

Evaluation Kit

SAMA5D3 Xplained

Access the console

You can access the serial console through two ways:

  • the DBGU port with the help of a USB TTL serial cable,
  • the USB CDC device once Linux has started.

DBGU port

  • For Microsoft Windows users: Install the driver of your USB TTL serial cable. FTDI-based ones are the most popular, have a look to this page to get the driver: http://www.ftdichip.com/Drivers/VCP.htm
  • Connect the cable to the board (J23)
  • For Microsoft Windows users: Identify the USB connection that is established, USB Serial Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.

SAMA5D3 Xplained ftdi

  • For Linux users: Identify the serial USB connection by monitoring the last lines of dmesg command. The /dev/ttyUSBx number will be used to configure the terminal emulator.

[605576.562740] usb 1-1.1.2: new full-speed USB device number 17 using ehci-pci
[605576.660920] usb 1-1.1.2: New USB device found, idVendor=0403, idProduct=6001
[605576.660933] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[605576.660939] usb 1-1.1.2: Product: TTL232R-3V3
[605576.660944] usb 1-1.1.2: Manufacturer: FTDI
[605576.660958] usb 1-1.1.2: SerialNumber: FTGNVZ04
[605576.663092] ftdi_sio 1-1.1.2:1.0: FTDI USB Serial Device converter detected
[605576.663120] usb 1-1.1.2: Detected FT232RL
[605576.663122] usb 1-1.1.2: Number of endpoints 2
[605576.663124] usb 1-1.1.2: Endpoint 1 MaxPacketSize 64
[605576.663126] usb 1-1.1.2: Endpoint 2 MaxPacketSize 64
[605576.663128] usb 1-1.1.2: Setting MaxPacketSize 64
[605576.663483] usb 1-1.1.2: FTDI USB Serial Device converter now attached to ttyUSB0

A /dev/ttyUSB0 node has been created.

  • Now open your favorite terminal emulator with appropriate settings

USB device port

Once Linux started, the serial USB gadget module is probed. Then you can get a serial console through the USB device interface.

  • For Windows users: You may have to install a driver for the USB-CDC device that corresponds to the SAMA5D3 Xplained board. The official .inf file needed to configure the USB-CDC driver: https://www.kernel.org/doc/Documentation/usb/linux-cdc-acm.inf
  • For Windows users: Identify the USB connection that is established, Gadget Serial should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.

SAMA5D3 Xplained usb console

  • For Linux users: Identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyACMx number will be used to configure the terminal emulator.

[609470.350006] usb 2-1.2: new high-speed USB device number 17 using ehci-pci
[609470.443102] usb 2-1.2: New USB device found, idVendor=0525, idProduct=a4a7
[609470.443107] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[609470.443111] usb 2-1.2: Product: Gadget Serial v2.4
[609470.443113] usb 2-1.2: Manufacturer: Linux 3.10.0-yocto-standard with atmel_usba_udc
[609470.450258] cdc_acm 2-1.2:2.0: This device cannot do calls on its own. It is not a modem.
[609470.450314] cdc_acm 2-1.2:2.0: ttyACM0: USB ACM device

  • Now open your favorite terminal emulator with appropriate settings

Access the console - sama5d2_xplained

Evaluation Kit

SAMA5D2 Xplained

Access the console on DEBUG serial port

The serial console can be accessed from two connectors. One is from the DEBUG port with the help of a TTL-to-USB serial cable (marked as DEBUG J1), another is from micro-A USB connector that gives access to the on-board serial-to-USB converter (marked as J14 EDBG-USB).

Using DEBUG on TTL-to-USB connector (DEBUG J1)

  • For Microsoft Windows users: Install the driver of your USB TTL serial cable. FTDI-based ones are the most popular, have a look to this page to get the driver: http://www.ftdichip.com/Drivers/VCP.htm
  • Open JP2 to enable this DEBUG interface
  • Be sure to connect a 3.3V compatible cable and identify its GND pin. Place it properly according to the silkscreen and connect the cable to the board (J1)
    • For Microsoft Windows users: Identify the USB connection that is established, USB Serial Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.
      ftdi serial line
       
    • For Linux users: Identify the serial USB connection by monitoring the last lines of dmesg command. The /dev/ttyUSBx number will be used to configure the terminal emulator.
      [605576.562740] usb 1-1.1.2: new full-speed USB device number 17 using ehci-pci
      [605576.660920] usb 1-1.1.2: New USB device found, idVendor=0403, idProduct=6001
      [605576.660933] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [605576.660939] usb 1-1.1.2: Product: TTL232R-3V3
      [605576.660944] usb 1-1.1.2: Manufacturer: FTDI
      [605576.660958] usb 1-1.1.2: SerialNumber: FTGNVZ04
      [605576.663092] ftdi_sio 1-1.1.2:1.0: FTDI USB Serial Device converter detected
      [605576.663120] usb 1-1.1.2: Detected FT232RL
      [605576.663122] usb 1-1.1.2: Number of endpoints 2
      [605576.663124] usb 1-1.1.2: Endpoint 1 MaxPacketSize 64
      [605576.663126] usb 1-1.1.2: Endpoint 2 MaxPacketSize 64
      [605576.663128] usb 1-1.1.2: Setting MaxPacketSize 64
      [605576.663483] usb 1-1.1.2: FTDI USB Serial Device converter now attached to ttyUSB0
      
      A /dev/ttyUSB0 node has been created.
  • Now open your favorite terminal emulator with appropriate settings

Using the micro-A USB connector (J14 EDBG-USB)

You can also access the serial console through the on-board serial-to-USB converter. In fact, the Atmel EDBG (Embedded Debugger) chip on the Evaluation Kit acts as a serial-to-USB converter and is loaded with a firmware that is able to talk USB-CDC protocol.

  • For Microsoft Windows users: Install USB drivers for Atmel and Segger tools. No need to install a driver on any regular Linux distribution.
  • Open JP1 to enable EDBG
  • Close JP2 to disable de DEBUG port J1 (needed to avoid conflict on the UART TX line)
  • Connect the USB cable to the board (J14 EDBG-USB)
    • For Microsoft Windows users: identify the USB connection that is established
      EDBG Virtual COM Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.
      EDBG CDC UART Port
       
    • For Linux users: identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyACMx number will be used to configure the terminal emulator:
      usb 1-1.1.1: new high-speed USB device number 20 using ehci-pci
      usb 1-1.1.1: New USB device found, idVendor=03eb, idProduct=2111
      usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      usb 1-1.1.1: Product: EDBG CMSIS-DAP
      usb 1-1.1.1: Manufacturer: Atmel Corp.
      usb 1-1.1.1: SerialNumber: ATML0000001989463039
      hid-generic 0003:03EB:2111.0007: hiddev0,hidraw3: USB HID v1.11 Device [Atmel Corp. EDBG CMSIS-DAP] on usb-0000:00:1a.0-1.1.1/input0
      cdc_acm 1-1.1.1:1.1: ttyACM0: USB ACM device
      
  • Now open your favorite terminal emulator with appropriate settings

Access the console - sama5d27_som1_ek

Evaluation Kit

SAMA5D27 SOM1 EK

Access the console on JLINK micro-A USB connector (J10)

The serial console can be accessed from the micro-A USB connector that gives access to the on-board serial-to-USB converter (marked as J10 JLINK). In fact, the ATSAM3U chip on the Evaluation Kit acts as a serial-to-USB converter and is loaded with a firmware that is able to talk USB-CDC protocol.

  • For Microsoft Windows users: Install the J-Link CDC USB driver. No need to install a driver on any regular Linux distribution.
  • Connect the USB cable to the board (J10 JLINK)
    • For Microsoft Windows users: identify the USB connection that is established
      JLINK CDC UART Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.
      JLINK CDC UART Port
       
    • For Linux users: identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyACMx number will be used to configure the terminal emulator:
      usb 1-1.2.2.4: new high-speed USB device number 33 using ehci-pci
      usb 1-1.2.2.4: config 1 interface 1 altsetting 0 bulk endpoint 0x83 has invalid maxpacket 64
      usb 1-1.2.2.4: config 1 interface 1 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64
      usb 1-1.2.2.4: New USB device found, idVendor=1366, idProduct=0105
      usb 1-1.2.2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      usb 1-1.2.2.4: Product: J-Link
      usb 1-1.2.2.4: Manufacturer: SEGGER
      usb 1-1.2.2.4: SerialNumber: 000483029109
      cdc_acm 1-1.2.2.4:1.0: ttyACM0: USB ACM device
      
  • Now open your favorite terminal emulator with appropriate settings

Access the console - sama5d2_ptc_ek

Evaluation Kit

SAMA5D2 PTC EK

Access the console on JLINK micro-A USB connector (J9)

The serial console can be accessed from the micro-A USB connector that gives access to the on-board serial-to-USB converter (marked as J9 JLINK). In fact, the ATSAM3U chip on the Evaluation Kit acts as a serial-to-USB converter and is loaded with a firmware that is able to talk USB-CDC protocol.

  • For Microsoft Windows users: Install the J-Link CDC USB driver. No need to install a driver on any regular Linux distribution.
  • Connect the USB cable to the board (J9 JLINK)
    • For Microsoft Windows users: identify the USB connection that is established
      JLINK CDC UART Port should appear in Device Manager. The COMxx number will be used to configure the terminal emulator.
      JLINK CDC UART Port
       
    • For Linux users: identify the USB connection by monitoring the last lines of dmesg command. The /dev/ttyACMx number will be used to configure the terminal emulator:
      usb 1-1.2.2.4: new high-speed USB device number 33 using ehci-pci
      usb 1-1.2.2.4: config 1 interface 1 altsetting 0 bulk endpoint 0x83 has invalid maxpacket 64
      usb 1-1.2.2.4: config 1 interface 1 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64
      usb 1-1.2.2.4: New USB device found, idVendor=1366, idProduct=0105
      usb 1-1.2.2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      usb 1-1.2.2.4: Product: J-Link
      usb 1-1.2.2.4: Manufacturer: SEGGER
      usb 1-1.2.2.4: SerialNumber: 000483029109
      cdc_acm 1-1.2.2.4:1.0: ttyACM0: USB ACM device
      
  • Now open your favorite terminal emulator with appropriate settings

Topic attachments
I Attachment Action Size Date Who Comment
PNGpng 9x5_board_presentation.png manage 414.6 K 2016-09-05 - 16:45 CristianBirsan  
PNGpng a5d27_som1_ek_board_presentation.png manage 372.3 K 2017-10-06 - 13:09 NicolasFerre  
PNGpng a5d2_ptc_ek_board_presentation.png manage 322.0 K 2018-04-03 - 14:20 NicolasFerre  
PNGpng a5d2_xplained_board_presentation.png manage 262.8 K 2017-02-01 - 14:14 NicolasFerre Update JP1 arrow
PNGpng a5d3x_board_presentation.png manage 165.9 K 2015-05-19 - 03:42 UnknownUser  
PNGpng a5d4_xplained_board_presentation.png manage 262.4 K 2015-05-19 - 03:43 UnknownUser  
PNGpng a5d4ek_board_presentation.png manage 254.3 K 2015-05-19 - 03:43 UnknownUser  
PNGPNG devman_jlink_win10.PNG manage 31.9 K 2017-10-06 - 15:46 NicolasFerre  
PNGpng sama5d3_xplained.png manage 473.5 K 2015-05-19 - 03:44 UnknownUser  
PNGpng sama5d3_xplained_ftdi.png manage 32.0 K 2015-05-19 - 03:44 UnknownUser  
PNGpng sama5d3_xplained_usb_console.png manage 29.2 K 2015-05-19 - 03:45 UnknownUser  
PNGpng sama5d3xek_jlink_CDC_UART.png manage 20.3 K 2015-05-19 - 03:45 UnknownUser  
PNGpng sama5d4_xplained_edbg_win.png manage 75.7 K 2015-05-19 - 03:45 UnknownUser  
r15 - 03 Apr 2018 - 14:20:03 - NicolasFerre
 
Linux & Open Source related information for AT91 Smart ARM Microcontrollers

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. This site is powered by the TWiki collaboration platform

ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.

Ideas, requests, contributions ? Connect to LinksToCommunities page.

Syndicate this siteRSS ATOM