This widget could not be displayed.
Not applicable
May 27, 2016
02:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 27, 2016
02:39 AM
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
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
- Tags:
- IFX
4 Replies
May 27, 2016
08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 27, 2016
08:15 AM
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
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
This widget could not be displayed.
Not applicable
Jun 06, 2016
01:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2016
01:50 AM
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
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
Jun 06, 2016
02:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2016
02:23 AM
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
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
This widget could not be displayed.
Not applicable
Jun 09, 2016
02:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 09, 2016
02:38 AM
Thanks a lot Niclas for reply and info.
This widget could not be displayed.