Skip to content

Commit 128db68

Browse files
committed
psoc6/README: Updated make targets.
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
1 parent 1041a04 commit 128db68

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

ports/psoc6/README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,29 @@ Retrieve submodules:
3131

3232
make submodules
3333

34-
Then initialize the ModusToolbox™ environment:
35-
36-
make mtb_init BOARD=<board-name>
37-
3834
Build the firmware:
3935

40-
make
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.
4144
42-
To build and program the device:
45+
And flash it to the board:
4346

44-
make program
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.
4552
4653
Find more information about the available makefile targets:
4754

4855
make help
4956

50-
5157
# Run micropython
5258

5359
Use any serial terminal (putty, minicom..) and establish a session with your device with 115200 bauds and 8-N-1 configuration.

0 commit comments

Comments
 (0)