Lukas W
Lukas W
Even easier would be this solution: https://github.com/IvDm/Z-probe-on-smd-resistors-2512
I have tested it on Arduino IDE and PIO and it does not work. on Arduino i get: `/Users/lukas/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.2.1-1.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: libraries/Arduino-FOC/current_sense/hardware_specific/stm32g4_mcu.cpp.o: in function `_configureOPAMP(OPAMP_HandleTypeDef*, OPAMP_TypeDef*)': stm32g4_mcu.cpp:(.text._Z15_configureOPAMPP19OPAMP_HandleTypeDefP13OPAMP_TypeDef+0x22): undefined reference to `HAL_OPAMP_Init' /Users/lukas/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/10.2.1-1.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld:...
Yes, i used the dev branch and did a clean build. I managed to get it work with PIO by using ` -D HAL_ADC_MODULE_ONLY -D HAL_OPAMP_MODULE_ENABLED` as additional Buildflag