Skip to main content
Peko
Associate III
April 26, 2017
Solved

I need help

  • April 26, 2017
  • 2 replies
  • 823 views

Posted on April 26, 2017 at 10:44

 

 

 

Hi,

I am newbie in System Workshop for STM32. I tried write simple example - LED blink. It works fine.

 

 

Now I want to test the same program, but with a timer interrupt.

 

 

In file ''stm32f4xx_hal_conf.h''  I enable HAL_TIM_MODULE    #define HAL_TIM_MODULE_ENABLED

 

 

It appeared errors:

 

 

 

 

 

 

in file ''stm32f4xx_hal_tim.h''

 

 

 

in file: stm32f407xx.h

 

 

I use STM32F407-Discovery board. I use HAL_Driver ver 1.7.1.

 

 

What is wrong ?

 

 

Pekub    

 

    This topic has been closed for replies.
    Best answer by Peko
    Posted on April 26, 2017 at 12:27

    Hi,

    the problem is solved. I made wrong definition in main.c.

    Best Regards

    Peter

    2 replies

    Nesrine M_O
    Associate
    April 26, 2017
    Posted on April 26, 2017 at 12:01

    Hi

    Kubelka.Peter

    ,

    As

    newbie with System Workbench for STM32, I recommend you to start from ready example under the STM32F4 firmware package :

    • STM32Cube_FW_F4_V1.0\Projects\STM32F401-Discovery\Examples\TIM\TIM_TimeBase\SW4STM32

    -Nesrine-

    Peko
    PekoAuthorBest answer
    Associate III
    April 26, 2017
    Posted on April 26, 2017 at 12:27

    Hi,

    the problem is solved. I made wrong definition in main.c.

    Best Regards

    Peter