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