STM32G491KCU6: Unable to program via UART1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 1:06 AM
Hello,
I'm trying to program G491KCU6 board via UART1 and I'm not able to connect to st-programmer. I don't know whether the board is actually entering Boot0 or not. I have PB8 with 10K to GND and I pull it up during connection to enter Boot0. Below is the schematic. Any recommendations? My serial to USB converter shows Rx LED ON when I try to enter Boot0.
- Labels:
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 2:12 AM
Hi,
> I pull it up during connection to enter Boot0
You have to set boot0->hi and then reset/start cpu ; boot0 is only checked after a reset by cpu.
Did you keep to this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 2:25 AM
Hello,
I'm powering the board with boot0 at high. Do I need to hit reset after that?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 2:34 AM
No - thats ok.
But you can try extra reset - just to be sure...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 2:36 AM
Tried. Not working. Possible to check schematic? If in case I have missed something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 7:37 AM
USART1 bootloader on STM32G49x is on PA9/PA10 per AN2606. You're not connecting to those pins.
No, there's no way to change what pins the bootloader supports. You'll need to respin the board or program it with a different method.
Programming/debugging over SWD is the best method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 10:46 AM
Thanks for the reply. I tried UART2 for the same. Couldn't get it to work.
SWD method works. Wish UART method worked too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-13 11:02 AM - edited ‎2024-01-13 11:03 AM
> I tried UART2 for the same. Couldn't get it to work.
You aren't using the USART2 pins supported by the bootloader either.
> Wish UART method worked too.
Can't just wish. You have to connect to the right pins.
Read AN2606 for bootloader functionality. SWD is not part of the bootloader so will work regardless, as long as those pins aren't reassigned in the program.
