XMC 4500 relax kit on-chip Flash programming

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

cross mob
Not applicable
Hi,

this is XMC 4500 on chip memories.
On-Chip Memories
• 16 KB on-chip boot ROM
• 64 KB on-chip high-speed program memory
• 64 KB on-chip high speed data memory
• 32 KB on-chip high-speed communication
• 1024 KB on-chip Flash Memory with 4 KB instruction cache

I am trying to implement ACADO optimization problem on XMC 4500 relax kit.
the problem is I think by default it uses these two parts as programming memory:
• 64 KB on-chip high-speed program memory
• 64 KB on-chip high speed data memory
and I got DSRAM overflowed error.

Is it possible to use 1024 KB on-chip Flash Memory for programming?
if yes, Can someone kindly tell me where and how I can modify the setting?

Thanks in advance.

H. Hafezi
0 Likes
4 Replies
User10215
Level 4
Level 4
First like received
Hi Hossein,

what is the "ACADO optimization problem"? If you have a DSRAM overflow-error then you have too many global or static variables. If you didn't do any modifications to the linker settings then the default is that:
- code will be placed into flash
- constant variables will be placed into flash
- global and static variables are put into RAM

Did you make any modifications to the stack- or heap-size (they are both located in RAM)? Are you programming with DAVE?

Regards,
Niclas
0 Likes
Not applicable
Dear Niclas,

Many thanks for reply.
I am using ACADO to solve a MPC problem.
Yes I am using DAVE v4.
I think I have too many global and static variables.
Maybe with xmc4500 it would not be possible to implement our code. we may need a board with higher RAM.
do you have any suggestion?

Sincerely,

Hossein
0 Likes
User10215
Level 4
Level 4
First like received
Hi Hossein,

well I don't know what ACADO nor MPC problem is but nevermind. If you want to keep using the XMC4500 you could tell the linker to place some of your variables not only into DSRAM1 but also into DSRAM2 (have a look into the reference manual v1.5 page 7-4 for the memory map). However I don't know how to do that in DAVE.
Alternatively you could use a XMC4800 or XMC4700 relax kit. Those microcontrollers have 2MB of Flash and
- 92 kB of PSRAM
- 128 kB of DSRAM1
- 128 kB of DSRAM2

What's also improved in those controllers is that there is now a big block of RAM rather then 3 seperated RAM-areas as in the XMC4500. Also the XMC4800/XMC4700 run a little bit faster with 144 MHz as opposed to 120 MHz of the XMC4500.

Regards,
Niclas
0 Likes
Not applicable
Thanks a lot Niclas for reply and info.
0 Likes