Lvgl on Portenta example

Hi Everyone. I'm trying to run the lvgl example from the Arduino website, but I'm getting the following compilation errors.

Arduino: 1.8.13 (Windows 10), TD: 1.53, Board: "Arduino Portenta H7 (M7 core)"

In file included from C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\cores\arduino/Arduino.h:27:0,

             from C:\Users\Dave\Documents\Arduino\libraries\lvgl\src\lv_hal\lv_hal_tick.c:13:

C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\variants\PORTENTA_H7_M7/pinmode_arduino.h:70:6: error: conflicting types for 'pinMode'

void pinMode(pin_size_t pinNumber, PinMode pinMode);

  ^~~~~~~

In file included from C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\variants\PORTENTA_H7_M7/pinmode_arduino.h:30:0,

             from C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\cores\arduino/Arduino.h:27,

             from C:\Users\Dave\Documents\Arduino\libraries\lvgl\src\lv_hal\lv_hal_tick.c:13:

C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\cores\arduino/api/Common.h:94:6: note: previous declaration of 'pinMode' was here

void pinMode(pin_size_t pinNumber, PinMode pinMode);

  ^~~~~~~

In file included from C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\cores\arduino/macros.h:28:0,

             from C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\variants\PORTENTA_H7_M7/pins_arduino.h:2,

             from C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\cores\arduino/Arduino.h:79,

             from C:\Users\Dave\Documents\Arduino\libraries\lvgl\src\lv_hal\lv_hal_tick.c:13:

C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\2.1.0\cores\arduino/mbed/platform/include/platform/FileHandle.h:22:10: fatal error: cstdio: No such file or directory

#include

      ^~~~~~~~

compilation terminated.

exit status 1

Error compiling for board Arduino Portenta H7 (M7 core).

I've tried the depreciated Portenta core, and lvgl v7.3.0 (as in the tutorial), but same errors. Does anyone know if I'm doing something obviously wrong before I start digging around in the lvgl source files? Thank you