HAL_DSI_Read example code would help a lot!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-30 10:53 PM
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.
Labels:
- Labels:
-
DSI
-
STM32Cube MCU Packages
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-31 5:29 PM
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!!
