|
>>But we have to use SDRAM as a general purpose RAM i.e. storing data into the SDRAM from within the code.
And how exactly would you do this in C normally? Honestly, how does this normally happen for programs you develop? And how does this differ for the 9260? Do you have a familiarity with compilers, assemblers, linkers and loaders, and their role in the generation and placement of code and data?
You'd probably use dynamic memory allocation from a heap (malloc,realloc,free, etc), or static allocations (globals).
To REITERATE : If you want the compiler/linker to know about memory regions within an embedded part/system, you will need to define those, typically in a scatter file or linker script, depending on the tool chain. If you don't understand this you will need to review the documentation for the tools, because the compiler is pretty much agnostic to type and placement of RAM within the system.
The booting part is also important because you have to initialize the system and get your initial code/data into the SDRAM.
Suggest you review C startup code, and the boot process of the AT91 parts.
|