I am using SYS/BIOS version 6.34.2.18 on a AM3352 processor and I'm having an issue of the OS operating very slow. I start my program up which has multiple taska and it will operate correctly. I then pause the execution on the debugger and save some memory to disk and then restart the program. When I restart the program it seems to be spending nearly all of its time in the operating system. I have inserted a dummy idle task and I'm just executing a for loop incrementing a counter. I can start and stop the program and the counter barely moves even though nothing else in the program is running. I have another task which is triggered every 2 ticks (2ms) and it rarely executes.
Does anybody have any ideas about what may be happening?
Hi William,
Are you creating a timer/clock instance in your application ? If yes what period are you setting for the timer ?
If a timer is created with a very small period then the system gets frequently interrupted and if the period is too small then all tasks will be starved of CPU time.
Best,
Ashish
---------------------------------------------------------------------------------------------------------
Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.
Ashish,
In the app.cfg for the sys/bios I have setup a tickPeriod of 1000uS. This is the only timer I have running.
The program runs fine until the debugger is used to pause execution. When the program starts back up it's almost as if something has been corrupted such that the operating system constantly thinks it needs to determine which task needs to be running. As if the timer period for the tick was made real small.
Regards,
Bill
Halting/Pausing execution using the debugger should not cause any corruption. Looking back at your original post I have a question.
William Kozlowski I then pause the execution on the debugger and save some memory to disk and then restart the program.
I then pause the execution on the debugger and save some memory to disk and then restart the program.
After halting the cores, when you need to continue execution, do you hit the run button or restart button followed by run button ?
William Kozlowski the operating system constantly thinks it needs to determine which task needs to be running
the operating system constantly thinks it needs to determine which task needs to be running
Do you see the task scheduler being frequently called ? Also, can you look at the detailed Task view in ROV and maybe share a screenshot ?