Search found 3 matches

by OmegaDryan
Fri Oct 16, 2020 4:19 pm
Forum: General discussion
Topic: Nucleo G431KB enable OPAMP and COMP
Replies: 4
Views: 2338

Re: Nucleo G431KB enable OPAMP and COMP

Simply add a hal_conf_extra.h file with: #define HAL_OPAMP_MODULE_ENABLED For ref: https://github.com/stm32duino/wiki/wiki/HAL-configuration#customize-hal-or-variant-definition That's only one step in the whole process. I used CubeMX to generate the code for the main and the msp. Then copied it to ...
by OmegaDryan
Fri Oct 16, 2020 7:46 am
Forum: General discussion
Topic: Nucleo G431KB enable OPAMP and COMP
Replies: 4
Views: 2338

Re: Nucleo G431KB enable OPAMP and COMP

I was able to make it work! In the Arduino make a new tap (create a file named "hal_conf_extra.h") and paste the following code: #if !defined(HAL_OPAMP_MODULE_DISABLED) #define HAL_OPAMP_MODULE_ENABLED #else #undef HAL_OPAMP_MODULE_ENABLED #endif The main Arduino code: OPAMP_HandleTypeDef ...
by OmegaDryan
Fri Oct 16, 2020 12:30 am
Forum: General discussion
Topic: Nucleo G431KB enable OPAMP and COMP
Replies: 4
Views: 2338

Nucleo G431KB enable OPAMP and COMP

Hi guys, Can someone explain how to enable the opamp in the G4 board? I found this wiki, and it looks like I need to create a file "variant.h" to enable the OPAMP peripheral. I really don't know where to start here. I know how to do it using CubeMX but I have never done it in Arduino. http...

Go to advanced search