Posted on October 19, 2014 at 00:56
Hi,
I'm experimenting with an ultrasonic range finder (HC-SR04 for info).
In order to generate a measurement from the device, the mcu must generate 1 pulse of +/-10us.
My idea is to set a GPIO...
Posted on March 12, 2015 at 01:29
What worked for me was : in the stm32f4xx_hal_msp.c
In HAL_I2C_Init() function, put the__I2Cx_CLK_ENABLE(); macro after GPIO initialisation.
void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
{
GPIO_Init...
Posted on October 30, 2014 at 16:04Well you are absolutely right, I just happened to forgot to copy the delay of 1sec at the end of the while loop which gives plenty of time for the interrupt to complete.
Posted on October 28, 2014 at 11:23Hi,Actually, I can blink pretty fast ! ;)The reason I know I have a pulse is because I receive a (correct) distance reading. This means the device receives the pulse.I do clear the counter, it is the 1st instructio...