2022-05-08 01:30 PM
The STM32CubeMX generate:
```
#define LCD_SPI_Send_DMA(rd, ln) BSP_ERROR_FEATURE_NOT_SUPPORTED
```
instead if I modify the generated DISPLAY/Target/lcd_conf.h with
`#define LCD_SPI_Send_DMA BSP_SPI1_Send_DMA`
seems work correctly.
I am using:
Is this only a STM32CubeMX bug or I can't use SPI + DMA+ Display?
Thanks for the support
Solved! Go to Solution.
2022-05-10 03:53 AM
Hello @NRoss ,
The BSP_ERROR_FEATURE_NOT_SUPPORTED can be removed by applying the right settings in SPI1 config.
I see that you used SPI1 interface for ILI9341, so you need to navigate to SPI1 configuration and enable both TX and RX DMA requests.
By re-generating the code, you will get the following lines in lcd_conf.h file.
#define LCD_SPI_Send_DMA BSP_SPI1_Send_DMA
#define LCD_SPI_Recv_DMA BSP_SPI1_Recv_DMA
#define LCD_SPI_SendRecv_DMA BSP_SPI1_SendRecv_DMA
I hope this helps :smiling_face_with_smiling_eyes:
If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)
Sara.
2022-05-09 12:38 AM
Hello @NRoss
Could you please share your ioc file?
Thanks,
Sara.
2022-05-09 10:06 AM
2022-05-10 03:53 AM
Hello @NRoss ,
The BSP_ERROR_FEATURE_NOT_SUPPORTED can be removed by applying the right settings in SPI1 config.
I see that you used SPI1 interface for ILI9341, so you need to navigate to SPI1 configuration and enable both TX and RX DMA requests.
By re-generating the code, you will get the following lines in lcd_conf.h file.
#define LCD_SPI_Send_DMA BSP_SPI1_Send_DMA
#define LCD_SPI_Recv_DMA BSP_SPI1_Recv_DMA
#define LCD_SPI_SendRecv_DMA BSP_SPI1_SendRecv_DMA
I hope this helps :smiling_face_with_smiling_eyes:
If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)
Sara.
2022-05-10 08:22 AM
Yes,
this helps.
Kind regards,