7 years, 2 months ago.

EVK-ODIN-W2 own mbedOS Programm and the hardfault

Hello,

im using the IAR 7.8 to write and debug a program for the Odin W2 (the problems are the same with the mbed online compiler). The mbedOS Version is the newest one the CLI can get.

The blinky programm is running without errors.

At first I wanted to read the MAC Addresses out of the OTP and send them over the UART. To read the OTP the doku says that the driver OS must be initiated and started (cbMAIN_initOS() and cbMAIN_startOS() from the cb_main.h). But execeuting the function cbMAIN_initOS() leads to a hardfault of the Cortex-M4 at the mbedOS kernel (svcKernelStart()).

If i execetur cbMAIN_startOS() withaout calling cbMAIN_initOS() before then i get a "Semaphore 200065d8 error -4". Therefore i think I have to call cbMAIN_startOS() myself.

Is there any lead what goes wrong?

This is my code so far: /media/uploads/bogusss/main.cpp

Be the first to answer this question.