7 years, 2 months ago.

Mount/Format Little Filesystem when application code is not started at the FLASH_MEM_BASE

Good morning everyone,

I am using silicon Labs EFM32JG12B500F1024GM48, EFM32 EMLib, arm-eabi, and Little Filesystem Which register should I set before I access the main FLASH at 0x000B0000 address when my application code start at 0x00004000 address? Below is my system memory allocation: Bootloader code start at 0x00000000 address Application code start at 0x00004000 address Filesystem location start at 0x000B0000 address.

I'm using Little File System for my filesystem application (https://github.com/ARMmbed/littlefs). I can mount/format, read, and write to the filesystem on 2 conditions: 1. The application code resides at the base of the main FLASH (0x00) (no boot loader) 2. If the application code resides at the 0x00004000 address, the filesystem can be mount/format when I run the application with VisualGBD debugger.

I cannot mount/format the filesystem if the application code resides at the 0x00004000 address and after jumping from the bootloader. I get LFS_ERR_NOSPC No space left on device error.

Thank you in advance, Dennis

Be the first to answer this question.