Used flash memory is not reported correctly #182
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When using
pico-fido-tool.pythe used flash memory is not reported correctly when running on my Waveshare zero board, it is stuck to zero even if the number of files is reported correctly:While debugging this problem I noticed that the used flash memory is reported correctly in emulation:
It seems in pico-keys-sdk:
113e720fca/src/fs/file.c (L276)the variablelast_baseis not updated properly during the scan but I'm stuck debugging that on the board.If
last_baseis not updated properly, then it wouldn't work at all. I tested it in my waveshare zero and works fine. Try generating more files, OTP, resident credentials, etc. to check whether it's a rounding problem.Yes I thought about the rounding issue so I printed the exact value in the script:
But it seems to be board specific since I tested on a RPI Pico 2 and the values were correct.