This port is intended to run on Infineon PSoC™ 6 microcontrollers.
The following port is using Infineon ModusToolbox™ to resolve the specific PSoC™ board resources and building flags. Before working with micropython:
-
Install ModusToolbox. Minimum version required is 3.0.
-
In order to use the same gcc for compiling both mpy sources and ModusToolbox™ add also the latest to the system PATH.
export PATH=/home/{user}/ModusToolbox/tools_{version}/gcc/bin:$PATH
As we are working on the ports/psoc6 branch (for now), first checkout that branch after cloning this repo:
git checkout --track origin/ports/psoc6
Then initialize the ModusToolbox™ environment:
make mpy_mtb_init
Build the firmware:
make
To build and program the device:
make mpy_program
If you are working from WSL and you cannot access the USB resources of your machine. Copy the .hex file from ports/psoc6/boards/{board}/mtb-app/APP_{board}/Debug/{hexname}.hex to some location in your windows machine where you can flash the device with Cypress Programmer.
Use any serial terminal (putty, minicom..) and establish a session with your device with 115200 bauds and 8-N-1 configuration.