参照网上帖子移植LWIP,网口还是没有调通,网上来求助,下边代码里attribute((section(“.RxDecripSection”)))),这个section需要在链接脚本里定义吗?该怎么写呢?我对链接脚本不了解,用的是rtthread-stdio编译。
ETHDMADescTypeDef DMARxDscrTab[ETHRXDESCCNT] attribute((section(“.RxDecripSection”))); / Ethernet Rx DMA Descriptors /
ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT] __attribute((section(“.TxDecripSection”))); / Ethernet Tx DMA Descriptors /
uint8_t Rx_Buff[ETH_RX_DESC_CNT][ETH_RX_BUFFER_SIZE] __attribute((section(“.RxArraySection”))); / Ethernet Receive Buffers /
/*
/ Program Entry, set to mark it as “used” and avoid gc /
MEMORY
{
ROM (rx) : ORIGIN =0x8000000,LENGTH =2048k
RAM (rw) : ORIGIN =0x24000000,LENGTH =512k
}
ENTRY(Reset_Handler)
_system_stack_size = 0x200;
SECTIONS
{
.text :
{
. = ALIGN(4);
_stext = .;
KEEP((.isr_vector)) / Startup code */
}