Skip to main content
GS1
Senior III
January 5, 2019
Question

ENABLE_SD_DMA_CACHE_MAINTENANCE is deactivated after Code Generation with CUBE MX V 5.0.1

  • January 5, 2019
  • 1 reply
  • 739 views

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 topic has been closed for replies.

1 reply

Vitaliy Chernobay
Senior
January 10, 2019

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