cancel
Showing results for 
Search instead for 
Did you mean: 

The program more than 128KB does not operate

Ekim.1
Associate II

It was programming using STM32H753.

However, when the size of the program is over 128 KB, it does not work.

How can we solve this?

8 REPLIES 8

It is likely that it's not the code size which makes the program fail.

Debug as usually - in debugger, stop it, and find out where the Program Counter points.

JW

Is there any way to increase the size of the programmable code?​

In STM32H753, you have 2MBytes of FLASH, that's why I don't think this is the cause of your problem.

JW

Agreed.

But maybe he's got a screwed up linker script ?

So check that file, probably called something like "STM32H753xxx_FLASH.ld".

Unfortunately "does not work" in this context is a bit non-specific.

Fails to Build? Fails to Download? Fails to execute in the Debugger?

Could be a mapping/banking issue

Could be an H750 remarked

>>How can we solve this?

Start by presenting and explaining the situation better. In conveying detail you might start to understand what's wrong.

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

Could you provide some additional details about what the problem is? Perhaps a step-by-step guide for how to reproduce the problem?

Also, any screenshots that could be helpful in understanding the problem would be appreciated!

Ekim.1
Associate II

Successfully downloaded using STM32CubeIDE.

However, it appears to have been suspended because the program did not work (CAN, UART, LED control operations, etc.)

At this time, annotate a portion of the source code and make the program size 127 KB, which works normally.

My "FLASH.ld" file is as follows:

0693W00000Nr49yQAB.jpg

The base of the 2MB FLASH would be 0x08000000

The upper 1MB would start at 0x08100000

Not sure why it would limit to 127KB unless later in the script you direct content into the DTCMRAM

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