SDRAM in Dave ver.4

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

cross mob
mrtn-t
Level 1
Level 1
First solution authored First reply posted 5 sign-ins

Hi, 
I need to connect external SDRAM  IS42S16400F to XMC4700F144 via EBU. On PCB I've used the same XMC pins as are used on XMC4500 hexagon and on 4800 Automation boards.
For programming I'm using DAVE version 4.5.0 and DAVE APPs that came with it. I've also downloaded XMC_Peripheral_Library_v2.1.24. 

Now I have to find a way to "incorporate" my SD RAM into existing Dave solution. I've read all 5 therads in Dave community that can be found using search phrase SDRAM, but I can't find the answers that I need. 

I have a few questions: 
1. EBU APP:
Please correct me if I'm wrong, but as far as I understand there was an "EBU001" app in previous version of Dave, but in version 4 it does not exisit any more. So, is there many other way to mark all pins used by SDRAM as "used" or "connected" in Pin Mapping pespective? I need to change some I2S pins in order to faccilitate RAM.

2. Include XMC_Peripheral_Library code into Dave
In library I've found code for using SDRAM with EBU. I've followed instructions in main_xmc4.txt on how to import example into Dave, but nothing noticable had happened. The only differnce is that I can not import it anymore, becouse Dave writes that "some projects canot be imported becouse they alread exist in the workspace".
I'm stucked at this point right now. I don't know where are these "projects", niether did I noticed any difference in git. I'm not sure what exactly happened.

3. accesing values in SDRAM
I was analyzing code in "main.c" from "examples\XMC4800_series\EBU\EBU_SDRAM
" folder and I've noticed that memory is accessed only through pointers, as for examle "value = *(volatile uint32_t *)(mem_add);" 
I sopose that an ordinary variable or array can be also declared somewhere in SDRAM? Or not?

Maybe these are some newbie questions, but I will still apreciate any answer.  

Thanx and best regards, martin

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1: I create a SDRAM project and add it in attachment.

2:Q:  I sopose that an ordinary variable or array can be also declared somewhere in SDRAM? Or not?

The answer is no.

View solution in original post

1 Reply
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1: I create a SDRAM project and add it in attachment.

2:Q:  I sopose that an ordinary variable or array can be also declared somewhere in SDRAM? Or not?

The answer is no.