XMC 4500 relax kit, memory problem

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

cross mob
Not applicable
Hello,

I have implemented pretty large code (optimization) on XMC 4500 relax kit, F100k1024.
the problem is when I try to built the project I got these errors:

`.bss' will not fit in region `DSRAM_1_system'
region SRAM_combined overflowed no_init section
region `DSRAM_1_system' overflowed by -44 bytes

I know the problem is with Memory. I don't know how to manage the memory.
Is it possible to increase DSRAM memory space? and if yes, how?
Is it possible to run the code on flash ROM memory space?


Could someone help me on this?
thanks in advance.

Hossein
0 Likes
8 Replies
Not applicable
Hi again,
I have tried to change some setting in project Built option.
DSRAM memory default address is from 0x20000000 to 0x2000FFFF
when I change is to 0x20000000 to 0x2007FFFF the project is built without error, but I have problem to debug the project, and after loading the code the run, and stop options are no active, and seems I have no access to register values to debug my code.
I need support and suggestions will be appreciated.

Thanks in advance.

Hossein
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi, without optimization does your software works ok?
0 Likes
Not applicable
Hello Travis,
Thanks for reply.
I created an empty project. and then I added the optimization code to the main.c
0 Likes
Not applicable
and yes, without optimization it is working and I have no problem with Built and debugging.
I think the problem is the size of code. it doesn't fit inside DSRAM.
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
I would recommend that you can reduce your code size to fit into the DSRAM as optimization usually don't produce good behavior.
0 Likes
Not applicable
Dear Travis,

Thanks for reply.
but the code is a converted code, it uses defined solver to solve the problem. and actually I cannot reduce its size.
is there any way to manage the RAM area (increase it)? or alternatively is there any way to use FLASH memory instead?

thanks in advance,

Hossein
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Yes. You can place these code in the XMC4000 flash.

And why in the first place that it is in the DSRAM? For faster code execution?
0 Likes
Not applicable
"And why in the first place that it is in the DSRAM? For faster code execution?"
I created the project with default Built and Memory setting. I am completely beginner with Infineon boards. If you can give me some hints how to manage the memory (any reference or documents to study) It will be great.
we had used TI boards in our projects and now we want to evaluate Infineon boards and eventually change our controller.

You can place these code in the XMC4000 flash.
thanks for suggestion, I will check the code with XMC4000 as well, but for now I have XMC4500 relax kit in hand only.
0 Likes