-
Notifications
You must be signed in to change notification settings - Fork 188
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
Add SPI sdcard driver #167
Conversation
It works at the moment, but there are still a lot of changes to come.
|
You can mount a FAT32-formatted sdcard by using the following https://github.com/sago35/tinyfs/tree/sdcard If you get the following message at runtime, you can work around it by temporarily increasing the stack size.
The stack size can be changed from
https://github.com/tinygo-org/tinygo/blob/master/src/internal/task/task_stack_cortexm.go#L7 |
f2db458
to
2095d76
Compare
The source code has been cleaned up to minimize the implementation. It has only been tested on SDHC 8GB and SDXC 64GB sdcards. examples/sdcard/console:
|
In addition, the current sdcard driver successfully reads FAT32 using However,
|
Agreed, @sago35 I've updated https://github.com/tinygo-org/tinyfs to the latest WIP and also created |
The default stack size may not be enough for your current code.
|
It is now ready for review. |
Tested with default values using Go1.16.3 and the latest TinyGo dev version, using 16GB SDHC card.
|
@deadprogram |
Great! Thank you all your work on this contribution @sago35 now merging. |
#155
TODO