Skip to main content
Tobias Rohde
Associate
Jan 16, 2017 1:29 PM UTC
Solved

stm32l051xx.h TIM7 missing

Posted on January 16, 2017 at 14:29

Hello,

we use the STM32L051C8 MCU and include the stm32l051xx.h in version 1.7.0. (31-May-2016). We can't find any definition for timer7 peripheral. Is there a reason why it's missing? are we using the wrong header file?

Thanks in advance for a short response!

T.Rohde

    This topic has been closed for replies.
    Amel NASRI
    Amel NASRIBest answer
    ST Technical Moderator
    Jan 16, 2017 1:56 PM UTC
    Posted on January 16, 2017 at 14:56

    Hi

    Rohde.Tobias

    ‌,

    I confirm Jan's assumption: TIM7 is not available in STM32L051C8.

    In the reference manual (

    http://www.st.com/content/ccc/resource/technical/document/reference_manual/21/bd/0f/bd/1c/88/40/f0/DM00108pdf/files/DM00108pdf/jcr:content/translations/en.DM00108pdf

    ), table 'Overview of features per category', you find that TIM7 is available only in products belonging to Category 5..STM32L051x chips belong to Category 3.

    However you have TIM6 that may be used as a basic timer.

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.

    3 replies

    waclawek.jan
    Super User
    Jan 16, 2017 1:40 PM UTC
    Posted on January 16, 2017 at 14:40

    Maybe because TIM7 is not implemented in the 'L051C8?

    JW

    Amel NASRI
    Amel NASRIBest answer
    ST Technical Moderator
    Jan 16, 2017 1:56 PM UTC
    Posted on January 16, 2017 at 14:56

    Hi

    Rohde.Tobias

    ‌,

    I confirm Jan's assumption: TIM7 is not available in STM32L051C8.

    In the reference manual (

    http://www.st.com/content/ccc/resource/technical/document/reference_manual/21/bd/0f/bd/1c/88/40/f0/DM00108pdf/files/DM00108pdf/jcr:content/translations/en.DM00108pdf

    ), table 'Overview of features per category', you find that TIM7 is available only in products belonging to Category 5..STM32L051x chips belong to Category 3.

    However you have TIM6 that may be used as a basic timer.

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    Tobias Rohde
    Associate
    Jan 16, 2017 2:05 PM UTC
    Posted on January 16, 2017 at 15:05

    ok thank you all!