You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This port is intended to run on Infineon PSoC™ 6 microcontrollers.
4
+
5
+
## Pre-requisites
6
+
7
+
The following port is using Infineon ModusToolbox™ to resolve the specific PSoC™ board resources and building flags. Before working with micropython:
8
+
9
+
1. Install [ModusToolbox](https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox). **The required version is 3.0**. The version is currently fixed as some future versions are incompatible.
10
+
11
+
2. Run the following script from MicroPython repository root to add the required tools to the system PATH, and install the udev rules:
If the ModusToolbox™ has not been installed in the default path (`~/ModusToolbox`), add the path as positional argument of the `toolchain_setup` function:
> If you are using MacOS, you need to install GNU make. The default make on Mac OS is BSD make, which is not compatible with the Makefile used in this port. Remember to add GNU make to the system path PATH.
23
+
24
+
## Building and running Linux version
25
+
26
+
As we are working on the ports-psoc6-main branch (for now), first checkout that branch after cloning this repo:
27
+
28
+
git checkout --track origin/ports-psoc6-main
29
+
30
+
Retrieve submodules:
31
+
32
+
make submodules
33
+
34
+
Build the firmware:
35
+
36
+
make BOARD=CY8CKIT_062S2_AI
37
+
38
+
> [!NOTE]
39
+
> The first time we call `make` the board needs to be specified with
40
+
> `BOARD=<board>`. This is required as the ModusToolbox libraries need to be
41
+
> initialized for the selected board.
42
+
> This board will then be set as the default board for subsequent builds, you
43
+
> can just call `make` without the `BOARD=` argument.
44
+
45
+
And flash it to the board:
46
+
47
+
make deploy
48
+
49
+
> [!NOTE]
50
+
> This will also build the firmware if it has not been built yet.
51
+
> Use `deploy` target to avoid rebuilding the firmware.
52
+
53
+
Find more information about the available makefile targets:
54
+
55
+
make help
56
+
57
+
# Run micropython
58
+
59
+
Use any serial terminal (putty, minicom..) and establish a session with your device with 115200 bauds and 8-N-1 configuration.
0 commit comments