xmos / xcore_iot

Other
30 stars 40 forks source link

Getting started on MACOS flash_fs_example_freertos_explorer_board missing build step? #415

Closed ed-xmos closed 2 years ago

ed-xmos commented 2 years ago

System information MACOS

Describe the current behavior make flash_fs_example_freertos_explorer_board fails to find binary: bash: fatfs_mkimage: command not found ..even after successful make example_freertos_explorer_board

Unsurprisingly make run_example_freertos_explorer_board generates an exception without the flash FS in place.

Describe the expected behavior It will flash without error

Standalone code to reproduce the issue $ cmake -B build -DCMAKE_TOOLCHAIN_FILE=tools/xmos_cmake_toolchain/xs3a.cmake $ cd build $ make example_freertos_explorer_board $ make flash_fs_example_freertos_explorer_board

Other info or logs My workaround was to go to: ~/sandboxes/xcore_sdk/modules/rtos/sw_services/fatfs/host:feature/uart_rtos cmake . make

then do: PATH=~/sandboxes/xcore_sdk/modules/rtos/sw_services/fatfs/host:${PATH} before running make flash_fs_example_freertos_explorer_board from build

Not a very friendly workaround.. Probably just a couple of lines of cmake will sort this.

keithm-xmos commented 2 years ago

HI @ed-xmos, I will investigate this Monday. Thanks!

keithm-xmos commented 2 years ago

I have added a note to all the example apps that use the filesystem that the host apps are required. See: https://github.com/xmos/xcore_sdk/blob/develop/doc/quick_start/installation.rst