boards/peregrine/sam4l_wm400_cape/doc/index.rst
.. zephyr:board:: sam4l_wm400_cape
Overview
The SAM4L WM-400 Cape is a full featured design to enable IEEE 802.15.4 low power nodes. It is a Beaglebone Black cape concept with an Atmel AT86RF233 radio transceiver. User can develop Touch interface and have access to many sensors and connectivity buses.
Hardware
.. zephyr:board-supported-hw::
For detailed information see SAM4L WM-400 Cape_ Information.
The SAM4L MCU is configured to use the 12 MHz internal oscillator on the board with the on-chip PLL to generate an 48 MHz system clock.
The ATSAM4LC4B MCU has 4 USARTs. One of the USARTs (USART3) is shared between RS-232 and RS-485 interfaces. The default console terminal is available at RS-232 onboard port or via USB device.
Programming and Debugging
.. zephyr:board-supported-runners::
The SAM4L WM-400 Cape board has a 10-pin header to connect to a Segger JLink. Using the JLink is possible to program and debug the SAM4LC4B chip. The board came with a SAM-BA bootloader that only can be used to flash the software.
#. For JLink instructions, see :ref:jlink-debug-host-tools.
#. Run your favorite terminal program to listen for output. Under Linux the
terminal should be :code:/dev/ttyACM0. For example:
.. code-block:: console
$ minicom -D /dev/ttyACM0 -o
The -o option tells minicom not to send the modem initialization string. Connection should be configured as follows:
#. Connect the SAM4L WM-400 Cape board to your host computer using the
USB debug port. Then build and flash the :zephyr:code-sample:hello_world
application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: sam4l_wm400_cape :goals: build flash
You should see Hello World! sam4l_wm400_cape in your terminal.
#. For SAM-BA bootloader instructions, see :ref:atmel_sam_ba_bootloader.
#. Connect the SAM4L WM-400 Cape board to your host computer using the
USB debug port pressing the S1 button. Then build and flash the
:zephyr:code-sample:hello_world application. After programming the board
the application will start automatically.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: sam4l_wm400_cape :goals: build flash :flash-args: -r bossac
You can debug an application in the usual way. Here is an example for the
:zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: sam4l_wm400_cape :maybe-skip-config: :goals: debug
References
.. target-notes::
.. _SAM4L WM-400 Cape: https://gfbudke.wordpress.com/2014/04/30/modulo-wireless-ieee-802-15-4zigbee-wm-400-e-wm-400l-bbbs