1.. zephyr:board:: sam4l_wm400_cape 2 3Overview 4******** 5 6The SAM4L WM-400 Cape is a full featured design to enable IEEE 802.15.4 low 7power nodes. It is a Beaglebone Black cape concept with an Atmel AT86RF233 8radio transceiver. User can develop Touch interface and have access to many 9sensors and conectivity buses. 10 11Hardware 12******** 13 14- ATSAM4LC4B ARM Cortex-M4 Processor 15- 12 MHz crystal oscillator 16- 32.768 kHz crystal oscillator 17- 1 RS-232 interface 18- 1 RS-485 full duplex interface 19- Micro-AB USB OTG host/device 20- 1 user touch button and One user pushbutton 21- 4 user LEDs 22- 1 AT86RF233 IEEE 802.15.4 transceiver 23- 1 MPL115A2 I²C Barometric Pressure/Temperature Sensor 24- 1 VCNL4010 Proximity/Light Sensor 25- 1 CC2D33S Advanced Humidity Temperature Sensor 26- 1 NCP18WF104J03RB NTC Temperature Sensor 27- 1 TEMT6000X01 Ambient Light Sensor 28 29Supported Features 30================== 31 32.. zephyr:board-supported-hw:: 33 34Connections and IOs 35=================== 36 37For detailed information see `SAM4L WM-400 Cape`_ Information. 38 39System Clock 40============ 41 42The SAM4L MCU is configured to use the 12 MHz internal oscillator on the board 43with the on-chip PLL to generate an 48 MHz system clock. 44 45Serial Port 46=========== 47 48The ATSAM4LC4B MCU has 4 USARTs. One of the USARTs (USART3) is shared between 49RS-232 and RS-485 interfaces. The default console terminal is available at 50RS-232 onboard port or via USB device. 51 52Programming and Debugging 53************************* 54 55The SAM4L WM-400 Cape board has a 10-pin header to connect to a Segger JLink. 56Using the JLink is possible to program and debug the SAM4LC4B chip. The board 57came with a SAM-BA bootloader that only can be used to flash the software. 58 59Flashing 60======== 61 62#. For JLink instructions, see :ref:`jlink-debug-host-tools`. 63 64#. Run your favorite terminal program to listen for output. Under Linux the 65 terminal should be :code:`/dev/ttyACM0`. For example: 66 67 .. code-block:: console 68 69 $ minicom -D /dev/ttyACM0 -o 70 71 The -o option tells minicom not to send the modem initialization 72 string. Connection should be configured as follows: 73 74 - Speed: 115200 75 - Data: 8 bits 76 - Parity: None 77 - Stop bits: 1 78 79#. Connect the SAM4L WM-400 Cape board to your host computer using the 80 USB debug port. Then build and flash the :zephyr:code-sample:`hello_world` 81 application. 82 83 .. zephyr-app-commands:: 84 :zephyr-app: samples/hello_world 85 :board: sam4l_wm400_cape 86 :goals: build flash 87 88 You should see ``Hello World! sam4l_wm400_cape`` in your terminal. 89 90#. For SAM-BA bootloader instructions, see :ref:`atmel_sam_ba_bootloader`. 91 92#. Connect the SAM4L WM-400 Cape board to your host computer using the 93 USB debug port pressing the S1 button. Then build and flash the 94 :zephyr:code-sample:`hello_world` application. After programming the board 95 the application will start automatically. 96 97 .. zephyr-app-commands:: 98 :zephyr-app: samples/hello_world 99 :board: sam4l_wm400_cape 100 :goals: build flash 101 :flash-args: -r bossac 102 103 104Debugging 105========= 106 107You can debug an application in the usual way. Here is an example for the 108:zephyr:code-sample:`hello_world` application. 109 110.. zephyr-app-commands:: 111 :zephyr-app: samples/hello_world 112 :board: sam4l_wm400_cape 113 :maybe-skip-config: 114 :goals: debug 115 116References 117********** 118 119.. target-notes:: 120 121.. _SAM4L WM-400 Cape: 122 https://gfbudke.wordpress.com/2014/04/30/modulo-wireless-ieee-802-15-4zigbee-wm-400-e-wm-400l-bbbs 123