This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone,
I am having a curious issue with setting up FreeRTOS on the RM46L852 HDK board where the timing seems completely off for roughly a minute after startup. A quick rundown of my environment:
IAR EWARM with a JLINK debugger
The RM46L852 HDK board
Halcogen 4.02.00
The problem I am having is that I have setup a simple task and am starting a single timer but the timer does not start for about a minute. In the timer I increment a counter, in the task I check the counter and use the state of it to toggle an LED. Simple enough. The code behaves strangely though, on startup (after starting the scheduler) the task (NOT the timer callback) executes thousands of times faster than it should be (it effectively ignores the wake time). The timer callback does not execute at all. However, after about 60 seconds (I am doing nothing during this time except letting the code execute) the timer callback starts executing (with the expected timebase) and the task also begins executing with the expected timebase (10 times a second (100ticks) instead of what appears to be constant).
The strangest part about the whole thing is that I do not understand why after about a minute everything suddenly works as expected. If anyone can shed some light on this that would be appreciated, I feel like I must be missing something obvious.
Regards,
Jonathan
Jonathan,
I remember a problem using timer in FreeRtos.
Can you have a look to this thread?
Problem with HALCoGen FreeRTOS project - Arm-based microcontrollers forum - Arm-based microcontrollers...
Also, if you can share your project, I can have a look.
Please let me know.