Question
STM32469I-EVAL DSI read
Posted on November 11, 2016 at 21:25
Hello,
I am trying to test the DSI HAL but am having trouble making the read function work on the LCD screen included in the kit.Here is my attempt to execute a get_address_mode request.HAL_StatusTypeDef status = HAL_DSI_Read(&hdsi_eval, (uint32_t) 0, read, 1, DSI_DCS_SHORT_PKT_READ, 0x0BU, 0x0U); if(status==HAL_OK){ printf(''Read 0x0B: 0x%x\r\n'', read[0]); } else if(status == HAL_TIMEOUT){ printf(''HAL Timeout\r\n''); } else{ printf(''HAL Error\r\n''); }According to the DSI spec, I can do this command at any point, whether the device is sleeping or not. I've made sure to do it before the default code puts the LCD in write to GRAM mode and always get a timeout.Has anyone gotten the DSI read code to work? #stm32469i-eval #dsi