Page 1 of 1

Start NUCLEO-G431KB

Posted: Tue Apr 07, 2020 8:22 pm
by alex---1967
Hello everybody!
I purchased NUCLEO-G431KB.
Arduino IDE fully supports this board.
But I would like this product to work faster.
In particular, we would like to increase the speed of the ADC. Is there any easy way to do this?
In the settings, there are compilation options "fast", "faster", "fastest", but these settings do not change much...
I tried installing Keil, IAR, STM32CubeIDE, but it requires 64-bit OS and so on..
I installed STM32CubeMX, but it swears on 32-bit JAVA and does not guarantee normal operation...

Re: Start NUCLEO-G431KB

Posted: Wed May 13, 2020 3:08 pm
by fpiSTM
Well, the analogRead is really not efficient as it doing init, calib, read and deinit each time it is call.
It is planned to provide an STM32ADC library to better mange it anyway I don't knwo when it will be available.
If you want go faster then you will have to implement your own ADC read.
I've port an STM32Cube example as an example here for the STM32F103:
viewtopic.php?f=41&t=110

You can try to do the same.