stm32f0xx_irq_problem

Sysprogs forums Forums VisualGDB stm32f0xx_irq_problem

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #956
    alireza.roozitalab
    Participant

    hello every one.
    i want to use systick interrupt .i active the interrupt by use
    (SysTick_Config(SystemCoreClock / 1000)

    but it never go to function
    void SysTick_Handler(void)
    {
    }

    i tried timer and … interrupts and but they dont work too

    alireza roozitalab

    #3506
    support
    Keymaster

    Hi,

    Is your handler function defined in a C++ file? If yes, it needs to be surrounded by extern “C”:

    
    extern "C" void SysTick_Handler()
    {
    //...
    }
    
    #3504
    alireza.roozitalab
    Participant

    thanks for your reply

    i readed this in irq example before in this lilnk

    http://visualgdb.com/tutorials/arm/stm32/timers/

    i tried extern “C” or compile in c file but the problem not fixed

    i understood that this problem is just in debug state when i stop debugging and reset the micro the irq happened and project work correctly
    i tried the same project with stm32f407 and ast32f107 and they worked correctly even in debugging state
    best regards

    alireza roozitalab

    #3507
    alireza.roozitalab
    Participant

    i fixed it with open ocd

    i think your texane st-link has many problems with cortexm-0 st

    i cant program and debug stm32f07 with that
    and i cant use irq with other cortexm0 of stm

    but every thing is ok with open ocd

    thanks
    alireza roozitalab

    #3505
    support
    Keymaster

    Hi,

    Thanks for letting us know. The texane/st-link tool is not maintained by us, it’s an open-source tool (https://github.com/texane/stlink) that we simply compile and ship as a separate package. Feel free to submit a bugreport on the tool bugtracker.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.