Skip to content

STM32H5: DAC issue when cache is enabled #2508

Closed
@fpistm

Description

@fpistm

See https://github.com/STMicroelectronics/stm32h5xx_hal_driver/blob/0de1dbf8ad03e6e466ed55d1c174656561e3240d/Src/stm32h5xx_hal_dac.c#L1349-L1371

When the ICACHE is enabled it prevents reading the PACKAGE version causing the function to failed.
More info here:
https://community.st.com/t5/stm32-mcus/how-to-avoid-a-hardfault-when-icache-is-enabled-on-the-stm32h5/ta-p/630085

Workaround is to disable it adding a file named hal_conf_extra.h with:

#define HAL_ICACHE_MODULE_DISABLED

Originally posted by @fpistm in #2383 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions