1. Forum
  2. Website
  3. Blog
  4. KnowledgeBase
  • Login or register
  • Search
Everywhere
  • Everywhere
  • Articles
  • Pages
  • Forum
  • More Options
  1. Dashboard
  2. Members

SEGGER - Martin Administrator

  • Male
  • Member since July 1, 2014
Posts
80
Points
400
Profile Hits
97,361
  • Posts
  • Threads
  • Report User Profile
  • Wall
  • Recent Activity
  • Reactions
  • About Me
fiopel
October 15, 2018 at 10:40 AM
  • Report Content

Hello Martin SEGGER

I have a problem with the product embOS of SEGGER.

Description error:
The OS_Start() function does not work. When I go through main() with the IAR debugger step by step, the debugger gets stuck in the OS_Start() function.

I copied the code from the Manual Real-Time Operating System User Guide & Reference Manual from SEGGER page 40. I suppose, that the code in this manual is working.

Question:
Do you have an explanation why the debugger gets stuck in the OS_Start() function?

I have a ScreenShoot. But I don't know, how I can add it to this forum.

Used HW: EFM32GG11 Giant Gecko Starter Kit

Greetings
Fiorenzo Peloso

Fiorenzo.Peloso@altran.com

Altran AG
Zürich, Switzerland

Code:

#include "RTOS.h"

static OS_STACKPTR int StackHP[128], StackLP[128]; // Task stacks
static OS_TASK TCBHP, TCBLP; // Task control blocks

static void HPTask(void) {
while (1) {
OS_TASK_Delay(50);
}
}

static void LPTask(void) {
while (1) {
OS_TASK_Delay(200);
}
}

/*********************************************************************
*
* main()
*/
int main(void) {
OS_Init(); // Initialize embOS
OS_InitHW(); // Initialize required hardware
OS_TASK_CREATE(&TCBHP, "HP Task", 100, HPTask, StackHP);
OS_TASK_CREATE(&TCBLP, "LP Task", 50, LPTask, StackLP);
OS_Start(); // Start embOS
return 0;
}

SEGGER - Martin
October 15, 2018 at 5:08 PM
  • Report Content

Hi Fiorenzo,

Thank you for your inquiry.
I will contact you via email in a few minutes.

Best regards,
Martin

SEGGER - Martin’s Followers 2

  1. Privacy Policy
  2. Legal Notice