Show current / active process list

Hey, I really like the IDE and would like to stick developing with it, but looks like it is impossible to get a list of running projects. Was able to archive this with other Eclipse/VS, but not directly with IDE. Anybody found a way todo it? Thanks!

Can you show a screen shot of what you want to see, because I don't understand.

Sorry, maybe "process" was the wrong word. Task might be more precise.

Yoiu said Projects, I think you mean Processes or perhaps Tasks. Depending on your OS you can see that, attached is a SMALL screen grab of the Mac (Unix) type, the 2nd screen grab is my Vivaldi Browser tool called Task Manager. Maybe you used Eclipse/VS or another IDE that had a tool called Tasks, I haven't seen that available here on IDE2 though


That looks like a screenshot of the serial monitor? Is that indeed the case?

Looks like the FreeRTOS task list to me. You need a running scheduler for this.
On an Uno R3 on the other hand you run pretty much bare metal.

Your use case is still unclear to me.

Which Arduino board are you using?
Why do you need a task list?

Yeah, talkin about process / task, not project. looks like auto-correction hit me had here.

What you send is a list of the tasks of your computer? I'm talking about the task running on the board / Arduino.

Hey, I'm using a Arduino Mega 2560 board. There are different reason for why I need the Task list. On one hand I wanna make sure no process/task is running which I don't need, like Wifi -> to save energy (running on battery). On the other hand I will start separate tasks myself, so I can check / track / debug them.

The picture is from the internet, to show what I'm talking about, didn't realize auto-correcting made my message ambiguous. Sorry about that.

The picture is from the internet, to show what I'm talking about, didn't realize auto-correcting made my message ambiguous. Sorry about that.

I think all Arduino 8-bit CPUs are running bare metal.

As a result there are no Tasks.
Only interrupts like for the serial interface or millis().

Hi @Recy21. As already mentioned by @Rintin, the table you shared is produced by the vTaskList function of FreeRTOS:

https://www.freertos.org/Documentation/02-Kernel/04-API-references/03-Task-utilities/00-Task-utilities#vtasklist

So if you want information like this, then simply use that function in your FreeRTOS-based sketches, and then use Serial.print to print the data to the board's serial port. You will then see the table in the Arduino IDE Serial Monitor.

There is an implementation of FreeRTOS for AVR boards:

I don't personally have any experience with using it, but I'm sure some of the other forum members are knowledgeable in this subject area and will be able to provide @Recy21 with assistance in using the library.

@Recy21 if you are using that library, you should note the documentation for its vTaskList function:

I have never heard or seen multi tasks running on a MCU. I know it can be done on some though.

I'm using this, it's not working in IDE for me. In Eclipse/VS it is. So I was hoping some have exp in make it running on IDE too. Or point me to another way of doing it, which was the main reason not mention it in the first message, so no init bios exists.

Will share some code in the evening, when I'm home to show the issue / pain.

Well, looks like I was using an old version of FreeRTOS, doesn't have the previous issues with newest version, but now the pure include causing memory? issues :confused:

#include <Arduino_FreeRTOS.h> // 'the INCLUDE'

int count = 0;

void setup()
{  
    Serial.begin(9600);
    while (!Serial);
    Serial.write("\nStarted\n");
    count = 0;
}

void loop()
{
    Serial.write("Loop '");
    Serial.print((int)(++count));
    Serial.write("'\n");

    Serial.write("**********************************\n");
    Serial.write("**********************************\n");

    delay(1000);
}

Output without the INCLUDE:

Started
Loop '1'
**********************************
**********************************
Loop '2'
**********************************
**********************************
Loop '3'
**********************************
**********************************
Loop '4'
**********************************
**********************************
Loop '5'
**********************************
**********************************

Output with INCLUDE:

Started
Loop '1'
******%�*W�ѕ�)Loop '1'
*****�%�*W�ѕ�)Loop '1'
*******
Started
Loop '1'
******%�*W�ѕ�)Loop '1'
*****�%�*W�ѕ�)Loop '1'
*******
Started
Loop '1'
******%�*W�ѕ�)Loop '1'
*****�%�*W�ѕ�)Loop '1'
*******

Output with INCLUDE and 115200 baud:

Started
Loop '1'
********��
Started
Loop '1'
********��
Started
Loop '1'
********��

@Recy21 has created a new topic dedicated to the subject of the serial data corruption caused by the use of the "FreeRTOS" library: