With stm32duino version 2.5.0, the firmware compiles and uploads fine but the microcontrollers stops responding to any command. With version 2.4.0, the microcontrollers seems fine but performance of PowerSensor3 has not been tested. For now, the recommendation is to explicitly install version 2.3.0 of stm32duino. With arduino-cli this can be accomplished with
arduino-cli core install STMicroelectronics:stm32@2.3.0
Then proceed with make upload in the device folder as usual.