.sct文件分析

发布时间 2023-04-11 21:49:45作者: Charles_hui
点击查看代码
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************

LR_IROM1 0x00000000 0x00080000  {    ; load region size_region
  ER_IROM1 0x00000000 0x00080000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
   .ANY (+XO)
  }
  RW_IRAM1 0x20000000 0x00020000  {  ; RW data
   .ANY (+RW +ZI)
  }
  RW_IRAM2 0x70000000 0x00800000  {  ; RW data
   *(.SDRAM)
  }
}


空间大小分析:
---1.flash:起始地址为0x00000000;大小为0x00080000,即80000(hex) / 400(hex) = 200(hex) = 512 KB;其中 400(hex) = 1024(dec)
---2.sram: 起始地址为0x20000000;大小为0x00020000,即20000(hex) / 400(hex) = 50 (hex)= 128 KB;
---3.sdram:起始地址为0x00000000;大小为0x00800000,即80000(hex) / 400(hex) = 8192 KB = 8MB;