Skip to content

Commit eeb2481

Browse files
NikhitaR-IFXactions-user
authored andcommitted
examples/usercimaimodule/imagimob: Update doc and mior fix in Makefile.
Signed-off-by: NikhitaR-IFX <nikhita.rajasekhar@infineon.com>
1 parent 7c2ecf4 commit eeb2481

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

examples/usercimaimodule/imagimob/README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,24 @@ Currently the existing sample model files are generated for [Human Activity Reco
1515

1616
## Installation
1717

18-
Please check for the pre-requisites mentioned [here](https://github.com/Infineon/micropython/tree/ports-psoc6-main/ports/psoc6#pre-requisites).
18+
### Dependencies
19+
20+
- WSL (Windows Subsystem Layer)
21+
- USBIPD
22+
- ModusToolbox (version 3.0)
23+
- MicroPython project with psoc6 port enabled
24+
25+
The development environment for the project is [WSL](https://learn.microsoft.com/en-us/windows/wsl/install). Please follow the steps in link to get WSL ready. Additionally [usbip](https://learn.microsoft.com/en-us/windows/wsl/connect-usb) installation should be done to allow accessing psoc device within WSL.
26+
27+
Please ensure to follow the pre-requisites mentioned [here](https://github.com/Infineon/micropython/tree/ports-psoc6-main/ports/psoc6#pre-requisites) and get the required installation.
28+
29+
By now, all the required installations should be working.
1930

2031
## Usage
2132

2233
Follow the steps below to generate micropython bindings for your imagimob generated model.
2334

24-
1. The imagimob micropytthon integration is available in imai-mp-integration, so checkout to that branch after cloning this repository.
35+
1. Clone the repository and switch to ports-psoc6-main branch.
2536

2637
git clone https://github.com/Infineon/micropython.git
2738

@@ -33,6 +44,12 @@ Follow the steps below to generate micropython bindings for your imagimob genera
3344

3445
make mtb_init BOARD=<board-name>
3546

47+
where board-name is your target device. Currently following boards are supported:
48+
49+
- CY8CKIT-062S2-AI
50+
- CY8CPROTO-062-4343W
51+
- CY8CPROTO-063-BLE
52+
3653
3. Retrieve submodules:
3754

3855
make submodules

examples/usercimaimodule/imagimob/imai_mp_iface.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ static mp_obj_t dequeue(mp_obj_t data_out_obj) {
3434
if (result == 0) {
3535
return MP_OBJ_NEW_SMALL_INT(result);
3636
} else if (result == -1) {
37-
mp_printf(&mp_plat_print, "No data is currently available\n");
3837
return MP_OBJ_NEW_SMALL_INT(result);
3938
} else if (result == -2) {
4039
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("Internal memory allocation error"), result);

ports/psoc6/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ifeq ($(MICROPY_PSOC6_LWIP),1)
6464
endif
6565

6666
LD = arm-none-eabi-gcc
67-
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -fsingle-precision-constant -Wdouble-promotion -Wfloat-conversion -UMICROPY_USE_INTERNAL_PRINTF
67+
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -fsingle-precision-constant -Wdouble-promotion -Wfloat-conversion -UMICROPY_USE_INTERNAL_PRINTF -Wno-error=float-conversion
6868

6969
# std=c11 instead of std=c99 : provides "static_assert" (not available in c99)
7070
# -D_XOPEN_SOURCE=700 : makes sure the setenv/unsetenv headers are included

ports/psoc6/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This port is intended to run on Infineon PSoC™ 6 microcontrollers.
66

77
The following port is using Infineon ModusToolbox™ to resolve the specific PSoC™ board resources and building flags. Before working with micropython:
88

9-
1. Install [ModusToolbox](https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software/). Minimum version required is 3.0.
9+
1. Install [ModusToolbox](https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox?_ga=2.77665684.1651703860.1718094141-10754106.1710937391). Minimum version required is 3.0.
1010

1111
2. Run the following script from MicroPython repository root to add the required tools to the system PATH, and install the udev rules:
1212

0 commit comments

Comments
 (0)