Skip to content
Discussion options

You must be logged in to vote

OK, I think I found it. Long story short: the diskio_ctl function returns a sector size, that is fixed and thus not necessarily the one configured in the file system, which was it in my case.

The long story:
In the provided inisetup.py, there is series of function to check the fs integrity. I used this function to check differences between a fs created with Micropython and Pycom, and discovered the first configuration issue with the different block size, see #11226 . Now I tried to find other differences and compared the config bytes of the FATFS in the first block of the flash. At first, I didn't wonder why

buf = bytearray(bdev.ioctl(5, 0))  # 5 is SEC_SIZE
bdev.readblocks(0, buf)

return…

Replies: 3 comments

Comment options

Josverl
Jul 16, 2023
Collaborator Sponsor

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
Answer selected by x4t-de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants