cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX generate "feature not supported" instead ...

NRoss
Associate II

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:

  • Nucleo WB55RG
  • GFX01M1
  • STM32CubeIDE 1.9
  • X Cube Display 2.1.0 (in the package 2.0.0 was correctly defined)

Is this only a STM32CubeMX bug or I can't use SPI + DMA+ Display?

Thanks for the support

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

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.

0693W00000NpgzUQAR.pngBy 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.

View solution in original post

4 REPLIES 4
Sara BEN HADJ YAHYA
ST Employee

Hello @NRoss​ 

Could you please share your ioc file?

Thanks,

Sara.

NRoss
Associate II

Hi Sara,

Thanks for your fast reply.

In the attachment the .ioc file.

Kind regards,

Nicola

Sara BEN HADJ YAHYA
ST Employee

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.

0693W00000NpgzUQAR.pngBy 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.

Yes,

this helps.

Kind regards,