Hello,
We are trying to use Ethernet / LWIP stack and FreeRTOS in our secondary bootloader. To test if it is feasible I integrated the example code of enet_cpsw_tcpserver into the sbl_qspi code and made some changes to linker.cmd file. After the project was built, the error came up like this:
undefined
symbol
---------
_vectors_sbl
The modified version of linker.cmd file is attached as below:
--stack_size=16384
--heap_size=32768
-e_vectors_sbl /* for SBL make sure to set entry point to _vectors_sbl */
__IRQ_STACK_SIZE = 256;
__FIQ_STACK_SIZE = 256;
__SVC_STACK_SIZE = 4096;
__ABORT_STACK_SIZE = 256;
__UNDEFINED_STACK_SIZE = 256;
SECTIONS
{
.sbl_init_code: palign(8), fill=0xabcdabcd
{
*(.vectors) /* IVT is put at the beginning of the section */
. = align(8);
} load=MSRAM_VECS, run=R5F_VECS
.vectors:{} palign(8) > MSRAM_VECS
GROUP {
.text: {} palign(8)
.text.hwi: palign(8)
.text.cache: palign(8)
.text.mpu: palign(8)
.text.boot: palign(8)
.data: {} palign(8)
.rodata: {} palign(8)
} > MSRAM_0
.bss: {} palign(8) > MSRAM_0
RUN_START(__BSS_START)
RUN_END(__BSS_END)
.sysmem: {} palign(8) > MSRAM_0
.stack: {} palign(8) > MSRAM_0
GROUP {
.irqstack: {. = . + __IRQ_STACK_SIZE;} align(8)
RUN_START(__IRQ_STACK_START)
RUN_END(__IRQ_STACK_END)
.fiqstack: {. = . + __FIQ_STACK_SIZE;} align(8)
RUN_START(__FIQ_STACK_START)
RUN_END(__FIQ_STACK_END)
.svcstack: {. = . + __SVC_STACK_SIZE;} align(8)
RUN_START(__SVC_STACK_START)
RUN_END(__SVC_STACK_END)
.abortstack: {. = . + __ABORT_STACK_SIZE;} align(8)
RUN_START(__ABORT_STACK_START)
RUN_END(__ABORT_STACK_END)
.undefinedstack: {. = . + __UNDEFINED_STACK_SIZE;} align(8)
RUN_START(__UNDEFINED_STACK_START)
RUN_END(__UNDEFINED_STACK_END)
} > MSRAM_0
/* For NDK packet memory*/
.bss:ENET_CPPI_DESC (NOLOAD) {} ALIGN (128) > CPPI_DESC
.bss:ENET_DMA_PKT_MEMPOOL (NOLOAD) {} ALIGN (128) > MSRAM_0
}
MEMORY
{
R5F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000100
R5F_TCMA : ORIGIN = 0x00000100 , LENGTH = 0x00007F00
R5F_TCMB0: ORIGIN = 0x41010000 , LENGTH = 0x00008000
MSRAM_VECS: ORIGIN = 0x70002000 , LENGTH = 0x00000100
/* CPPI descriptor memory */
CPPI_DESC : ORIGIN = 0x70002100 , LENGTH = 0x00004000
MSRAM_0 : ORIGIN = 0x70006100 , LENGTH = 0x40000 - 0x4100
}
I wonder what could cause this error?
Thanks,
Wenkai