locked out of my stm32g431.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 1:52 AM
made my own board with stm32g431kb and accidentally disabled swd. I can't acces my board anymore and pulling up boot0 doesn't help.
- Labels:
-
STM32CubeProgrammer
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 2:00 AM
Youre not locked out , try this:
CubeMxCubeProgrammer with Power down or under reset mode- If that doesnt work you need to do the reset SW raindance.
- Hold the board in reset
- Release the reset and inmediately press Connect in cubeProgrammer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 2:26 AM
is this cubemx or cubeide? in dube ide and cubemx I don't see the tab from your picture. and also do this with or without boot pulled up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 2:29 AM
Like the "raindance", did it several times...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 2:30 AM
CubeProgrammer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 2:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 2:44 AM
I tried this several times with and without boot pulled up and it wont connect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 3:08 AM
show us how youre connecting the SW pins, do you connect the reset line from the stlink to your board?
Just to be clear, it was working fine untill you disabled SW in your code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 3:37 AM
I can't connect the reset line both to the stlink and manually pull it down. but i tried both. it's a custom board but here is a picture. yes it worked fine the first time with both my boards ( I made two) . but after that, they both didn't connect anymore. then i saw i forgot to check the swd debugging pins in ide. i just connect the swd and swclock to the swdio and swclk of the stlink.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-15 6:16 AM
>>but after that, they both didn't connect anymore
If you didnt break anything, you should be able to programm the mcu even without SW active in your previous code.
>>I can't connect the reset line both to the stlink and manually pull it down
Just do one of them not both at the same time.
