Problems with TimingDelay_Decrement

Comments

4 comments

  • Avatar
    Florian Augustin

    Second Problem is solved! Now the h-files are only listed under the main.c when i click on the plus-figure..

    But the Timing Delay thing still is a big problem... :(

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    You should go an ask ST what they're doing.  The fix you show above looks like it should work and takes the form of other main files implemented by the MCD team.

    0
    Comment actions Permalink
  • Avatar
    frank meyer

    This TimingDelay_Decrement() function is part of the SysTick example from ST, and can be found in the example subfolder of the peripheral libs. That function is called from within the SysTick interrupt. The handler routine usually resides in stm32fxxx_it.c.

    If you declare the TimingDelay variable static, as given in your post:

     static volatile uint32_t TimingDelay;
    you need to have this TimingDelay_Decrement() function in the same module, as it accesses it. This could be main.c, as it is also in the SysTick example.
    I suggest to check this example project, as the purpose of this functions is somewhat explained there.
    Nothing special otherwise, just a plain linker and visibility issue.
    0
    Comment actions Permalink
  • Avatar
    Florian Augustin

    Thank you, Frank!

    I thought i'm very clever and deleted all the stuff from the main that i don't need. But i fogot to delete the function inside the systick interrupt service routine :D

     

    0
    Comment actions Permalink

Please sign in to leave a comment.