2016-09-19 11:19 AM
I'm new to this microprocessor, and am trying to configure Timer3 with my own code as opposed to that generated by STM32CubeMx / HAL. This is mostly to learn the timer peripheral, but I may want to implement my own code at some point.
I believe I've written my code correctly, but none of the data is getting written to the registers. Is there a register or command that must be unlocked before I can access the Timer3 registers? Where in the documentation is this described?Thanks in advance for any assistance.2016-09-19 04:18 PM
Is there a register or command that must be unlocked before I can access the Timer3 registers?
Well you have to enable the peripheral clock for the synchronous logic to function.2016-09-20 01:57 AM
Hi barnett.andrew,
I recommend you that first you check and run the ready to use example existing in the Library package . You can follow the same configuration flow. For the STM32F407, you find timer example either : - Ready to use with STM32F407-discoveryat this path: STM32Cube_FW_F4_V1.13.0\Projects\STM32F4-Discovery\Examples\TIM - Ready to use with STM32F407x eval-board this path: STM32Cube_FW_F4_V1.13.0\Projects\STM324xG_EVAL\Examples\TIM As well, there is application note that gives a summerise for the main feature and use-cases of STM32 Timer : -Hannibal-