2024-07-23 04:19 AM - edited 2024-07-23 04:22 AM
Hi,
I'm developping on an Arduino OPTA (STM32H74x) Portenta H7 and I want to use the high-resolution timer for driving some interrupts-based actions, actually using only the master hr-timer (no output).
>> Problem: The code doesn't want to fire any interrupts aka the HRTIM_MASTER_IT_MREP or the HRTIM_MASTER_IT_MUPD.
I used STM32CubeMX freshly downloaded for generating the code body.
HAL and STM32 Driver are already installed into the Arduino IDE, so the code compile without problems.
Anyone could suggest me some clues, please ?
Documents and ressources:
AN4539 - Application note - HRTIM cookbook - https://www.st.com/resource/en/application_note/an4539-hrtim-cookbook-stmicroelectronics.pdf
The code is attached below.
Thx
2024-07-24 06:18 AM
May be I can try to check if there is no missing elements into HAL_Init() or HAL_MspInit().