Hi everybody ,
When I write them below in startup.s of my project, the linker report error "Error: L6218E: Undefined symbol __rt_stackheap_init (referred from startup.o)." How should I do to include C/C++ library that linker can locate the function?
.....
IMPORT __rt_stackheap_init
IMPORT __rt_lib_init
bl __rt_stackheap_init
bl __rt_lib_init
ldr r0, =main
bx r0
You need to add the relevant library to the project, so the linker has somewhere to locate the implementation of the files.
View all questions in Keil forum