Skip to content

STM32H5: DAC issue when cache is enabled #2508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fpistm opened this issue Sep 3, 2024 · 0 comments · Fixed by #2509
Closed

STM32H5: DAC issue when cache is enabled #2508

fpistm opened this issue Sep 3, 2024 · 0 comments · Fixed by #2509
Labels
bug 🐛 Something isn't working
Milestone

Comments

@fpistm
Copy link
Member

fpistm commented Sep 3, 2024

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)

@fpistm fpistm added the bug 🐛 Something isn't working label Sep 3, 2024
@fpistm fpistm added this to the 2.9.0 milestone Sep 3, 2024
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Sep 3, 2024
Fixes stm32duino#2508

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit that referenced this issue Sep 3, 2024
Fixes #2508

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant