|
一,加载文件内容如下
LR_IROM1 0x08000000 0x00200000 { ; load region size_region
ER_IROM1 0x08000000 0x00200000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00020000 { ; RW data - 128KB DTCM
.ANY (+RW +ZI)
}
RW_IRAM2 0x24000000 0x00080000 { ; RW data - 512KB AXI SRAM
*(.RAM_D1)
}
RW_IRAM3 0x30000000 0x00048000 { ; RW data - 128KB SRAM1(0x30000000) + 128KB SRAM2(0x3002 0000) + 32KB SRAM3(0x30040000)
*(.RAM_D2)
}
RW_IRAM4 0x38000000 0x00010000 { ; RW data - 64KB SRAM4(0x38000000)
*(.RAM_D3)
}
LR_ROM1 0x90000000 0x02000000 {
ER_ROM1 0x90000000 0x02000000 { ; load address = execution address
WeightMachine_resources.o (+RO)
}
}
二,现在有几个变化要单独定论到别区域的内存中,定义如下
#define BUF_MAX 5120
__attribute__((section (".RAM_D2"))) uint8_t gEspBuf[BUF_MAX];
ring_buf_t Esp32_Ring;
static ProtocolHead_type ProtocolHead;
static AnalysisRunStaust_type AnalysisRunStaust;
#define ERROR_CODE 0xffff
#define MAX_PROTOCOL_LENGTH BUF_MAX
#define CMD_DATA_BUF_SIZE 6*1024
__attribute__((section (".RAM_D2"))) uint8_t Receive_buffer[CMD_DATA_BUF_SIZE];
static Device_RequestInfor DeviceRequestInfor;
static Server_RespInfor ServerRespInfor;
三,用的芯片是STM32H759XB,工程用的开发板综合DEMO,启动文件是startup_stm32h743xx.s
现在编译出现当前的问题
.\stm32-v7.sct(29): error: L6231E: Missing module selector.
看网上查说--要更换启动文件(startup_stm32h743xx.s)。
各位大佬--你们什么斛决当前的问题--谢谢
|
|