Closed ConnorRigby closed 6 months ago
You didn't though, because the documentation for zephyr clearly states to use west init
on https://docs.zephyrproject.org/latest/develop/getting_started/index.html#get-zephyr-and-install-python-dependencies so if you don't have the fatfs module then you did not follow these instructions
the fatfs module is listed in both the root of zephyr/modules
and in my workspace's modules
folder
the fatfs module is listed in both the root of
zephyr/modules
and in my workspace'smodules
folder
If you've added then it would be, it is not in the default allow list for example application https://github.com/zephyrproject-rtos/example-application/blob/main/west.yml example application is exactly as the name implies, it demonstrates how to make a workspace-based zephyr project with out of tree boards and drivers, it is not meant nor should it be used to run samples inside the zephyr directory, as all the modules and most of the hals are not in the allow list.
@ConnorRigby this seems like a duplicate of https://github.com/zephyrproject-rtos/zephyr/discussions/71826 , so I will close it as such. Please reopen if you disagree.
I had the same issue, maybe somebody finds this helpful:
if you are working with different samples (and may be your own app, too), make sure that your west update
works with the right YAML where - fatfs
is included. Or update the one being used.
E.g. I added it to my app explicitly and THEN ran west update
projects:
- name: zephyr
path: zephyr
remote: zephyrproject-rtos
revision: v3.7.0
# explicitly add Zephyr-specific West extensions
west-commands: scripts/west-commands.yml
import:
name-allowlist:
- fatfs
Describe the bug
Running the commands exactly as they are described in the fs_sample guide, i get a compiler error:
Environment
samples/subsys/fs/fs_sample/README