Skip to main content
Associate
November 1, 2023
Question

STM32G474 error code

  • November 1, 2023
  • 3 replies
  • 4150 views

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.

Stone1_0-1698818507459.pngStone1_1-1698818516062.png

 

This topic has been closed for replies.

3 replies

Technical Moderator
November 1, 2023

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Stone1Author
Associate
November 9, 2023

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.

Error1.png

Error2.png

螢幕擷取畫面 2023-11-09 093633.png

螢幕擷取畫面 2023-11-09 093703123.png

 

 

 

 

Tesla DeLorean
Guru
November 9, 2023

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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Stone1Author
Associate
November 1, 2023

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.

Tesla DeLorean
Guru
November 9, 2023

Is this a custom board?

Make sure BOOT0 is pulled LOW and not floating.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Stone1Author
Associate
November 9, 2023

HI Tesla,

Yes, I already pulled low the BOOT0.

Tesla DeLorean
Guru
November 9, 2023

Sorry, when I pulled up the post I didn't see the earlier responses..

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..