I use LSM9DS1 with STM32L433 and get strange data.Initialization code:HAL_GPIO_WritePin(CS_A_G_GPIO_Port, CS_A_G_Pin, GPIO_PIN_RESET);
address = CTRL_REG4;
data = 0x38; //0b00111000
HAL_SPI_Transmit(&hspi1, &address, sizeof(address), 0x1000)...
Posted on June 03, 2018 at 19:44Hello. I am developing the device on STM32L433 with the following logic of operation:1) Pressed the button - the sensors are reading (SPI, I2C), data from them are written to the memory card via SDIO + FatFS2) Pressed...
I read Lo and Hi bytes and convert it to int16:HAL_SPI_Receive(&hspi1, &data_temp[0], sizeof(data_temp[0]), 0x1000);
HAL_SPI_Receive(&hspi1, &data_temp[1], sizeof(data_temp[1]), 0x1000);
gyro_temp[0] = (int16_t) (((int16_t)data_temp[1] << 8) | data_t...