joembedded / jesfs Goto Github PK
View Code? Open in Web Editor NEWJo's Embedded Serial File System (for Standard Serial NOR-Flash)
Home Page: https://joembedded.de
License: MIT License
Jo's Embedded Serial File System (for Standard Serial NOR-Flash)
Home Page: https://joembedded.de
License: MIT License
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.
Any version to use for nrf52832?
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
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 ? ๐ค
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!
Hi ,
I just wonder why , especially because of the tricky part (escaping) for unclosed files ? ๐ค
Hello,
I believe there is an omission of a line
anz=uval;
In file JesFs_main.c at the beginning of "case 'r'" section
Best Regards
Dimitar
https://github.com/joembedded/JesFs/blob/master/README.md?plain=1#L38 says GPL but the LICENSE file says MIT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.