Skip to main content
Graduate
November 30, 2023
Solved

stm32f103c8 classB

  • November 30, 2023
  • 2 replies
  • 3376 views

hello,

 

I am applying the safety library provided by st company to stm32f103c8.
In the example provided, the capture function of TIM5 is connected to the LSI oscillator, but the MCU (stm32f103c8) I use does not seem to be able to connect to the LSI oscillator.
I need your advice.

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    >>Can you check my code why TIM4_IRQHandler is not working?

    You can't just invent connectivity to TIM4_CH4 and expect it to work. Or randomly cut-n-paste code from entirely different parts with different functionality and plumbing.

    To get to the RTC / LSI clock you'd need to push it out the TAMPER pin and loop it back to a TIM pin you can actually monitor.

    You could also watch the RTC count, or generate interrupts on a periodic basis.

    How is it that those who know the least about coding and the MCU get tasked with "safety" ?

    2 replies

    Super User
    November 30, 2023

    The STM32F103C8 doesn't have a TIM5, only TIM1-4.

    jihoonAuthor
    Graduate
    November 30, 2023

    hi, Guru.

    Thank you for your quick response.

    You're right.

    Stm32f103C8 has TIM1-TIM4, but any TIMx can't connect LSI oscillator.
    if The TIM1-TIM4 of stm32f103c8 can't connect LSI oscillator, The Clock start-up self(and run) test of Functional Safety can't checked.

    Super User
    November 30, 2023

    I'm not sure what your code is supposed to do, but it is correct that none of the timers can be clocked from LSI. However, RTC can be clocked from LSI and presumably can give you the same type of error checking functionality.

    Technical Moderator
    November 30, 2023

    Hello @jihoon and welcome to the ST Community :smiling_face_with_smiling_eyes:.

    As said @TDK WE don't know exactly what you want to do. So, i suggest you give us more informations about your needs.

    Best Regards.

    STTwo-32