Zephyr 101 - LittleFS
HTML-код
- Опубликовано: 5 окт 2024
- nRF9160 Feather & More: www.jaredwolff...
Jared's site: www.jaredwolff...
Have a more detailed questions?: community.jare...
Buy me a coffee ☕: ko-fi.com/jare...
Github Sponsors: github.com/spo...
Relevant links
External Flash Sample - github.com/cir...
DTS file for nRF9160 Feather - github.com/zep...
Amazing video. This channel is gold! Thank you so much!
A god sent video, thank you !
I have also noticed large delays that can happen when using flash for logging sensor data. I think it's the root cause of some bugs that crop up seemingly randomly and are hard to trace (like you mentioned with watchdogs expiring etc). I'm using a 4Gbit NOR chip and my log files can sometimes reach up to 40-50MB. This has been a big hassle and I think it's stretching the limits of what you can achieve with NOR flash (in the context of constantly recording data).
Im going to try using an SD chip (not removable, but uses SD protocol) and see if the time-complexity hit you take when using LFS with many small files or few large files is less noticeable. Planning to compare LFS w/ NOR to LFS w/ SD and FATFS with SD.
Thanks for your tutorials!
Cool. Thanks for sharing Louis!
Thank you. Another great video. Do you have an example of the tip at 28:00: separate thread dedicated to accessing the file system? It's not in your example.
I'll add it to my list of potential future Zephyr 101 :)
Do the NCS side instructions on setting up the external flash with LittleFS only work for nRF91/53? What about nRF52?
Yup should work.
Can you use RAM for littlefs storage?
I know it's geared towards NOR flash as a backend since it has wear leveling etc. There maybe some LittleFS based tests that run in RAM you may have some luck there.
How can I mount LittleFS drive to computer to work with it like with the FAT drive?
I'd recommend FAT instead if you're going to use it in that way.
@@CircuitDojo Thank you for your recommendation. But is there any way how to do it with LittleFS?
@@matejponcak1106 you may want to check out github.com/littlefs-project/littlefs-fuse.
@@CircuitDojo thank you :)
I'm loving your videos about Zephyr RTOS. You should definitely start thinking about creating a set of tutorials introducing the nRF Connect SDK and Zephyr from scratch:
- Configuration toolchain and build system
- Device tree and overlays
- IOs
- External Interruptions
- Timers
- ADC
- PWM
- I2C/SPI
- DMA
- etc
Thanks for the suggestion Gabriel!
@@CircuitDojo as someone who has worked with PIC microcontrollers in the past and then with nRF52 SoC with nRF5 SDK... going through nRF Connect SDK has been a big challenge as the embedded system development process is completely different compared to what I was accustomed. So I really feel the need for good tutorials to help people make that switch.
@@Gabriel965519437 well put. I spent lots of time in Nordic's bare metal SDK a while back. There was definitely a big jump! Thanks again for your thoughts/comments.