Hi,
I need to gaurentee the location of a memory section in DDR3. However, it seems that my best guess of it just being the order I declare is not the case. I am wondering what the rules are? Here is my example to make my question clear.
In my cfg file I have these lines:
Program.sectMap[".windowData"] = new Program.SectionSpec();
Program.sectMap[".windowData"] = "DDR3";
Program.sectMap[".testData"] = new Program.SectionSpec();
Program.sectMap[".testData"] = "DDR3";
In my program I have these lines:
#pragma DATA_SECTION(windows, ".windowData")
UInt8 windows[WINDOW_SIZE][4];
#pragma DATA_SECTION(testing, ".testData")
UInt8 testing[WINDOW_SIZE][4];
When I compile, my map shows that windowData is after testData. I need window data to be gaurenteed to be at the same location every compile. Due to the order of my config file, I would have suspected that windowData was at 0x80000000 not testData.
80000000 80000000 00040000 00000000 rw-
80000000 80000000 00020000 00000000 rw- .testData
80020000 80020000 00020000 00000000 rw- .windowData
I am not too familar with the RTSC configuration etc. Please advise on how to properly map windowData to 80000000.
Thanks,
brandy