Skip to main content
Ekim.1
Associate III
May 31, 2022
Question

The program more than 128KB does not operate

  • May 31, 2022
  • 4 replies
  • 1736 views

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?

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
May 31, 2022

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

Ekim.1
Ekim.1Author
Associate III
May 31, 2022

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

waclawek.jan
Super User
May 31, 2022

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

JW

LCE
Principal II
May 31, 2022

Agreed.

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

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

Tesla DeLorean
Guru
May 31, 2022

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Markus GIRDLAND
ST Employee
June 1, 2022

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
Ekim.1Author
Associate III
June 2, 2022

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

Tesla DeLorean
Guru
June 2, 2022

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