cancel
Showing results for 
Search instead for 
Did you mean: 

Timer 2 of STM32L496ZG is not working as counter to count external clock source. Please send updated datasheet of STM32L496zgtbu .Please Find attached details of configuration.

Namita
Associate II

we are using STM32L496ZG NUCLEO Board for development .Timer2 channel 3 (PA2) is Configure for counting.

5 REPLIES 5

You appear to set TIM2 to be clocked from TIM2_CH2, yet you configure pin PA2 which is TIM2_CH3.

0693W00000LxS9DQAV.pngIf in doubts, read out content of TIM2 and relevant GPIO registers, and check/post.

Also check, if on Nucleo board the selected mcu pin is connected to the header pin you may be using.

JW

I connect external clock source at Timer2 channel 3 which is pin PA2 and same pin is configured in above details.

I don't use CubeMX, but this

0693W00000LxUXHQA3.png 

in my opinion indicates, that input for clock comes from timer's CH2.

Also, there's no way you can clock from CH3, as input to the slave-mode controller (which determines what is the clock to the timer's counter) can come only from CH1 or CH2.

When in doubts, read out the TIM registers content and check/post.

JW

Thank you @Community member​ ​.It's working now.

Namita
Associate II

AT24C256 Is it compatible with stm32l496zg Device in terms of speed ?we are getting Ack failure while communication with EEPROM.