Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples of SDFat #465

Open
VantagePro2 opened this issue Jan 13, 2024 · 4 comments
Open

Examples of SDFat #465

VantagePro2 opened this issue Jan 13, 2024 · 4 comments

Comments

@VantagePro2
Copy link

Good evening!
I am dealing with the examples of the SDFat library (version 2.2.2).
When compiling the Unicode Filenames example for the Arduino Due board, I get an error:

Arduino: 1.8.19 (Windows 10), Плата:"Arduino Due (Programming Port)"

UnicodeFilenames:96:2: error: #error USE_UTF8_LONG_NAMES must be non-zero in SdFat/src/SdFatCongfig.h
#error USE_UTF8_LONG_NAMES must be non-zero in SdFat/src/SdFatCongfig.h
^
exit status 1
#error USE_UTF8_LONG_NAMES must be non-zero in SdFat/src/SdFatCongfig.h

What is the reason for this error?
There is
// #define USE_UTF8_LONG_NAMES 1
in SdFatCongfig.h

@greiman
Copy link
Owner

greiman commented Jan 13, 2024

Edit SdFatConfig.h and remove the comment slashes so USE_UTF8_LONG_NAMES is define to one.

@VantagePro2
Copy link
Author

Everything works.
Thank you very much.
Could you explain to me why there were the comment slashes for this line?

@greiman
Copy link
Owner

greiman commented Jan 14, 2024

Could you explain to me why there were the comment slashes for this line?

UTF8 require more memory and few people use UTF8 so the default is to not enable UTF8. Many Uno users can't even enable exFAT.

@VantagePro2
Copy link
Author

Now it's clear
Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants