Skip to main content
Visitor II
October 24, 2024
Question

Cannot control the pins.

  • October 24, 2024
  • 2 replies
  • 653 views

When flashing the program, CubeIDE shows "Successful", but functions are not realized. We have checked the connection between PC, STM32, DAC(AD5791) and power supply is correct, but the LDAC pin of DAC keeps showing "high" and the pin on STM32, D1, which is defined as output to send messages to DAC keeps showing low when we measure the voltage. Then we simlify the code to achieve some easy functions like lighting one of the LEDs, but still failed. Since the model of all the functions are generated by CubeIDE itself, we think there is nothing wrong with the contens and logics of code. Maybe something wrong with the settings of IDE or hardwares?

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    October 24, 2024

    Hello @YZ_C and welcome to the community,

    Need to elaborate more about your application and your issue. 

    Are you using ST or custom board? what H7 part number are you using.

    Please review the tips on posting.

    thank you.

     

    Super User
    October 24, 2024

    @YZ_C wrote:

    When flashing the program, CubeIDE shows "Successful", but functions are not realized. ?


    So have you used the debugger to see what's actually happening inside the chip?

     


    @YZ_C wrote:

    Since the model of all the functions are generated by CubeIDE itself, we think there is nothing wrong with the contens and logics of code. 


    As with any tool, it can only work with the input you provide to it - it cannot tell if that is correct.

    As @mƎALLEm said, you need to give full details of your hardware setup - schematics, etc, for any custom or non-ST parts:

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228