DSPRelated.com
Forums

Please help - writing to sdram

Started by theb...@excite.com June 29, 2005
Hi all,
Im a newbie to Code composer and dsp programming as a whole. I have developed a Ultra Wideband transmitter in C++ and now as part of my Masters thesis I need to implement it on a c6416 dsk.
I have managed to get all the code compiling and building fine in CCS but the problem lies with the memory allocation. I have many large arrays depending on the number of multiplexed users in the system so the on-chip memory is not sufficient. I need to be able to write to the external memory off the chip. I can see the address range for these but don't know how to assign data to this external memory. I realise this is probably a very trivial matter and easy to most but as with all things getting started is my problem.

Any help would be greatly appreciated.

Regards,
Niall Barry



You need to define an external section in a CMD file, and then use the
section declaration mechanism ( in C is how I know it, using a pragma, I
think ) to create the buffer in this external section.
Robert
www.gldsp.com
_____

From: code-comp@code... [mailto:code-comp@code...] On Behalf
Of theblaahead@theb...
Sent: Wednesday, June 29, 2005 6:44 PM
To: code-comp@code...
Subject: [code-comp] Please help - writing to sdram
Hi all,
Im a newbie to Code composer and dsp programming as a whole. I have
developed a Ultra Wideband transmitter in C++ and now as part of my Masters
thesis I need to implement it on a c6416 dsk.
I have managed to get all the code compiling and building fine in CCS
but the problem lies with the memory allocation. I have many large arrays
depending on the number of multiplexed users in the system so the on-chip
memory is not sufficient. I need to be able to write to the external memory
off the chip. I can see the address range for these but don't know how to
assign data to this external memory. I realise this is probably a very
trivial matter and easy to most but as with all things getting started is my
problem.

Any help would be greatly appreciated.

Regards,
Niall Barry