Quality RTOS & Embedded Software

NOTE:This is a read only archive of threads posted to the FreeRTOS support forum. Use these archive pages to search previous posts. New forum support threads can be started at the FreeRTOS forums.

FreeRTOS Support Archive

The FreeRTOS support forum can be used for active support both from Amazon Web Services and the community. In return for using our software for free, we request you play fair and do your bit to help others! Sign up for an account and receive notifications of new support topics then help where you can.

This is a read only archive of threads posted to the FreeRTOS support forum. Use these archive pages to search previous posts. New forum support threads can be started at the FreeRTOS forums.

Stop Idle task

Hello,
Our customer request to return from Freertos application but freertos
doesn’t reach the return 0 in the main function because of the fact that idle
task that still running in infinity for loop inside the following function
(static portTASK_FUNCTION( prvIdleTask, pvParameters ) after deleting the
previous task.
Is it possible to delete Idle task without impacting the application and
how to make it happen?
Thank you in advance
—
Mit freundlichen Grüßen / Best regards

Stop Idle task

There is a function that enables you to obtain a handle to the idle
task, so in theory you could delete it, but the system will just crash
if you do as that does not stop the scheduler. There is also a function
that can be used to stop the scheduler but it is implemented for very
few ports (maybe only the Windows and DOS ports where you launch from an
OS then return to an OS?) as normally there is nothing to return to.
Which port are you using? Perhaps describe the scenario you want to
achieve rather than the specifics of why you are wanting to delete the
idle task.

Stop Idle task

Hi Richard,
Thank you for your information,
We are using ARMCA5364_BIT and one of our customer request to return to uboot after running the application on target(soc), basically we have an uboot script that looks for the binary files in a specific location load and run them successively, the issue with that is after running the first binary we cannot return to uboot to run the second one because the first one has not ended yet and the IDLE task still running, therefore i was asking about the possibility to delete IDLE task may it will help us to return to uboot but unfortunately the system will crash as you mentioned before.
This is basically a brief description of our purpose.
Thank you for your support,