Skip to main content
Associate II
December 13, 2023
Solved

code not executing

  • December 13, 2023
  • 6 replies
  • 3285 views

sir we are generated code through touchgfx(stm32f508-dk) , the display part working good as per our requirement ,but when add led toggle code in while condition in that code ,its not working , before while condition we added led on and off for 10 seconds its working .  only code in while condition not executing 

    This topic has been closed for replies.
    Best answer by kishor

    i am created thread  StartTaskLed, when  i configure led i fot error 

    ../Application/User/generated/STM32DMA.cpp:22:10: fatal error: STM32DMA.hpp: No such file or directory

     can you solve these problem i am attaching my code hear 

    6 replies

    GaetanGodart
    ST Employee
    December 13, 2023

    Hello @kishor ,

    1.
    It seems you are not using the functionalities of TouchGFX as you are using a while loop for a hardware LED.
    I guess you are placing your code in the main.c file generated by CubeMX.

    I never experienced the while loop not working.
    The best solution would be for you to share your main.c (or wherever else you put your code in) with us so that we can understand your issue. I do not have enough information to help you there.

    2.
    Did my answer to your previous post that can be found by clicking here help?

    It would be nice to keep the discussion about the same project in a single thread for clarity.

    Hope this helps.

    Don’t hesitate to give us a feedback or give more precisions and tell us if the issue is solved! :smiling_face_with_smiling_eyes:

    Gaetan GodartSoftware engineer at ST (TouchGFX)
    kishorAuthorBest answer
    Associate II
    December 13, 2023

    i am created thread  StartTaskLed, when  i configure led i fot error 

    ../Application/User/generated/STM32DMA.cpp:22:10: fatal error: STM32DMA.hpp: No such file or directory

     can you solve these problem i am attaching my code hear 

    kishorAuthor
    Associate II
    December 13, 2023

    ..