cancel
Showing results for 
Search instead for 
Did you mean: 

ENABLE_SD_DMA_CACHE_MAINTENANCE is deactivated after Code Generation with CUBE MX V 5.0.1

GS1
Senior III

Note on a specific code creation problem:

I use CubeMX for a project with STM32H743 and SD card interface with FatFS. When creating code the sd_diskio.c source has the following entry:

/* USER CODE BEGIN enableSDDmaCacheMaintenance */

/* #define ENABLE_SD_DMA_CACHE_MAINTENANCE 1 */

/* USER CODE BEGIN enableSDDmaCacheMaintenance */

  1. After uncommenting "#define ENABLE_SD_DMA_CACHE_MAINTENANCE" the definition is commented again after a new code generation with STM32CubeMX. So I have to place the define in another place to have it active after a new Code Generation.
  2. The USER CODE BEGIN section has no USER CODE END entry. Instead another BEGIN with the same name is present (see above).

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1

Probably it is bug of CubeMX - last BEGIN it is END