|
发表于 2019-4-6 10:48:11
|
显示全部楼层
内存管理貌似可以了,修改如下:
// D1域, AXI SRAM, 512KB 0x24000000
__ALIGNED(8) uint64_t *AppMallocAXISRAM = (uint64_t *)(AXISRAM_RT_ADDER);
// D2域, 128KB SRAM1(0x30000000) + 128KB SRAM2(0x30020000) 管理256KB
__ALIGNED(8) uint64_t *AppMallocSRAM1 = (uint64_t *)(SRAM1_RT_ADDER);
// D2域 32KB SRAM3(0x30040000) 这个空间不用管理,预留给 eth 网络使用
// D3域, SRAM4, 64KB 0x38000000
__ALIGNED(8) uint64_t *AppMallocSRAM4 = (uint64_t *)(SRAM4_RT_ADDER);
// 管理SDRAM_RT_MAX_SIZE的sdram
__ALIGNED(8) uint64_t *AppMallocSDRAM = (uint64_t *)(SDRAM_RT_ADDER );
|
|