Skip to content

Problem when using fatfs example in a out_of_tree_driver with the file ff.h #51399

Answered by nordicjm
Tobi15 asked this question in General
Discussion options

You must be logged in to vote

A driver added to zephyr externally is a driver and is added as an external module, it should have access to the base zephyr features, fat_fs is not a base zephyr feature, it's a module. Because they are both modules, you cannot reference it, and why would a driver expose a fat filesystem? The driver should expose a base device which is then mounted as a filesystem - be it fat or littlefs or any other filesystem, which can then be mounted from application code.

The reason for there being a split of modules that can be used and those that can't, from an external module, is because some modules configuration is in the zephyr tree, and some is outside of it. fatfs is outside of it, segger is…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Tobi15
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
Converted from issue

This discussion was converted from issue #51223 on October 18, 2022 16:27.