Skip to main content
liraz_abramovsky
Associate
March 17, 2025
Question

DTS STM32H5

I created and installed the dts through the IDE according to st's explanation video.
I work with VISUAL STUDIO

i enabled the dts in my project.
I copied the files
stm32h5xx_hal_dts.h
and stm32h5xx_hal_dts.c
I'm running the DTS
And it falls on 
 
/* Check ramp coefficient */
if (RAMPVALR == 0UL)
{
return HAL_ERROR;
}

i see that RAMPVALR is zero. do you have an idea what i am missing?

liraz_abramovsky_0-1742198692256.png

so, the State is stack on the HAL_DTS_STATE_BUSY

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
March 17, 2025

Check that peripheral clock for the device is enabled on the APB/AHB

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
liraz_abramovsky
Associate
March 17, 2025

In which file do you enable the peripheral clock?

Tesla DeLorean
Guru
March 17, 2025

Usually an RCC function called from main.c or your stm32xyz_msp.c

 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..