Skip to main content
Explorer
December 13, 2022
Solved

[STM32CUBEIDE] 1.11.0 Using STM32F407VGT6 fails to generate TIM6_DAC_IRQHandler

  • December 13, 2022
  • 3 replies
  • 1511 views

This initially an azrtos tx toggle LED test on a STM32F4Discovery board

I followed this video

MOOC - Azure RTOS workshop - 5 ThreadX lab - step1 - First thread creation - YouTube

The attached fileSTM32F4DISCO-1.10.1 works when compile with 1.10.1

After further debug with 1.11.0 it turns outs the attached STM32F4Disco-Dec2022 file crashes in HAL_INIT() because TIM6_DAC_IRQHandler() isn't generated in stm32f4xx_it.c.

0693W00000WL4d7QAD.png

    This topic has been closed for replies.
    Best answer by Alec Davis 2021

    Rebooted my original development machine, and now it generates IRQ_HANLDER as expected.

    3 replies

    Technical Moderator
    December 15, 2022

    Hello @Community member​,

    I have checked from my side and I cannot reproduce this issue.

    For that, try to open the .ioc file, regenerate code and check if TIM6_DAC_IRQHandler() is generated in stm32f4xx_it.c.

    If the problem is not solved, please share the configuration steps and try to debug, localize where the code stop and the kind of message gives.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Kaouthar

    Explorer
    December 16, 2022

    In response to the debugging and localize where it stopped, I included the image it failed just after _NVIC_IRQ_ENABLE, which through a few levels of calling was called from HAL_INIT().

    Tonight I just download the project STM32F4Disco-Dec2022.zip that I uploaded as a reference, which doesn't have "RTOS threadx" enable yet, imported it into STM32CUBEIDE, Regenereated the code and it still doesn't have TIM6_DAC_IRQHandler() in stm32f4xx_it.c and still crashes.

    Enabled "RTOS threadx" and regenerate code

    Still no TIM6_DAC_IRQHandler() in stm32f4xx_it.c and crashes in _NVIC_IRQ_ENABLE, as per image.

    Removed the software pack X-CUBE-AZRTOS-F4, regenerated.

    Still no TIM6_DAC_IRQHandler() in stm32f4xx_it.c and crashes in _NVIC_IRQ_ENABLE, as per image.

    I don't know how I got this super simple project in this state, as every time I try to reproduce in a new project it will work as expected.

    Then on another Windows PC, imported same project STM32F4Disco-Dec2022.zip that I imported into CUBEIDE 1.11.0, regenerated code, and stm32f4xx_it.c now has TIM6_DAC_IRQHandler() . ?????

    Alec Davis 2021AuthorAnswer
    Explorer
    December 18, 2022

    Rebooted my original development machine, and now it generates IRQ_HANLDER as expected.

    Technical Moderator
    December 19, 2022

    Hi @Community member​,

    Thank you for sharing the solution.

    Glad to know that the issue is fixed.

    Kaouthar