Arduino Uno WiFi R2 - Multithreads

Hello everyone!

I recently purchased Arduino Uno WiFi Rev 2 and I'm new to using Arduino.
I've tested and run a few basic examples (blink, scan wifi, etc).

I was wondering if there's a way to use multi-tasks via FreeRTOS.

Thanks!

Not used FreeRTOS myself, but Google brought up lots of links to "FreeRTOS Arduino UNO".

Yes, I saw a lot of topics related FreeRTOS and Arduino UNO.
And I used the article on my board and I got this errors:
Arduino: 1.8.16 (Windows 10), Board: "Arduino Uno WiFi Rev2, ATMEGA328"
WARNING: library FreeRTOS claims to run on avr architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\tasks.c:331:3: error: conflicting types for 'TCB_t'
} TCB_t;
^~~~~
In file included from c:\users\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:677:0,
from C:\Users\Documents\Arduino\libraries\FreeRTOS\src\FreeRTOSConfig.h:32,
from C:\Users\Documents\Arduino\libraries\FreeRTOS\src\Arduino_FreeRTOS.h:59,
from C:\Users\Documents\Arduino\libraries\FreeRTOS\src\tasks.c:39:
c:\users\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\iom4809.h:1719:3: note: previous declaration of 'TCB_t' was here
} TCB_t;
^~~~~
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:53:14: error: conflicting types for 'TCB_t'
typedef void TCB_t;
^~~~~
In file included from c:\users\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:677:0,
from C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:32:
c:\users\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\iom4809.h:1719:3: note: previous declaration of 'TCB_t' was here
} TCB_t;
^~~~~
In file included from c:\users\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
from C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:32:
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c: In function 'wdt_interrupt_enable':
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:91:36: error: 'WDCE' undeclared (first use in this function); did you mean 'ADC0'?
"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
^
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:91:36: note: each undeclared identifier is reported only once for each function it appears in
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:91:58: error: 'WDE' undeclared (first use in this function); did you mean 'WDCE'?
"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
^
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:93:29: error: 'WDIF' undeclared (first use in this function); did you mean 'WDE'?
_BV(WDIF) | _BV(WDIE) | (value & 0x07)) )
^
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:93:41: error: 'WDIE' undeclared (first use in this function); did you mean 'WDIF'?
_BV(WDIF) | _BV(WDIE) | (value & 0x07)) )
^
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c: In function 'wdt_interrupt_reset_enable':
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:157:36: error: 'WDCE' undeclared (first use in this function); did you mean 'ADC0'?
"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
^
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:157:58: error: 'WDE' undeclared (first use in this function); did you mean 'WDCE'?
"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
^
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:159:29: error: 'WDIF' undeclared (first use in this function); did you mean 'WDE'?
_BV(WDIF) | _BV(WDIE) | _BV(WDE) | (value & 0x07)) )
^
C:\Users\Documents\Arduino\libraries\FreeRTOS\src\port.c:159:41: error: 'WDIE' undeclared (first use in this function); did you mean 'WDIF'?
_BV(WDIF) | _BV(WDIE) | _BV(WDE) | (value & 0x07)) )
^
exit status 1
Error compiling for board Arduino Uno WiFi Rev2.

The Uno WiFi uses a completely different processor (ATMEGA4809) than the old Uno (ATMega328).

Perhaps this would be of interest?