cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 RTOS os_error

e239955
Associate II
Posted on March 21, 2016 at 18:34

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
2 REPLIES 2
Posted on March 21, 2016 at 22:16

This doesn't really sound like an STM32-specific error, so maybe you want look for help at the OS's vendor.

JW
AvaTar
Lead
Posted on March 22, 2016 at 10:07

> .\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 function

os_error

is accessed, and probably defined as

extern

.

Seems you application/example is incomplete.