Skip to main content
Georgy Moshkin
Senior
September 2, 2022
Solved

Reasoning behind default memory arrangement in STM32H7B0VBTX_RAM.ld linker script?

  • September 2, 2022
  • 3 replies
  • 3179 views

0693W00000SuMEEQA3.jpgAccording to datasheet, STM32H7B0VBT have 1024Kb of AXI SRAM, it is defined in STM32H7B0VBTX_FLASH.ld. But for some reason the same memory is limited to 128Kb in STM32H7B0VBTX_RAM.ld. I modify linker scripts according to my needs, but maybe I missing something. Is it just an usage example, or there was some reason for assigning only 128Kb?

This topic has been closed for replies.
Best answer by LaurentL

Hello,

I think the Ram was restricted to 128K as the device has 128K of Flash.

In order to not create a project in the whole RAM and then it wouldn't fit into flash.

Anyway, the RAM linker scripts are given besides the Flash linker scripts, they are not used by default.

But I think your point is valid, we can set the whole RAM for debugging purpose.

It will be updated for next release.

Rgds,

Laurent

3 replies

Pavel A.
Super User
September 2, 2022

Looks like a copy-paste bug.

Georgy Moshkin
Senior
September 2, 2022

Probably not, because:

0693W00000SuNpGQAV.jpgRAM size also significantly smaller in the description of STM32H7B0VBTX_RAM.ld

Check my STM32 Bootloader - flash your STM32 with AES-encrypted binaries right from web browser!
Tesla DeLorean
Guru
September 2, 2022

Not sure of the whole context of which project(s) this comes from or if it was auto-generated via Cube MX/IDE

Might be transposition of the smaller FLASH size, or the expectation that the image is to be copied from FLASH

The .LD is just a subset of functionality communicated to the Linker, if you think it is wrong or inappropriate for your particular application, change it

@Sara BEN HADJ YAHYA​ 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
LaurentL
LaurentLAnswer
ST Employee
September 2, 2022

Hello,

I think the Ram was restricted to 128K as the device has 128K of Flash.

In order to not create a project in the whole RAM and then it wouldn't fit into flash.

Anyway, the RAM linker scripts are given besides the Flash linker scripts, they are not used by default.

But I think your point is valid, we can set the whole RAM for debugging purpose.

It will be updated for next release.

Rgds,

Laurent

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.