Skip to content

Infineon/ot-ifx-release

 
 

Repository files navigation

Build


Table of Contents


OpenThread on Infineon CYW30739 Examples

This repo contains example platform drivers for the Infineon CYW30739.

The example platform drivers are intended to present the minimal code necessary to support OpenThread.

Toolchain and Dependencies

Follow the Installation Guide to download and install the ModusToolbox Software.

ModusToolbox™ tools package

ModusToolbox™ tools package should be automatically installed in the default location if you followed the Installation Guide. Please refer to the Installation Guide for the default location for different operating systems.

If you need to install the ModusToolbox™ tools package in a custom location, you must set the environment variable CY_TOOLS_PATHS to the /path/to/ModusToolbox/tools_x.x to specify the location of tools.

export CY_TOOLS_PATHS="/path/to/ModusToolbox/tools_x.x"

Note for WSL (Windows Subsystem for Linux)

If you are using WSL, please ensure you have installed the ModusToolbox™ Software for Linux. Running Windows tools directly from the WSL command line would cause path resolution failure in the build process.

Other Dependencies

In a Bash terminal, follow these instructions to install the GNU toolchain and other dependencies.

$ cd <path-to-ot-ifx>
$ git submodule update --init
$ ./script/bootstrap

Building

In a Bash terminal, follow these instructions to build the CYW30739 examples.

$ cd <path-to-ot-ifx>
$ ./script/build platform=XXX board=YYY or ./script/build all

Flash Binaries

Enter Recovery Mode

Put the CYW30739 in to the recovery mode before running the flash script.

  1. Press and hold the RECOVERY button on the board.
  2. Press and hold the RESET button on the board.
  3. Release the RESET button.
  4. After one second, release the RECOVERY button.

Run Flash Script

If the build completed successfully, the elf files may be found in <path-to-cyw30739>/build/<board>/bin/.

In a Bash terminal, follow these instructions to flash the binary.

$ cd <path-to-cyw30739>
$ ./script/flash [-h] [-v] -p <serial port> -b <board> -d <device_type: ftd, mtd>

After flash done, the log would be as below:

wiced_platform_bt_management_callback: event(21).
wiced_platform_application_thread_handler
system_post_init
Free RAM sizes: 256168

Interact

  1. Connect the CYW30739 board UART pins to an external UART board pins.
    • CYW30739 D10 ↔️ UART TX
    • CYW30739 D11 ↔️ UART RX
  2. Open terminal to the external UART board (serial port settings: 3,000,000 8-N-1).
  3. Type help for list of commands.
  4. See OpenThread CLI Reference README.md to learn more.

Contributing

We would love for you to contribute to OpenThread and help make it even better than it is today! See our Contributing Guidelines for more information.

Contributors are required to abide by our Code of Conduct and Coding Conventions and Style Guide.

License

OpenThread is released under the BSD 3-Clause license. See the LICENSE file for more information.

Please only use the OpenThread name and marks when accurately referencing this software distribution. Do not use the marks in a way that suggests you are endorsed by or otherwise affiliated with Nest, Google, or The Thread Group.

Need help?

OpenThread support is available on GitHub:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 83.9%
  • Shell 10.2%
  • CMake 4.7%
  • C++ 1.2%