2024-10-24 12:45 AM
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?
2024-10-24 01:18 AM
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.
2024-10-24 01:27 AM
@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: