2024-06-13 02:52 AM - last edited on 2024-06-13 03:12 AM by SofLit
Hello,
Am working on STM32L412RBT6.
We made a custom PCB for our product and Am trying to PD2 as digital output as toggle function.
I can't able to find any high output at PD2. The pin PD2 is always remains low.
Please help me on this
Solved! Go to Solution.
2024-06-13 09:10 AM
Yes i saw that. I have tried by changing the jumper position and even i have tried by removing both the jumpers. While removing both the jumpers, i probed at controller pin.
2024-06-13 09:11 AM
As I said need to check SB16 and SB18 solder bridges.
2024-06-13 09:13 AM
Have a look on this. PD2 is at 54th pin. I think you have selected some different series. Am using STM32L412RBT6
2024-06-13 09:19 AM - edited 2024-06-13 09:21 AM
No I didn't select other series, in my project pin 54 is well PD2, so please check the zip file attached and test the project and don't forget to check the status of SB16/SB18.
2024-06-13 09:21 AM
Yeah sure. I will check in the tomorrow morning and will let you know.
2024-06-13 10:54 AM
Pin 54 is either PB3 or PD2, depending on which particular model of STM32L412 are you using - the suffix is important.
So, post a photo of the chip you are using.
Also, for testing, stop execution in debugger, and toggle given GPIOx_ODR pin manually directly in the debugger (of course after checking that the respective GPIOx_MODER is set properly for GPIOx Out).
JW
2024-06-16 10:48 PM
Hello @SofLit ,
I tried to test your code. But i can't able to open your MX project because am using latest version.
And tried to debug the code from CubeIDE, but it is giving errors. Am uploading my code here, that contains only PD2 toggle function. Can you please check and let me know?
2024-06-16 10:58 PM
Yes exactly @waclawek.jan . I found that and i tried to toggle PB3 pin, it is working fine and i can able to see the pulses at 54th pin. So finally our ordered part is wrong.
2024-06-16 11:18 PM - edited 2024-06-16 11:21 PM
So look at your chip, to see, what you have:
with P or not ? (you should find the P ...)
2024-06-16 11:19 PM
Yeah Sure