Skip to content

Increasing Code Storage Space on STM32F405 Board #16518

Discussion options

You must be logged in to vote

After this change the Pyboard works and with:

import os, pyb
os.umount('/flash')
os.VfsLfs2.mkfs(pyb.Flash(start=0))
os.mount(pyb.Flash(start=0), '/flash')
os.chdir('/flash')

(from the docs) the flash filesystem displays a size of 304 (or 368) kB.

I did tests of the filesystem which passed. The test is in attached fs_test.py.

After being successful with this I compiled a version with 368 kB of flash filesystem, that also passed the tests.
Test run and result:

>>> run(n=40, flen=9000)
File system free space: 367.0 KB
create file0 file1 file2 file3 file4 file5 file6 file7 file8 file9 
FS free: 276.0 KB. Bytes written: 90000 B. FS usage per Bytes: 1.04
create file10 file11 file12 file13 fil…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@daleka
Comment options

Comment options

You must be logged in to vote
2 replies
@daleka
Comment options

@shariltumin
Comment options

Comment options

You must be logged in to vote
5 replies
@rkompass
Comment options

@rkompass
Comment options

@rkompass
Comment options

Answer selected by daleka
@daleka
Comment options

@rkompass
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants