[XMC4800] Usage of SRAM

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

cross mob
User16417
Level 2
Level 2
Hi all,

I would like to use only SRAM for the DMA transfer destination area and heap area.
Is it possible? and, is there a problem?
0 Likes
1 Reply
User14604
Level 4
Level 4
First solution authored
You mean you don't want to put anything else into SRAM? Seems impossible, at least the stack needs to be put there.

If you need a separate RAM region for your DMA transfer buffer and heap, consider that the XMC4800 states three separate RAM regions, see sections in linker script:


PSRAM_1(!RX) : ORIGIN = 0x1FFE8000, LENGTH = 0x18000
DSRAM_1_system(!RX) : ORIGIN = 0x20000000, LENGTH = 0x20000
DSRAM_2_comm(!RX) : ORIGIN = 0x20020000, LENGTH = 0x20000


If you like, place heap and DMA into on of those sections manually.
0 Likes