where does the data in the data file live
there are several sections that are stored in DRAMH0 in the internal memory map and in ZONE6 for the full memory map. I need to figure out which of these sections the parameters are stored in.
Internal memory map:
.bss : > DRAMH0, PAGE = 1
.ebss : > DRAMH0, PAGE = 1
.const : > DRAMH0, PAGE = 1
.econst : > DRAMH0, PAGE = 1
.sysmem : > DRAMH0, PAGE = 1
Full memory map:
.ebss : > ZONE6 PAGE = 1
.econst : > ZONE6 PAGE = 1
.esysmem : > ZONE6 PAGE = 1
Using the internal memory map the afm_060531_P is stored at 0x00008080 (which is in LO SARAM) and the motor runs.
I have tried to move the DRAMHO to 0x0100000 (zone 6)
file compiles with no errors (as expected)
file load (as expected)
motor does not run (as expected)
it is clear that as soon as stuff is moved to external memory the motor does not run.
I will try to intoduce a ZONE6 but move DRAMH0 back to internal
ZONE6 : origin = 0x100000, length = 0x002000
file compiles with no errors (as expected)
file load (as expected)
motor runs (as expected)
now I will try to move some of the stuff that is in DRAMH0 to ZONE6
try .const first
motor works but does not seem to have moved anything to ZONE6
try .ebss
the motor did not work and afm_060531_P has moved
try .econst only
that puts the PieVectTableInit there as well as FL1 FSL1.
motor works for that one which indicates that external memory can be accessed.
.ebss is the answer and should be stored in ZONE6 but I need to find out why it does not work
I have now stored all these findings in afm.cmd
works when nothing is referencing ZONE6
0 Comments:
Post a Comment
<< Home