FlashIAPBlockDevice and LittleFileSystem

15 Nov 2018

Is it possible to use FlashIAPBlockDevice as a source for LittleFIleSystem on NRF52?

Im trying but keep getting the following error...

No filesystem found, formatting... Fail :( error: EDOM - function argument out of range (-1)

Also my size always seems to come back as 524288 even though i am specifiying a start location and size of 64

Any ideas?

16 Nov 2018

Just to add a bit more detail to this.

Im using the following block device config

FlashIAPBlockDevice bd(0x49B1E,0x1000);

and i get the following output from the filesystem demo...

I get these value back from blockdevice bd.size() = 524288 bd.get_read_size() = 1 bd.get_program_size() = 4 bd.get_erase_size() = 4096

and this is output from demo. - Mbed OS filesystem example - Mounting the filesystem... Fail :( No filesystem found, formatting... Fail :( error: EDOM - function argument out of range (-1) Opening "/fs/numbers.txt"... Fail :( No file found, creating a new file... Fail :(

Any input, surely someone is creating filesystem on internal flash?

25 Jan 2019

Any clue?

16 May 2019

Any updates to this? Struggling with a similar issue. I'm able to make files within the LFS but writing anything to them returns a fatal run-time error "error: No space left on device (-28)"

Please log in to post a reply.