i want to put both the code and the files in the internal flash memory,how can i config the file"fs_flashdev.h" and the DEFINES "FL_BADR" and "FL_SIZE" in File_config.c
for example: The internal flash address is 0x00000000~0x00040000, I want to put the file system in 0x00020000~0x00040000(code at 0~0x00020000). Which configuration is right below:
FIRST: ---------------------------------- "File_config.c" #define FL_BADR 0x00000000 #define FL_SIZE 0x00040000
"fs_flashdev.h" #define FLASH_DEVICE \
DFB(0x08000, 0x020000), \
DFB(0x08000, 0x028000), \
DFB(0x08000, 0x030000), \
DFB(0x08000, 0x038000),\
---------------------------------- SECOND: ---------------------------------- "File_config.c" #define FL_BADR 0x00020000 #define FL_SIZE 0x00020000
DFB(0x08000, 0x000000), \
DFB(0x08000, 0x008000), \
DFB(0x08000, 0x010000), \
DFB(0x08000, 0x018000), \
----------------------------------