Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/ports/psoc6/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
48 lines (24 sloc)
1.43 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PSoC6 port | |
This port is intended to run on Infineon PSoC™ 6 microcontrollers. | |
## Pre-requisites | |
The following port is using Infineon ModusToolbox™ to resolve the specific PSoC™ board resources and building flags. Before working with micropython: | |
1. Install [ModusToolbox](https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software/). Minimum version required is 3.0. | |
2. Run the following script from MicroPython repository root to add the required tools to the system PATH, and install the udev rules: | |
source tools/psoc6/dev-setup.sh && toolchain_setup | |
If the ModusToolbox™ has not been installed in the default path (`~/ModusToolbox`), add the path as positional argument of the `toolchain_setup` function: | |
source tools/psoc6/dev-setup.sh && toolchain_setup [mtb_path] | |
## Building and running Linux version | |
As we are working on the ports-psoc6-main branch (for now), first checkout that branch after cloning this repo: | |
git checkout --track origin/ports-psoc6-main | |
Then initialize the ModusToolbox™ environment: | |
make mtb_init BOARD=<board-name> | |
Retrieve submodules: | |
make submodules | |
Build the firmware: | |
make | |
To build and program the device: | |
make program | |
Find more information about the available makefile targets: | |
make help | |
# Run micropython | |
Use any serial terminal (putty, minicom..) and establish a session with your device with 115200 bauds and 8-N-1 configuration. |