GithubHelp home page GithubHelp logo

joembedded / jesfs Goto Github PK

View Code? Open in Web Editor NEW
164.0 164.0 29.0 10.22 MB

Jo's Embedded Serial File System (for Standard Serial NOR-Flash)

Home Page: https://joembedded.de

License: MIT License

C 100.00%
arm ble bluetooth bootloader ccs embedded-devices file-system filesystem flash nrf52 ota-update secure-boot simplelink spi-flash ultra-low-power

jesfs's People

Contributors

joembedded avatar ndcroos avatar warrenwoolseyiii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jesfs's Issues

README.mk and license notice

Hi,
I don't know how to tell you "thanks" for the change of license to more tolerant LGPL.
Can you change notice about license in README.md too?

Thanks!!!

PS: it looks promising

Does the library support 64k sector size?

I was wondering if I can use this library to interface with a Micron N25Q128 flash. It has 64k erase sectors and I noticed this library hard codes erase sector size to 4k. Thanks!

NRF52832

Any version to use for nrf52832?

File system lost files if application restart on a specific point

Description

I'm developing a Digital Lock, and our team is using the JesFs, but, we experiencing some issues that can be a big problem on our products.

Yes, we developing our Digital lock to not restart or crash suddenly, but, it can happen. And, if this event occurs on a file opening operation, between an Erase Sector, the File System lost all the files, more specifically on this code section:

    } else {
/* == After this command == */
        res = sflash_SectorErase(sfun_adr);
        if (res)
            return res;
    }

    fs_memset((uint8_t *)&sflash_info.databuf, 0xFF, HEADER_SIZE_B + FINFO_SIZE_B);
    sflash_info.databuf.u32[0] = SECTOR_MAGIC_HEAD_ACTIVE;
    fs_strcpy((char *)&sflash_info.databuf.u8[HEADER_SIZE_B + 12], pname);
    pdesc->file_ctime = fs_get_secs();
    sflash_info.databuf.u32[HEADER_SIZE_L + 2] = pdesc->file_ctime;
    sflash_info.databuf.u8[HEADER_SIZE_B + 34] = flags;
/* == Before this command == */
    res = sflash_SectorWrite(sfun_adr, (uint8_t *)&sflash_info.databuf, HEADER_SIZE_B + FINFO_SIZE_B);

So, do you guys have a solution to prevent this? Maybe, keeping a file open can be a solution, but, I think, isn't the most efficient, right?

And, I'm making tests to find out another code point that can cause some similar issues.

Thanks.

0xFF value at end of file

Hi,

I'm searching for an embedded file system to write arbitrary binary data . i looked at the documentation file and I'm not sure to understand . It's mandatory for you file system to avoid 0xff at the end of the files ? ๐Ÿค”

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.