Skip to main content
NRoss
Associate
May 8, 2022
Solved

STM32CubeMX generate "feature not supported" instead ...

  • May 8, 2022
  • 4 replies
  • 1438 views

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

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

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.

4 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
May 9, 2022

Hello @NRoss​ 

Could you please share your ioc file?

Thanks,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
NRoss
NRossAuthor
Associate
May 9, 2022

Hi Sara,

Thanks for your fast reply.

In the attachment the .ioc file.

Kind regards,

Nicola

Sara BEN HADJ YAHYA
ST Technical Moderator
May 10, 2022

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
NRoss
NRossAuthor
Associate
May 10, 2022

Yes,

this helps.

Kind regards,