Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Upgrade Adafruit_LittleFS for Adafruit Bluefruit nRF52
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Upgrade Adafruit_LittleFS for Adafruit Bluefruit nRF52

by dperez4787 on Mon Apr 12, 2021 7:57 pm

Topic Summary:

The purpose of this post is to seek suggestions, thoughts, and advice regarding the following objective: upgrade the AdafruitLittleFS library in the Adafruit Bluefruit nRF52 Arduino BSP to be naturally linked to the upstream project (as of now, the LittleFS implementation seems to have been manually copy/pasted to expose basic filesystem operations).

Additional Details:

Currently, my project is using the Adafruit Bluefruit nRF52 Arduino BSP (Broad Support Package) as a package dependency, and it is working great.

BSP Repository: https://github.com/adafruit/Adafruit_nRF52_Arduino

My application is specifically making use of the LittleFS implementation that can be found here (the following link points to a subdirectory of the above BSP repository):

Adafruit_LittleFS library: https://github.com/adafruit/Adafruit_nR ... t_LittleFS

After having researched the above setup, I noticed that the LittleFS implementation being used is not directly tied to the official LittleFS project (which can be found here: https://github.com/littlefs-project/littlefs). To provide more detail, what I am saying is that the underlying LittleFS code beinng used by the BSP looks to simple have been copy/pasted (possibly refactored) to reside in this location: https://github.com/adafruit/Adafruit_nR ... c/littlefs.

This is posing an issue for us; the official LittleFS project (https://github.com/littlefs-project/littlefs) has some new features that could provide a lot of value. My objective is to make the necessary changes to the Adafruit_nRF52_Arduino repository to incorporate these new features available on the LittleFS project.

Question:

Can you please provide some insight on which of the following possible solutions makes the most sense?

1. Make changes against https://github.com/adafruit/Adafruit_nRF52_Arduino to include a git submodule that points to the upstream little fs project source?
2. Refactor https://github.com/adafruit/Adafruit_nRF52_Arduino manually to include the new features that are exposed by the LittleFS team's latest releases?

Any feedback/insight is greatly appreciated!

dperez4787
 
Posts: 1
Joined: Mon Apr 12, 2021 7:37 pm

Re: Upgrade Adafruit_LittleFS for Adafruit Bluefruit nRF52

by tqhien on Fri Apr 23, 2021 6:49 pm

Hello !

I would say that a submodule would be a better choice, because it allows you to fetch and track commits in the submodule. Then the main project can be updated to those commits. Moreover, you can also work on the submodule and publish changes if needed !

A manual refactor would need to parse all files for each release.

tqhien
 
Posts: 1
Joined: Fri Apr 23, 2021 6:36 pm

Please be positive and constructive with your questions and comments.