Skip to main content
SGoel.2
Associate III
March 28, 2023
Solved

Hi all.

I have created a project in IAR Embedded Workbench and it is working alright but now due to some reasons I have converted and debugging the same project with same buffer values in STM32cubeide but in this compiler it is showing "region RAM overflowed by 7256 bytes" and also i have modified the .ld file according to the .icf file of IAR embedded workbench.

I have attached the both files. Please help me !!!

This topic has been closed for replies.
Piranha
PiranhaBest answer
Principal III
March 29, 2023

As for topic - do what others suggested and review the .map file with Amap.

Post edited to adhere community guidelines.

6 replies

Bob S
Super User
March 28, 2023

Unintentional probably, but the subject line is "HI All" - not very helpful. Change it if you can.

Look at the map files from both Keil and CubeIDE and see what is getting put in RAM. Looks like you have the same RAM size in both linker files.

Tesla DeLorean
Guru
March 28, 2023

Might have to fane extra RAM so the linker gets closure, and then inspect whose taking the memory

IAR perhaps better at dead-code elimination or folding of things.

Determine if you're initializing RAM based structures/variables that could be static constants, and left/held in FLASH.

Watch the scope of things. Avoid large auto/locals within main() as this never exits.

Try to use auto/locals for initialization, or where the memory doesn't need to be static/global for all eternity. The stack may need to be bigger to accommodate this, but again watch call-trees and scope expectations.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Pavel A.
March 28, 2023

Remove the .DWORD_ALIGNED_BLOCK. It contains duplicate symbols.

Piranha
PiranhaBest answer
Principal III
March 29, 2023

As for topic - do what others suggested and review the .map file with Amap.

Post edited to adhere community guidelines.

SGoel.2
SGoel.2Author
Associate III
March 30, 2023

Thankyou, Now I have resolved my issue​.