MTK file system memoryAllocation Problem Solving is the content to be introduced in this article, mainly to understand and learnMTK File SystemSo as to better manage and allocateMemoryAboutMTK File SystemFor more information, see this document.
MTK uses 64 x32 flash and is allocated by the 7 + 1 file system as follows:
The OPTION. MAK file is blocked because the flash_opt.h and custom_flash.c files are automatically generated.
- FLASH_OPTIONS_HDR =#$ (strip $ (FIXPATH) \ custom \ system \ $ (strip $ (BOARD_VER) \ flash_opt.h and
- CUSTOM_FLASH_C =#$ (strip $ (FIXPATH) \ custom \ system \ $ (strip $ (BOARD_VER) \ custom_flash.c
- /***********
- * Step 1 .*
- ***********/
- # DefineFLASH_BASE_ADDRESS0x0700000 // 7*1024 (K) * 1024 (M) = 0x0700000
- /***********
- * Step .*
- ***********/
- # DefineALLOCATED_FAT_SPACE0x0100000 // 1*1024 (K) * 1024 (M) = 0x0100000
- /***********/
- /* Step 3 .*/
- /***********/
- StaticconstFlashRegionInfoRegionInfo [] =
- {
- {0 x random, 15 },
- {0x2000,8 },
- EndRegionInfo/* Don \ 'tmodifythisline */
- };
- /***********/
- /* Step 4 .*/
- /***********/
- # DefineTOTAL_BLOCKS23 // Maximum127
- /***********/
- /* Step5 .*/
- /***********/
- /* PartitionSectorsintheFirstPartitions (UnitSectors) onesector512Byte */
- /* 0fornopartition */
- # DefinePARTITION_SECTORS0
- /***********/
- /* Step6 .*/
- /***********/
- FlashBankInfoBankInfo
- {
- Modify 0x200000to0x100000
- }
- /***********/
- /* Step7 .*/
- /***********/
- /* Modify the scat file 0x00600000to0x00700000 */
- ROM0x080000000x00700000
Summary: DetailsMTK file system memoryThe solution to the allocation problem is described.MTK File SystemYou can make full useMemory, It is best to hope this article will help you.