1 Prerequisites
The build prerequisite for Linux is a host PC with Linux operating system. The hardware prerequisites are the following:
- Linux
- SAMA5D4 Xplained Ultra
- ATWILC1000 SD Pro card
- ATWILC3000 Shield board
- USB to Serial adapter (for DEBUG port)
- Common
- Micro-USB cable (Micro-A/Micro-B)
Depending on the WILC board used, the
chip_en
pin can either
be tied high, as in the case of SD card boards, or connected to the host as in case of
the ATWILC3000 shield board. For the latter case, the GPIO connected to ATWILC3000
shield board will be low by default, or configured as an input GPIO, preventing the
kernel from loading the ATWILC driver as the ATWILC SDIO controller cannot be detected.
To change the chip_en
, refer the following steps:- Command line: Use the command
line to assert the
chip_en
every time the host is power cycled.$ echo "94" > /sys/class/gpio/export $ echo "out" > /sys/class/gpio/pioC30/device/gpio/pioC30/direction $ echo "1" > /sys/class/gpio/pioC30/device/gpio/pioC30/value
Note: "94" is the GPIO NUM, and pioC0 is the pin number of the host GPIO connected to WILC3000chip_en
pin. - Adding Pullup resistor: Mount a
pullup resistor to the
chip_en
pin. For ATWILC3000 shield board, the resistor R312 can be mounted with 120k Ohm resistor in the location as shown in the figure.