Skip to content

Commit 11c8269

Browse files
authored
docs(zephyr): update Cortex-M55 examples to use --target=cortex-m55+int8 (#17859)
The aot_arm_compiler now requires an explicit --target flag to select the Cortex-M/CMSIS-NN portable kernel path. Update the two Cortex-M55 PTE generation commands in the Zephyr README (Corstone-300 FVP and STM Nucleo N6 sections) to pass --target=cortex-m55+int8, and add a short explanatory note below each command. Follow-up to #17075 which introduced the cortex-m55+int8 target.
1 parent e6f7d5e commit 11c8269

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

zephyr/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ west build -b mps3/corstone300/fvp modules/lib/executorch/examples/arm/zephyr -t
133133
Prepare the Cortex-M55 PTE model
134134
<!-- RUN test_cortex-m55_generate_pte -->
135135
```
136-
python -m modules.lib.executorch.examples.arm.aot_arm_compiler --model_name=modules/lib/executorch/examples/arm/example_modules/add.py --quantize --output=add_m55.pte
136+
python -m modules.lib.executorch.examples.arm.aot_arm_compiler --model_name=modules/lib/executorch/examples/arm/example_modules/add.py --quantize --target=cortex-m55+int8 --output=add_m55.pte
137137
```
138138

139+
`--target=cortex-m55+int8` selects the Cortex-M/CMSIS-NN portable kernel path (no NPU delegation). This produces a `.pte` optimised for Cortex-M55 with INT8 quantisation.
140+
139141
#### Build and run
140142

141143
Run the Cortex-M55 PTE model
@@ -208,9 +210,11 @@ export PATH=$PATH:~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
208210

209211
Prepare the Cortex-M55 PTE model
210212
```
211-
python -m modules.lib.executorch.examples.arm.aot_arm_compiler --model_name=modules/lib/executorch/examples/arm/example_modules/add.py --quantize --output=add_m55.pte
213+
python -m modules.lib.executorch.examples.arm.aot_arm_compiler --model_name=modules/lib/executorch/examples/arm/example_modules/add.py --quantize --target=cortex-m55+int8 --output=add_m55.pte
212214
```
213215

216+
`--target=cortex-m55+int8` selects the Cortex-M/CMSIS-NN portable kernel path (no NPU delegation).
217+
214218
#### Build and run
215219

216220
Run the Cortex-M55 PTE model

0 commit comments

Comments
 (0)