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.
Hello,
I am trying to apply a SDR SDRAM (IS42S16320B-7TLI) with 8M x 16 x 4 Banks.
For this I am using TIs "EDI SDRAM Mode Example" which is working after a few modifications (Pin Setup and Function "sdram_data_size()"). I am able to read and write to the SDR SDRAM.
Now I want to add the external RAM to the Linker File (*.cmd) like it is descripted in several Threads, e.g. "http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/t/201530.aspx".
Due to the information I found I just added the following:
Command File "F28M35x_generic_M3_FLASH.cmd":
Please note that I did not change anything else in this file, just added:
MEMORY{
EXTRAM : origin = 0x60000000, length = 0x1000 // Length is set very low for testing
}
SECTION{
.SDRRAM : > EXTRAM
}
and in the Source File "epi_sdram.c"
#pragma DATA_SECTION(logMemory,".SDRRAM");
unsigned short logMemory;
Unfortunately its not working. After entering the Debug mode, the programm starts running immediately . I recognized that the programm restarts everytime it reaches the variable.
My question is what I have to improve to get this working.
Thanks in forward for your reply,
Andreas
Hi,
On Concerto device EPI module is not ready to use by default. There are module configuration as well pinmux configuration required to have EPI working. If you are defining some sections in EXT MEM and CCS tries to access this EXT MEM while loading the code, this will not work since EPI realted configuration are not done yet. Due to this complete code may not be getting loaded properly. You may have to take care of this in your code instead of using .cmd file.
Regards,
Vivek Singh
Vivek,
thank you for the fast reply. You gave me exactly the information I needed.
I got your point and will take care for this in my code.
Regards,
Andreas
Hi, Singh,
Can we use the extram.c/extram.h in dirverlib of Setllaris for Concerto?
I mean whether it's valid to refering the SDRAM inital of Stellaris.
May I refer the below post to do the same setting for Concerto m3 core: