cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474RB3 Compiled code won't fit (but I show I should have about 61kB free)

DavidNaviaux
Senior

Everything was going well until my compiled code exceeded 64kB.  Now, the programmer says that the code exceeds available space.  But the code is only 67kB and the available space is 128kB.

Is there an option that I need to set to allow all flash to be used?

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you.  Actually, I just found the problem.  By default the option bits have the BFB2 bit checked which is the dual-bank mode allowing only 1/2 of available flash.  By unchecking that option, I can now use the entire 128kB.

 

View solution in original post

2 REPLIES 2

Maybe the same/similar problem?
@Aziz BRIGUI, can you please comment?

JW

Thank you.  Actually, I just found the problem.  By default the option bits have the BFB2 bit checked which is the dual-bank mode allowing only 1/2 of available flash.  By unchecking that option, I can now use the entire 128kB.