Friday, June 02, 2006

memory mapping

I need to understand why I cannot use the external memory location of ZONE6 to store my lookup tables.

The lookup tables are stored in .ebss which is fine as long as the memory map stores that in DRAMH0. As soon as I attempt to store that in ZONE6, the data is stored there, the program compiles, however the motor will not run.

Nic passed on to me a link:

http://www.dsprelated.com/showmessage/29197/1.php

which had some stuff that I am already doing but had some wierd stuff about pragma directives.


you have to insert a pragma directive:
#pragma DATA_SECTION(v, "FFTv");
float v[10];


this is difficult to implement in my program as i do not really have a variable "v" that I can refer to. I have tried using both afm_060601_P.Ia_lookup and just afm_060601_P, but both times I get errors.

just to check if it would work, I tried:

//#pragma DATA_SECTION(v, "lookup");
//float v;
//float v = 10;


with this in the cmd file

.lookup : > ZONE6, PAGE = 1

If that worked then it was possible that i could include the lookups manually.

the program compiled, but the motor did not run.

Taking out that pragma directive allowed it to work again.

0 Comments:

Post a Comment

<< Home