Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32: get small filesystem working on NUCLEO_L432KC #4701

Merged
merged 1 commit into from May 27, 2021

Conversation

dpgeorge
Copy link
Member

The filesystem is 26k in size.

@mindforger
Copy link

mindforger commented Apr 19, 2019

tested and working

made one addition on my own
froze the sdcard.py
resized the FS to 25k as i was overlapping by 800ish bytes with the frozen sdcard.py
tested on SPI 1 and 3, works flawless, Board Pin A7 is not working as chip select, the whole board freezes then

great job

PS the remaining space is enough to fit in a boot.py to mount the sd permanetly

@dpgeorge
Copy link
Member Author

resized the FS to 25k

That probably won't work because the page erase size is 2k, so the filesystem must be a multiple of 2k.

Board Pin A7 is not working as chip select

PA7 should be a MOSI pin.

@dpgeorge
Copy link
Member Author

dpgeorge commented May 2, 2019

I merged one of the commits here in a974f2d and rebased and force pushed the remaining one.

@mindforger
Copy link

mindforger commented May 4, 2019

hm ... now something is broken again, just did a hard reset origin/master and now i won't get a FS anymore

HEAD ist jetzt bei 8402c26 stm32/powerctrl: Enable EIWUP to ensure RTC wakes device from standby.

edit: okay that was a total failure, now all the changes to the ld file are gone .. i am confused sorry
made a copy, thatis still working ... i think i used the wrong branch here

@dpgeorge
Copy link
Member Author

dpgeorge commented May 5, 2019

There is still one commit on this branch which is not yet in master. The reason I don't want to merge this (yet) is because this board is a good candidate for using littlefs by default (since it doesn't have USB, doesn't need to use FAT). Soon littlefs v2 will be integrated and this board will use it, and likely have more free space on its filesystem.

@mindforger
Copy link

Ah, okay. Will stay on my modified branch then. But will i be able to read a sdcard when i freeze in the sdcard.py? I still did something to my local code but i dont know how to diff in console XD
If you have an advice on how i can push my local version to github i could diff it online

@cdwilson
Copy link
Contributor

Soon littlefs v2 will be integrated and this board will use it

@dpgeorge is there any activity on this now that littlefs V2 is released?

@dpgeorge
Copy link
Member Author

Commit 3786592 made progress on this, and now this PR (which has been updated) is very minimal.

See also #7123 which does what's done here in a different way.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge
Copy link
Member Author

Fixed filesystem partition offset, and tested on a board.

@dpgeorge dpgeorge merged commit 62f7537 into micropython:master May 27, 2021
@dpgeorge dpgeorge deleted the stm32-l432-filesystem branch May 27, 2021 02:36
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Oct 13, 2021
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Oct 13, 2021
[micropython#4701] Correct DAC clock speed comments for SAMD21 and SAMD51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants