Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

XMC™ Forum Discussions

Dirk
Employee
Employee
Hello,

i'm getting frustrated 😞
I'll try to get the UART002_EXAMPLE_XMC13 running with the RTOS. But i got the problem during runtime. The RTOS runs in a error state.. with "OS_ERR_STK_OVF"

As described here without RTOS
here
This is working fine. I would like to say the UART_Simple from the website is no problem

I stuck on

status_t UART002_WaitForCompletion
(
const UART002_LocalStructType* Config,
time_t Timeout
)
{
//[....]
DBG002_FUNCTION_ENTRY(APP_GID,UART002_FUN_ENTRY);
/* Wait for completion of do-that */
//--> here the RTX runs in failure <-------
Event = osSignalWait(Config->SignalId, Timeout);

if(Event.status == osEventTimeout)


and then the program ended up in "RTX_Conf_CM.c"

void os_error (uint32_t err_code) {
/* This function is called when a runtime error is detected. Parameter */
/* 'err_code' holds the runtime error code (defined in RTL.H). */

for (;;) {
/* HERE: include optional code to be executed on runtime error. */
}


341.attach

Somebody who knows something? Please help.
0 Likes
1 Reply
Dirk
Employee
Employee
Hello,

i found my problem. 🙂
i have to set the compiler optimization to >0, after that the cpu was running like a charm,

Anyway could me somebody tell good compiler options for gcc for arm?
0 Likes