XMC4500: DSRAM_1_system overflowed

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello at all,

I have a big problem. I have added some variables to my software and then I get some problems (see attachment).

3385.attach

I hope someone can help me. Because we have to deliver our products tomorrow.

Best Regards,
Patrick
0 Likes
3 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

You could modify the linker file to locate the .bss section or part of it into the DSRAM_2_comm region.

Regards,
Jesus
0 Likes
Not applicable
Hi Jesus,

how and where exactly can I change that in the linker file?

Regards,
Patrick
0 Likes
User14604
Level 4
Level 4
First solution authored
The linker script linker_script.ld is located in your main project folder.

If you are new to linker scripts: You need to adjust both the linker script and your code to place some parts of the RAM to a new location. For example, to place the following integer array to the DSRAM2_comm, add attribute:


__attribute__((section(".ram2content"))) unsigned int addData[1024];


In linker script, add the following line in the DSRAM2_comm region after alignment line:


*(.ram2content)


I currently have no access to a XMC4500 project, hope it works ...
0 Likes