Tool/software: Code Composer Studio
Hi,
Where does the access to the sdram happen(with which function etc.)? I only see a functionality of a blinking LED. Is this the only example for the sdram?
Thank You. BR
Marcel
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi,
Where does the access to the sdram happen(with which function etc.)? I only see a functionality of a blinking LED. Is this the only example for the sdram?
Thank You. BR
Marcel
Hi Veena,
Thank you for your explanation. But I see no reference between the blinky function and this:
for(i=0;i<size;i++)
{
((char *)&BlinkyStartAddr)[i] =((char *)&BlinkyLoadStart)[i];
}
Does it have something to do with this:
.blinky_section : RUN = SDRAM, LOAD = FLASH0 | FLASH1
LOAD_START(BlinkyLoadStart), LOAD_END(BlinkyLoadEnd), LOAD_SIZE(BlinkySize),
RUN_START(BlinkyStartAddr ), RUN_END(BlinkyEndAddr )
Hi,
Ok now I got it. Thank you. I tried this example because I want to use the Interface for read/write speed, this was the only example for SDRAM I found. Do you know samples for read and write routines for sdram? Or do you know a manual for this. Thank you Veena for your patience.
BR
Marcel
Marcel,
Once the SDRAM is initialised, you can access the SDRAM like any other RAM.
To read or write to an address you can use the following statements:
*PTR = 1 or uint32_t a = *PTR
PTR is a macro defined in the EMIF to indicate the start of SDRAM address.
Much more recommended way is to define variables or arrays in the SDRAM location (using linker command files and DATA_SECTION pragmas). Sample code below:
#pragma DATA_SECTION(sdram_Buf, ".sdram_section")
uint32_t sdram_Buf[10];
In the linker command file under SECTIONS add
.sdram_section: {} > SDRAM
Thanks and Regards,
Veena