nlesc-recruit / PowerSensor3

PowerSensor is a low-cost, custom-built device that measures the instantaneous power consumption of GPUs and other devices at a high time resolution.
https://powersensor3.readthedocs.io/
Apache License 2.0
8 stars 0 forks source link

Firmware is non-functional with stm32duino 2.5.0 #125

Open loostrum opened 1 year ago

loostrum commented 1 year ago

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.

loostrum commented 1 year ago

The only relevant major difference between stm32duino versions 2.4 and 2.5 seems to be a change from gcc-10 to gcc-12, see https://github.com/stm32duino/Arduino_Core_STM32/releases

The issue is related to the display, with make upload FLAGS=-DNODISPLAY the microcontroller does not hang