Little File System, overwrite part of a file

12 Feb 2019

Dear Everyone,

I am using silicon Labs EFM32JG12B500F1024GM48 microcontroller and the Little File System. My question is how can I overwrite some data of a file from the Little File System. For example, I have a file and its size is 250 bytes, and I want to replace 10 bytes from location 10 to 20. I don't want to rewrite the whole file because it takes some time and cause missing data from a USART. Following is my set up: - use LFS_O_RDWR option to open the file to write - the file system partition is located at 0xb0000 - 0xf0000, in the microcontroller FLASH

Thank you in advance, Dennis