Monday, December 11th 2017, 10:25am UTC+1

You are not logged in.

  • Login
  • Register

VeronicaM86

Beginner

Date of registration: Sep 1st 2016

Posts: 1

1

Friday, September 2nd 2016, 10:05am

OS_Start causes OS_Error code OS_ERR_STACK

Hi,
I'm using Embos for Cortex M and Keil IDE to realize a firmware for K60FN1M0xxx15.
When program calls OS_Start function, OS_Error is called with error OS_ERR_STACK=0x78 and the K60 is reset.
if I use breakpoint in OS_Error, I see that the last called function is OS_ChangeTask_VFP().
In startup code, I defined:
Stack_Size EQU 0x00000400

Heap_Size EQU 0x00000200
I tried to increase the size of stack, but the error remains.
How can I resolve the problem?


Thanks in advance
Best regards


Veronica

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 261

2

Friday, September 2nd 2016, 10:29am

Dear Veronica,

I just checked the board support package and I can build and run the K60 start project without any problems.
The error message says a task stack overflowed but I guess in your case this is caused by something else.

Did you make any modifications to the sample application or the start project?
Which Keil MDK version do you use? I used Keil MDK V5.20.
Which evalboard do you use?

Please don't hesitate to contact us directly via our embOS support email address.
You can find the embOS support email address in the chapter "Support" in the embOS manual.

Best regards,
Til