intelligent-agent / Refactor

Linux distro for 3D-printers
https://wiki.iagent.no/wiki/Refactor
GNU Affero General Public License v3.0
28 stars 19 forks source link

stm32flash uses the deprecated /sys/class/gpio interface #296

Closed eliasbakken closed 2 years ago

eliasbakken commented 2 years ago

The program we use to flash the STM32 on Recore is using a deprecated interface via /sys/class/gpio. A workaround is to let gpioset toggle the pins instead of stm32flash In the file /usr/local/bin/flash-stm32 change stm32flash -w ${STM32_BINARY} -v -i -196,196 -g 0 ${FLASH_DEVICE} to stm32flash -w ${STM32_BINARY} -v -g 0 ${FLASH_DEVICE} and then add gpioset 1 196=1 before that.

eliasbakken commented 2 years ago

Merged in main