Hi I'm trying to access memory on a TMS320C5510 DSK board. As much as I understand there are 8Mbytes of memory on the DSK board I'm using CCS and ansi C At the moment its possible only to declare 5 type int 64x64 arrays with out linking errors. Is it possible to declare arrays that access those 8Mbytes of data? If yes, how? Best Regards and thank you
TMS320C5510 CCS: How to access memory
Started by ●December 6, 2004
Reply by ●December 7, 20042004-12-07
The .bss section of your linker command file (*.cmd) specifies where all the global/static variables should be placed. Based on what you're desribing I imagine this is currently set up such that it is placing the .bss section in internal RAM. By changing the linker command file such that the .bss section is in external RAM that will cause ALL your variables to be placed externally. If you do not want to put everything external you could do a #pragma DATA_SECTION as described in the C Compiler Guide. Brad "Lathe_Biosas" <lathe_biosas@hotmail.com> wrote in message news:1102355446.667026.223110@z14g2000cwz.googlegroups.com...> Hi > > I'm trying to access memory on a TMS320C5510 DSK board. > As much as I understand there are 8Mbytes of memory on the DSK board > I'm using CCS and ansi C > > At the moment its possible only to declare 5 type int 64x64 arrays with > out linking errors. > > Is it possible to declare arrays that access those 8Mbytes of data? If > yes, how? > > Best Regards and thank you >
Reply by ●December 7, 20042004-12-07
In addition, you may need to compile with the large memory model (or write specialized asm routines to access the extended memory) -Shawn "Brad Griffis" <bradgriffis@hotmail.com> wrote in message news:ibbtd.41330$Qv5.10045@newssvr33.news.prodigy.com...> The .bss section of your linker command file (*.cmd) specifies where allthe> global/static variables should be placed. Based on what you're desribingI> imagine this is currently set up such that it is placing the .bss sectionin> internal RAM. By changing the linker command file such that the .bss > section is in external RAM that will cause ALL your variables to be placed > externally. If you do not want to put everything external you could do a > #pragma DATA_SECTION as described in the C Compiler Guide. > > Brad > > "Lathe_Biosas" <lathe_biosas@hotmail.com> wrote in message > news:1102355446.667026.223110@z14g2000cwz.googlegroups.com... > > Hi > > > > I'm trying to access memory on a TMS320C5510 DSK board. > > As much as I understand there are 8Mbytes of memory on the DSK board > > I'm using CCS and ansi C > > > > At the moment its possible only to declare 5 type int 64x64 arrays with > > out linking errors. > > > > Is it possible to declare arrays that access those 8Mbytes of data? If > > yes, how? > > > > Best Regards and thank you > > > >
Reply by ●December 7, 20042004-12-07
Great point! For some reason the default project settings do not use large memory model.. That is good advice for anyone starting a project on CCS. Brad "Shawn Steenhagen" <shawn.NSsteenhagen@NSappliedsignalprocessing.com> wrote in message news:Icktd.2084$WZ2.197@fe03.lga...> In addition, you may need to compile with the large memory model (or write > specialized asm routines to access the extended memory) > -Shawn > > "Brad Griffis" <bradgriffis@hotmail.com> wrote in message > news:ibbtd.41330$Qv5.10045@newssvr33.news.prodigy.com... >> The .bss section of your linker command file (*.cmd) specifies where all > the >> global/static variables should be placed. Based on what you're desribing > I >> imagine this is currently set up such that it is placing the .bss section > in >> internal RAM. By changing the linker command file such that the .bss >> section is in external RAM that will cause ALL your variables to be >> placed >> externally. If you do not want to put everything external you could do a >> #pragma DATA_SECTION as described in the C Compiler Guide. >> >> Brad >> >> "Lathe_Biosas" <lathe_biosas@hotmail.com> wrote in message >> news:1102355446.667026.223110@z14g2000cwz.googlegroups.com... >> > Hi >> > >> > I'm trying to access memory on a TMS320C5510 DSK board. >> > As much as I understand there are 8Mbytes of memory on the DSK board >> > I'm using CCS and ansi C >> > >> > At the moment its possible only to declare 5 type int 64x64 arrays with >> > out linking errors. >> > >> > Is it possible to declare arrays that access those 8Mbytes of data? If >> > yes, how? >> > >> > Best Regards and thank you >> > >> >> > >