STM32G474 error code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-10-31 11:09 PM
Hi,
I'm using STM32G474RET6 for development.
When I debug code by SWD, the download verified successfully.
But it will be suspended at HAL_Init() and show an error is Break at address "0x1fff5048" with no debug information available, or outside of program code.
Is there something I need to notice?
Thanks.
- Labels:
-
STM32G4 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-10-31 11:23 PM - edited 2023-10-31 11:32 PM
Hello @Stone1 and welcome to the Community :)
Check state of BOOT0 pin, and option bits.
Check also your clock settings.
Please share more details (ioc file, code, clock settings, schematics...) if your issue is not resolved. This will help to better understand your usecase.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-01 12:21 AM
Hi Imen,
BOOT0 pin now is floating. Should I tied to GND?
I have two same board. The first one can normally work. But the other one met the issue as I mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-08 5:57 PM
Hello @Imen.D ,
The previous issue is solved. But for a while there is another issue.
The issue are are the following.
I check the BOOT0 pin, and option bits.
BOOT0 pin now is connected to GND. I use STM32 ST-LINK Utility to read option bytes as following picture.
I can boot it and debug it at the first time, but for a while I can't. Is there any setting that I didn't notice it?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-08 6:24 PM
Is this a custom board?
Make sure BOOT0 is pulled LOW and not floating.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-08 6:28 PM
HI Tesla,
Yes, I already pulled low the BOOT0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-08 6:29 PM
Make sure you don't have any code re-configuring GPIOA PA13 / PA14, or going into a low power mode that might cause the debugger to disconnect
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-08 6:31 PM
Sorry, when I pulled up the post I didn't see the earlier responses..
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-08 6:59 PM
Hi Tesla,
I don't change PA13 and PA14. Could you tell me how to set low power mode?
I'm not sure I'm in lower power mode or not.
I find it sometimes it can connect and will disconnect suddenly.
Thanks.
