Thanks to visit codestin.com
Credit goes to github.com

Skip to content

not able to run simple-fatfs #10

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

Open
mytechnotalent opened this issue Feb 10, 2023 · 4 comments
Open

not able to run simple-fatfs #10

mytechnotalent opened this issue Feb 10, 2023 · 4 comments

Comments

@mytechnotalent
Copy link

Unable to build simple-fatfs example here.

panic: runtime error: type assert failed

What is the minimal example to simply:
1)write "hello world" to a Pico's flash using TinyGo
2)read the string from flash and print to the terminal

This is essential for any persistence if we are to use TinyGo.

@bgould
Copy link
Member

bgould commented Feb 11, 2023

RP2040 is generally not working yet in TinyGo itself, pending tinygo-org/tinygo#3378 which in turn will depend on tinygo-org/tinygo#3382

Once XIP/QSPI flash is working then the TinyFS examples can probably be made to work on pico.

A word of caution though ... using writable fatfs on a flash chip is not advisable, littlefs would be much better for the longevity of the device.

@mytechnotalent
Copy link
Author

@bgould thank you for your response. Yes I would prefer TinyFS as I see that those examples are not working so I went here. I would prefer that route and thank you for the aforementioned branches.

Without file persistence and a filesystem of some sort on the Pico it is really limited in its functionality. In the meantime do you know of a way to:

1)write "hello world" to a Pico's flash using TinyGo
2)read the string from flash and print to the terminal

In addition, do we know how far away we are to getting TinyFS on the Pico? I read the PR's but was unsure we are close to a working solution.

@deadprogram
Copy link
Member

See tinygo-org/tinygo#3536 for progress on rp2040.

@deadprogram
Copy link
Member

An update: using the dev branch of TinyGo itself from the upcoming 0.28, and LIttleFS filesystem in this repo on dev branch, is working on RP2040 flash.

The fatFS is still not able to run. However LittleFS at least fulfills the minimum requirements for file persistence.

@deadprogram deadprogram changed the title not able to build simple-fatfs not able to run simple-fatfs May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants