Skip to content

Instantly share code, notes, and snippets.

@Windrow14
Windrow14 / sd-modules-compilation-errors.log
Last active July 3, 2024 08:07
Sd Modules Compilation Errors
CC: sd_stress_main.c sd_bench_main.c: In function 'write_test':
sd_bench_main.c:179:25: error: initialization of 'size_t *' {aka 'long unsigned int *'} from incompatible pointer type 'unsigned int *' [-Werror=incompatible-pointer-types]
179 | size_t *blocknumber = (unsigned int *)(void *)&block[0];
| ^
sd_bench_main.c: In function 'read_test':
sd_bench_main.c:280:25: error: initialization of 'size_t *' {aka 'long unsigned int *'} from incompatible pointer type 'unsigned int *' [-Werror=incompatible-pointer-types]
280 | size_t *blocknumber = (unsigned int *)(void *) &read_block[0];
| ^
sd_bench_main.c:309:50: error: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
309 | printf("Read data error at block: %d wrote:0x%04x read:0x%04x",
@Windrow14
Windrow14 / esp32s3-mmcsd.log
Created June 25, 2024 01:40
Logs for ESP32S3 MMCSD Support Verification
�ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x38 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4201ce2c
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1750
load:0x403c9700,len:0x4
load:0x403c9704,len:0xc00
load:0x403cc700,len:0x2e04
@Windrow14
Windrow14 / nuttx-fat-fseek-bug-log.txt
Created June 17, 2024 05:10
Nuttx FAT Fseek Bug Reproduction Log
nsh> mkfatfs -F 32 -r /mnt /dev/virtblk0
nsh> mount -t vfat /dev/virtblk0 /mnt
nsh> ls /mnt
/mnt:
nsh>
nsh> fs_rws_test /mnt/test w w 32768
argc: 5
filep: 0x4042a5b8
32768 bytes to write
pos after write: 32768
This file has been truncated, but you can view the full file.
nsh> fs_rws_test /mnt/test1 w w 4096
argc: 5
filep: 0x4042a5b8
4096 bytes to write
pos after write: 4096
nsh> fs_rws_test /mnt/test2 w w 16384
argc: 5
filep: 0x4042a5b8
16384 bytes to write
pos after write: 16384
@Windrow14
Windrow14 / Make.defs
Last active June 14, 2024 07:01
Filesystem Read-Write-Seek Test Tool (Testing Application to Put at apps/testing/fs_rws_test/) for Nuttx
ifneq ($(CONFIG_TESTING_FS_RWS_TEST),)
CONFIGURED_APPS += $(APPDIR)/testing/fs_rws_test
endif