I'm trying to get the VL53L5CX-SATEL to talk to a microcontroller.The lines are connected as followsINTFloatingI2C_RST22K pull downSDAMCU SDA Pin with 2.2K pull up to 3.3vSCLMCU SCL Pin with 2.2K pull up to 3.3vLPn22K pull up to IOVDD (3.3V)PWREN22K...
I have configured PA2 as USART1 TX in STM32CubeMX, the code it generates looks correct:void MX_USART1_UART_Init(void)
{
/* USER CODE BEGIN USART1_Init 0 */
/* USER CODE END USART1_Init 0 */
LL_USART_InitTypeDef USART_InitStruct = {0};
...
OK, the I2C driver in the MCU was shifting the address left by 1 so the address was being sent as 0xA4 as seen in the trace. With the address corrected it works. Thanks all.
Sorry, I hit send too soon. The code for initiating a UART transmit is this LL_DMA_SetDataLength(DMA1, LL_DMA_CHANNEL_2, 4);
LL_DMA_SetMemoryAddress(DMA1, LL_DMA_CHANNEL_2, (uint32)uart_tx_buffer);
LL_DMA_EnableChannel(DMA1, LL_DMA_CHANNEL...