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
Update fatfs to R0.13c #145
base: master
Are you sure you want to change the base?
Conversation
- Added configuration options for mmcfs component: - codepage, lfn (long filename support), lfn_length (max. length of long file names, use_utf8_api (use utf-8 on fatfs api calls), tiny (enable disable FF_FS_TINY parameter - Made use of GPIO for SPI cs optional (in this case platform_spi_select is used to control cs)
* addtional paremeters files, use_locking * map fatfs error codes to newlib errors * remove get_fattime in elua_mmc.c - fatfs provides an own function for this
@ThomasHornschuh, @bogdanm, I have looked at this PR for a while. Can |
@ramangopalan By all means, yes. What kept me from merging this is that I'm currently unable to test the changes on my side. Even the CI seems broken and I haven't had the time to look into it. So please, if you can look into it, that'd be great. |
@ramangopalan: If you have questions, please ask. Looking foward in having my PR merged. |
@bogdanm, perfect! I will start this tomorrow. @ThomasHornschuh, sure. Thanks! R |
@ThomasHornschuh, thanks for the patch. I have had a look at your
I like the way the ffconf parameters are now generated as MMCFS_
Assuming a physical error, it might be easier to halt after f_mount and |
@ramangopalan: |
I ran some tests on a 32GB Samsung EVO Plus. Works fine on an Infineon XMC400-E144x at a lower SPI bus speed of 8MHz. Certainly not with its default of 10MHz. I don't suspect the stack. Just the SPI and clocking. More thoughts in a day OR two. Long days. I want to be able to run Jaunty Ubuntu (for PXA-255) within Dimitry Grinberg's uARM with your changes on XMC4500-E144x1024. That will be a fun test. I have the test rig ready. |
I think also that this is hardware (SPI) related. I didn’t changed the driver code. On my FPGA based design on a Digilent Arty board it works successfully with 20.83 Mhz on an older 2GB card from Hama and a Kingston 16GB card. Does your hardware has a pull-up resistor on the data lines? |
Sorry about the brief pause. I will have some time for some more results this weekend. |
@ThomasHornschuh, so sorry about the long delay. Today, I ran some I checked your abstraction code in mmcfs.c as well. It works fine so |
@ramangopalan |
This PR contains mainly the update of fatfs to R0.13c. In addition a few more configuration options for the mmc component in the board description have been added. See file src/fatfs/FATFS_README.md for details.
I have tested the coding on my FPGA based RISC-V SoC only, so I cannot say if it works well on any other platform.
Sizes (on RISC-V) with the following configuration. ARM code sizes are likely smaller.
mmcfs module:
ff module:
ffunicode module