Resolved! any idea how to connect magnetometer LIS2MDLTR made by ST ?
here is the code I am trying uint8_t whoami_reg[1];whoami_reg[0] = 0x4F | 0x80; // read commanduint8_t whoami_val[1];whoami_val[0] = 0; HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_RESET); // CS lowHAL_SPI_Transmit(&hspi1, whoami_reg, 1, HAL_MAX_DEL...