Skip to main content
frackers
Senior
January 31, 2019
Question

HAL_DSI_Read example code would help a lot!

  • January 31, 2019
  • 1 reply
  • 808 views

The header for this function is very cryptic - what, for example, is 'ParametersTable'.

All I want to do is check that my display if present by reading the ID codes (its a ILI9806E) but I get a timeout error on the read even though the page select write succeeds.

A worked example would provide me (and I'm sure many others) with the documentation required to use this capability.

This topic has been closed for replies.

1 reply

frackers
frackersAuthor
Senior
February 1, 2019

On further examination of the code I see

 /* Get the first byte */
 *((uint32_t *)Array) = (hdsi->Instance->GPDR);

but the parameter Array is a uint8_t *

HAL_StatusTypeDef HAL_DSI_Read(DSI_HandleTypeDef *hdsi,
 uint32_t ChannelNbr,
 uint8_t* Array, // <<< byte array, not uint32_t !!
 uint32_t Size,
 uint32_t Mode,
 uint32_t DCSCmd,
 uint8_t* ParametersTable)

Somehow this doesn't seem right!!