Open davidawesome02 opened 1 year ago
Just wrote all zeros to the card anddd:
[F][MAIN] fail to mount filesystem,error= 1
[F][MAIN] SD card might fail to initialise.
(Call Error Handler)
FR_DISK_ERR, /* (1) A hard error occurred in the low level disk I/O layer */
soooo...... what dose this mean
Confirmed on discord this is not a board issue, this is a code issue for the sd library
No version of the sd library work on ox64 (M0 core)
update; 89f218486cb28ceb8226c9f055d162c835ae7698 works partialy (can format but read and write tests failing)
update 6a4d89bfeb6d8237da3e63ac66a6207c8af1c7bf works for fat32 but nothing else, making new issue for exfat not working pre 6a is compleatly diffrent, and cant be merged with current, and post is 2.0 whitch is broken
I know you have to modify the configs, but even those dont fix it, I keep getting error 19 (https://github.com/bouffalolab/bouffalo_sdk/blob/96533598ec949647be9a74d22ed5851604265957/components/fs/fatfs/ff.c#L6727)
FR_INVALID_PARAMETER
with config
#define FF_FS_CONTINUOUS 1
#define FF_FS_READONLY 0
#define FF_FS_MINIMIZE 0
#define FF_USE_FIND 1
#define FF_USE_MKFS 1
#define FF_USE_FASTSEEK 1
#define FF_USE_EXPAND 0
#define FF_USE_CHMOD 0
#define FF_USE_LABEL 0
#define FF_USE_FORWARD 0
#define FF_USE_STRFUNC 0
#define FF_PRINT_LLI 1
#define FF_PRINT_FLOAT 1
#define FF_STRF_ENCODE 3
#define FF_CODE_PAGE 437
#define FF_USE_LFN 2
#define FF_MAX_LFN 255
#define FF_LFN_UNICODE 1
#define FF_LFN_BUF 255
#define FF_SFN_BUF 12
#define FF_FS_RPATH 0
#define FF_VOLUMES 5
#define FF_STR_VOLUME_ID 2
#define FF_VOLUME_STRS "ram", "flash", "sd", "sd2", "usb"
#define FF_MULTI_PARTITION 0
#define FF_MIN_SS 512
#define FF_MAX_SS 512
#define FF_LBA64 1
#define FF_MIN_GPT 0x10000000
#define FF_USE_TRIM 0
#define FF_FS_TINY 0
#define FF_FS_EXFAT 1
#define FF_FS_NORTC 1
#define FF_NORTC_MON 1
#define FF_NORTC_MDAY 1
#define FF_NORTC_YEAR 2022
#define FF_FS_NOFSINFO 0
#define FF_FS_LOCK 0
#define FF_FS_REENTRANT 0
#define FF_FS_TIMEOUT 1000
and only changing main.c to the commented exfat option
When running the example, almost no fs type works;
fat32 - error 1 while mounting (this is after forcing it to partition by skipping the checks for empty) exfat - error making file system type 19 (this is also after forcing it)
Right now I am trying to run (no idea if this will work, dd is slow)
to remove all partition tables from the device, but if anyone knows how to run the format on the device, or what version still works because I am patching githubs current one with the 2.0 release...
Thanks for the help! (see also issue #153)
(also this is a issue with the sdk, im just looking for help with it also.)