cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot control the pins.

YZ_C
Associate

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?

2 REPLIES 2
SofLit
ST Employee

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.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

@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 @SofLit 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