STM32L412: can't toggle PD2 on a custom board
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-13 2:52 AM - last edited on ‎2024-06-13 3:12 AM by mƎALLEm
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.
- Labels:
-
GPIO-EXTI
-
STM32L4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-13 9: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-13 9:11 AM
As I said need to check SB16 and SB18 solder bridges.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-13 9:13 AM
Have a look on this. PD2 is at 54th pin. I think you have selected some different series. Am using STM32L412RBT6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-13 9:19 AM - edited ‎2024-06-13 9: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-13 9:21 AM
Yeah sure. I will check in the tomorrow morning and will let you know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-16 10:48 PM
Hello @mÆŽALLEm ,
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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 ...) :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-16 11:19 PM
Yeah Sure

- « Previous
- Next »