2016-03-21 10:34 AM
Hey there guys.
Im trying to launch the OS at my brand new STM32F100 discovery (http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/PF250863?sc=stm32-discovery) I'm handling some difficulties from beggining, can anyone lead me through this? Im trying to compile the code, but it throws error , and dont show from what line can it possibly be. I also tryied the code from examples with two tasks, but still all i can get is the error : .\Objects\Projektorium no 1.axf: Error: L6218E: Undefined symbol os_error (referred from rt_system.o).//---------Basic Libraries---------------
#include <
stdio.h
>
//---------Custom Libraries--------------
#include ''gpio_config.h''
#include ''led_control.h''
#include ''stm32f10x.h''
#include ''RTL.h''
OS_TID STARTUP, HB;
__task void startup (void);
__task void heart_beat (void);
__task void startup (void) {
STARTUP = os_tsk_self();
for(;;) {
os_tsk_create(heart_beat, 1);
os_tsk_delete_self();
}
}
__task void heart_beat(void) {
HB = os_tsk_self();
for(;;) {
Status_led_blinker();
}
}
int main(void)
{
GPIO_config();
os_sys_init(startup);
}
Can someone guide me through please. I wasnt able to find anything near to this case.
Thanks in advance
#rtos-rtx-os_error #know-your-tools
2016-03-21 02:16 PM
This doesn't really sound like an STM32-specific error, so maybe you want look for help at the OS's vendor.
JW2016-03-22 02:07 AM
> .\Objects\Projektorium no 1.axf: Error: L6218E: Undefined symbol os_error (referred from rt_system.o).
This is a linker error (L6218E:), and tells you that an object is missing. Somewhere in
rt_system.c
, a variable or functionos_error
is accessed, and probably defined asextern
. Seems you application/example is incomplete.