Solve MTK file system memory allocation problems

Source: Internet
Author: User

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.

 
 
  1. FLASH_OPTIONS_HDR =#$ (strip $ (FIXPATH) \ custom \ system \ $ (strip $ (BOARD_VER) \ flash_opt.h and
  2. CUSTOM_FLASH_C =#$ (strip $ (FIXPATH) \ custom \ system \ $ (strip $ (BOARD_VER) \ custom_flash.c
  3. /***********
  4. * Step 1 .*
  5. ***********/
  6. # DefineFLASH_BASE_ADDRESS0x0700000 // 7*1024 (K) * 1024 (M) = 0x0700000
  7. /***********
  8. * Step .*
  9. ***********/
  10. # DefineALLOCATED_FAT_SPACE0x0100000 // 1*1024 (K) * 1024 (M) = 0x0100000
  11. /***********/
  12. /* Step 3 .*/
  13. /***********/
  14. StaticconstFlashRegionInfoRegionInfo [] =
  15. {
  16. {0 x random, 15 },
  17. {0x2000,8 },
  18. EndRegionInfo/* Don \ 'tmodifythisline */
  19. };
  20. /***********/
  21. /* Step 4 .*/
  22. /***********/
  23. # DefineTOTAL_BLOCKS23 // Maximum127
  24. /***********/
  25. /* Step5 .*/
  26. /***********/
  27. /* PartitionSectorsintheFirstPartitions (UnitSectors) onesector512Byte */
  28. /* 0fornopartition */
  29. # DefinePARTITION_SECTORS0
  30. /***********/
  31. /* Step6 .*/
  32. /***********/
  33. FlashBankInfoBankInfo
  34. {
  35. Modify 0x200000to0x100000
  36. }
  37. /***********/
  38. /* Step7 .*/
  39. /***********/
  40. /* Modify the scat file 0x00600000to0x00700000 */
  41. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.