cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474 error code

Stone1
Associate II

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

 

8 REPLIES 8
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Stone1
Associate II

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.

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

  

 

 

 

 

Is this a custom board?

Make sure BOOT0 is pulled LOW and not floating.

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

HI Tesla,

Yes, I already pulled low the BOOT0.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

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

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

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.