Coder Social home page Coder Social logo

Comments (4)

SeanAlling avatar SeanAlling commented on June 9, 2024

Assuming a RAM file system, this is supported in uC/FS.

In the uc/FS documentation you shall find an example of using the RAM file system. At a minimum, you just need to provide the driver files for reading and writing to RAM. Link the driver functions to the RAM FS and then the rest of it shall just work.

from uc-fs.

CheneyDu0129 avatar CheneyDu0129 commented on June 9, 2024

Assuming a RAM file system, this is supported in uC/FS.

In the Uc/FS documentation you shall find an example of using the RAM file system. At a minimum, you just need to provide the driver files for reading and writing to RAM. Link tghe driver functions to the RAM FS and then the rest of it shall just work.

Thank you for your answer.
I already have RAMFS in use, but at present I expect to have a ROMFS for storing embedded web pages. Is there a way to implement ROMFS?

from uc-fs.

SeanAlling avatar SeanAlling commented on June 9, 2024

There are two cases for a ROM FS, static or dynamic.

Static FS

Static FS support is built into uc-HTTP, and not directly into uC-FS.

An updated guide for using HTTPs and a static file system can be found in the Micrium-OS documentation. A special configuration is required to enable static FS.

Key parts for a ROM FS is to convert files to binary arrays, which is done through GenerateFS.py. Simply run the script, and then include the resulting files in your project.

Dynamic FS

In contrast to a static FS, the dynamic FS is built directly into uC-FS. There are two options, NAND and NOR. Simply provide the drivers and enable the modules in uC-FS.

from uc-fs.

CheneyDu0129 avatar CheneyDu0129 commented on June 9, 2024

Thank you.
I will try porting the static file system to the VFS layer of UC-FS.
because I didn't use uC/TCP and uC/HTTP.

from uc-fs.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.