Skip to content

STM32H5: DAC issue when cache is enabled #2508

Closed
@fpistm

Description

@fpistm
Member

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)

Activity

added this to the 2.9.0 milestone on Sep 3, 2024
added a commit that references this issue on Sep 3, 2024
170c472
added a commit that references this issue on Sep 3, 2024
8be148c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

      Development

      Participants

      @fpistm

      Issue actions

        STM32H5: DAC issue when cache is enabled · Issue #2508 · stm32duino/Arduino_Core_STM32