tree: ffe039cf653fdc8f746ced18a3e21367cd13db55 [path history] [tgz]
  1. armgcc/
  2. external/
  3. board.c
  4. board.h
  5. clock_config.c
  6. clock_config.h
  7. empty_rsc_table.c
  8. fsl_iomuxc.h
  9. hello_world_tflite.cc
  10. hello_world_tflite.h
  11. LICENSE
  12. main.c
  13. model.cc
  14. model.h
  15. pin_mux.c
  16. pin_mux.h
  17. README.md
boards/evkmimx8mq/demo_apps/hello_world_tflite/README.md

Toolchain

Get a toolchain from ARM's developer site

Extract this toolchain somewhere convenient.

Building this demo

cd armgcc
ARMGCC_DIR=/path/to/gcc-arm-none-eabi ./build_release.sh

Output files will be in the release folder. There will be an ELF file (if you want to debug), and a bin file to upload to your device.

Running the demo

Deploy the binary to your device

On your host machine:

mdt push armgcc/release/hello_world_tflite.bin

On the device:

sudo cp hello_world_tflite.bin /boot
cd /boot
sudo ln -sf hello_world_tflite.bin m4_fw.bin

On the device, in u-boot:

setenv m4enabled 1
saveenv
boot

Output from the M4 core will be visible on the second UART that enumerated when you connected your serial port via USB.