Hello,
In my main.cpp program I start the BIOS and it has an idle thread. BIOS is calling the idle function successfully (I can set a breakpoint there and it will get called). The only thing I do there is to turn an LED on/off with a couple of delays in between. I'm using SysCtrlDelay for the delays. The problem is that SysCtrlDelay is not working, it is not pausing for the expected number of cycles, resulting in much shorter delays than expected.
Before starting BIOS, I use the same function to blink the same LED's a couple of times with a 500ms interval. It works fine.
Since I'm using C++ (and main.cpp), I had to decorate my idle handler with extern "C". That's the only thing that might be non-standard.
Any hints? Is there a better way to delay in the RTOS?
I'm using CCS 6.1 with TI-RTOS 2.12.01.33 and TivaWare 2.1.1.71 on a TM4C 129X.
TIA