Using Other Zephyr Boards¶
Warning
Content in this section is provided on a best-effort basis.
This document contains additional information related to using the system on other boards.
FRDM-K64F¶
Building for FRDM-K64F requires some configuration information which depends on your local network:
- An IP address to use for the IoT gateway
- Whether the board should use DHCP, or a static IP address
This information must be written to the file zephyr-fota-samples/dm-lwm2m/boards/frdm_k64f-local.conf
in the Zephyr microPlatform installation directory.
To use DHCP, with gateway IP address A.B.C.D, create the file with the following contents.
CONFIG_NET_DHCPV4=y
CONFIG_NET_APP_PEER_IPV4_ADDR="A.B.C.D"
To use a static IP address X.Y.Z.W for the FRDM-K64F instead, use this.
CONFIG_NET_APP_MY_IPV4_ADDR="X.Y.Z.W"
CONFIG_NET_APP_PEER_IPV4_ADDR="A.B.C.D"
In addition, zephyr-fota-samples/dm-lwm2m/boards/frdm_k64f-local.conf must contain a line which specifies
the IP address of the COAP proxy. In this case, that’s just the IP
address of your gateway device. To use IP address L.M.N.O, add a line
like this after the other networking configuration:
CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_COAP_PROXY_ADDR="L.M.N.O"
Now you can build the binaries. From the Zephyr microPlatform installation directory:
./zmp build -b frdm_k64f zephyr-fota-samples/dm-lwm2m
Flashing this board requires pyOCD. To install this dependency, run:
pip install --user pyOCD
If you don’t have pip installed, see the pip Installation documentation. On Linux platforms, you also need to install the following udev rules as root, then unplug and plug back in any boards you may have connected:
echo 'ATTR{idProduct}=="0204", ATTR{idVendor}=="0d28", MODE="0666", GROUP="plugdev"' > /etc/udev/rules.d/50-cmsis-dap.rules
To flash the binaries, plug the K64F into your system via the USB connector labeled “SDA USB”. Then, from the Zephyr microPlatform installation directory:
./zmp flash -b frdm_k64f zephyr-fota-samples/dm-lwm2m
96Boards Nitrogen¶
Like FRDM-K64F, this board also requires pyOCD to flash.
To build the binaries, run this from the Zephyr microPlatform installation directory:
./zmp build -b 96b_nitrogen zephyr-fota-samples/dm-lwm2m
To flash the board:
./zmp flash -b 96b_nitrogen zephyr-fota-samples/dm-lwm2m