|
| 1 | +.. _sam_e70_xplained: |
| 2 | + |
| 3 | +SAM E70 Xplained |
| 4 | +################ |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The SAM E70 Xplained evaluation kit is a development platform to evaluate the |
| 10 | +Atmel SAM E70 series microcontrollers. |
| 11 | + |
| 12 | +Hardware |
| 13 | +******** |
| 14 | + |
| 15 | +- ATSAME70Q21 ARM Cortex-M7 Processor |
| 16 | +- 12 MHz crystal oscillator |
| 17 | +- 32.768 kHz crystal oscillator (not populated) |
| 18 | +- AT24MAC402 EEPROM |
| 19 | +- IS42S16100E 16 Mb SDRAM |
| 20 | +- SD card connector |
| 21 | +- Ethernet port |
| 22 | +- Micro-AB USB device |
| 23 | +- Micro-AB USB debug interface supporting CMSIS-DAP, Virtual COM Port and Data |
| 24 | + Gateway Interface (DGI) |
| 25 | +- JTAG interface connector |
| 26 | +- One reset and one user pushbutton |
| 27 | +- One green user LED |
| 28 | + |
| 29 | +Supported Features |
| 30 | +================== |
| 31 | + |
| 32 | +The sam_e70_xplained board configuration supports the following hardware |
| 33 | +features: |
| 34 | + |
| 35 | ++-----------+------------+-------------------------------------+ |
| 36 | +| Interface | Controller | Driver/Component | |
| 37 | ++===========+============+=====================================+ |
| 38 | +| NVIC | on-chip | nested vector interrupt controller | |
| 39 | ++-----------+------------+-------------------------------------+ |
| 40 | +| SYSTICK | on-chip | systick | |
| 41 | ++-----------+------------+-------------------------------------+ |
| 42 | +| USART | on-chip | serial port | |
| 43 | ++-----------+------------+-------------------------------------+ |
| 44 | +| ETHERNET | on-chip | ethernet | |
| 45 | ++-----------+------------+-------------------------------------+ |
| 46 | + |
| 47 | +Other hardware features are not currently supported by Zephyr. |
| 48 | + |
| 49 | +The default configuration can be found in the Kconfig |
| 50 | +:file:`boards/arm/sam_e70_xplained/sam_e70_xplained_defconfig`. |
| 51 | + |
| 52 | +Connections and IOs |
| 53 | +=================== |
| 54 | + |
| 55 | +The `SAME70-XPLD User Guide`_ has detailed information about board connections. |
| 56 | + |
| 57 | +System Clock |
| 58 | +============ |
| 59 | + |
| 60 | +The SAM E70 MCU is configured to use the 12 MHz external oscillator on the board |
| 61 | +with the on-chip PLL to generate a 300 MHz system clock. |
| 62 | + |
| 63 | +Serial Port |
| 64 | +=========== |
| 65 | + |
| 66 | +The ATSAME70Q21 MCU has five UARTs and three USARTs. One of the USARTs is |
| 67 | +configured for the console and is available as a Virtual COM Port via EDBG USB |
| 68 | +chip. |
| 69 | + |
| 70 | +Programming and Debugging |
| 71 | +************************* |
| 72 | + |
| 73 | +Flashing |
| 74 | +======== |
| 75 | + |
| 76 | +Flashing the Zephyr project onto SAM E70 MCU requires the `OpenOCD tool`_. |
| 77 | +Support for Atmel SAM E microcontroller series was added in OpenOCD release |
| 78 | +0.10.0. The current OpenOCD version available in the Zephyr SDK is 0.9 and |
| 79 | +unfortunately it does not support Atmel SAM E microcontrollers. Since few, if |
| 80 | +any major Linux distributions currently offer OpenOCD version 0.10.0 as a |
| 81 | +package you will have to compile and install it yourself. Make sure to enable |
| 82 | +CMSIS-DAP support as this is the debugging interface used by the on board EDBG |
| 83 | +chip. |
| 84 | + |
| 85 | +By default SAM E70 chip will boot SAM-BA bootloader located in the ROM, not the |
| 86 | +flashed image. This can be changed with SAM Boot Assistant (`SAM-BA`_) In-system |
| 87 | +Programmer from Atmel by reprogramming GPNVM1 (General-purpose NVM bit 1). |
| 88 | +This operation needs to be performed only once. If you do not need to debug |
| 89 | +your firmware you can also use SAM-BA instead of OpenOCD to flash your project. |
| 90 | + |
| 91 | +#. Build the Zephyr kernel and the application: |
| 92 | + |
| 93 | + .. code-block:: console |
| 94 | +
|
| 95 | + $ cd $ZEPHYR_BASE/samples/hello_world/ |
| 96 | + $ make BOARD=sam_e70_xplained |
| 97 | +
|
| 98 | +#. Connect the SAM E70 Xplained board to your host computer using the USB debug |
| 99 | + port. |
| 100 | + |
| 101 | +#. Run your favorite terminal program to listen for output. Under Linux the |
| 102 | + terminal should be :code:`/dev/ttyACM0`. For example: |
| 103 | + |
| 104 | + .. code-block:: console |
| 105 | +
|
| 106 | + $ minicom -D /dev/ttyACM0 -o |
| 107 | +
|
| 108 | + The -o option tells minicom not to send the modem initialization |
| 109 | + string. Connection should be configured as follows: |
| 110 | + |
| 111 | + - Speed: 115200 |
| 112 | + - Data: 8 bits |
| 113 | + - Parity: None |
| 114 | + - Stop bits: 1 |
| 115 | + |
| 116 | +#. To flash the image, assuming the OpenOCD tool is already installed, enter: |
| 117 | + |
| 118 | + .. code-block:: console |
| 119 | +
|
| 120 | + $ openocd -f board/atmel_same70_xplained.cfg -c "program outdir/sam_e70_xplained/zephyr.elf verify reset exit" |
| 121 | +
|
| 122 | + The command will also verify that the image was programmed correctly, reset |
| 123 | + the board and run the Zephyr application. |
| 124 | + |
| 125 | + You should see "Hello World!" in your terminal. |
| 126 | + |
| 127 | +Debugging |
| 128 | +========= |
| 129 | + |
| 130 | +#. Connect the SAM E70 Xplained board to your host computer using the USB debug |
| 131 | + port. |
| 132 | + |
| 133 | +#. Start GDB server on your host computer |
| 134 | + |
| 135 | + .. code-block:: console |
| 136 | +
|
| 137 | + $ openocd -f board/atmel_same70_xplained.cfg& |
| 138 | +
|
| 139 | +#. You can now use GDB remote debugging to connect to the target board. By |
| 140 | + default GDB server will listen on port 3333. |
| 141 | + |
| 142 | +References |
| 143 | +********** |
| 144 | + |
| 145 | +SAM E70 Product Page: |
| 146 | + http://www.atmel.com/products/microcontrollers/arm/sam-e.aspx |
| 147 | + |
| 148 | +.. _SAME70-XPLD User Guide: |
| 149 | + http://www.atmel.com/Images/Atmel-44050-Cortex-M7-Microcontroller-SAM-E70-XPLD-Xplained_User-guide.pdf |
| 150 | + |
| 151 | +.. _OpenOCD tool: |
| 152 | + http://openocd.org/ |
| 153 | + |
| 154 | +.. _SAM-BA: |
| 155 | + http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx |
0 commit comments