[BUG] STM32WB55 Code Generation with CubeMX - HAL configuration
Hi,
I have some problems with the code generation in CubeMX. In the HAL_Init() are three defines checked for enabling or disabling the flash instruction cache, the flash data cache and the prefetch buffer. The default configuration says the following:
/* Configure Flash prefetch, Instruction cache, Data cache */
/* Default configuration at reset is: */
/* - Prefetch disabled */
/* - Instruction cache enabled */
/* - Data cache enabled */
#if (INSTRUCTION_CACHE_ENABLE == 0U)
__HAL_FLASH_INSTRUCTION_CACHE_DISABLE();
#endif /* INSTRUCTION_CACHE_ENABLE */
#if (DATA_CACHE_ENABLE == 0U)
__HAL_FLASH_DATA_CACHE_DISABLE();
#endif /* DATA_CACHE_ENABLE */
#if (PREFETCH_ENABLE != 0U)
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
#endif /* PREFETCH_ENABLE */I have checked this with the preconfiguration inside CubeMX. The default settings are correct. But after generation I can find an activated prefetch buffer in the HAL config file:
#define PREFETCH_ENABLE 1U
#define INSTRUCTION_CACHE_ENABLE 1U
#define DATA_CACHE_ENABLE 1USo the prefetch buffer is enabled. I cannot change this value inside the file stm32wbxx_hal_conf.h to the correct value. When I change the value to 0 nothing happens.
What can I do to disable this without uncomment the function? Is there anything to change for the project for using the correct setting after changing the value in the HAL config file?
Thanks a lot,
Ben