Hi,
I have an application whose DataMemory clashes with the DataMemory of my Bootloader. So, I have thought of shifting the Applications Datamemory mapping. Now, i have rempped it. But, When my application starts, the the MMU is disabled & The MMU is enabled inside the application only. So, there
is a situation that my stack will be pointing to one location when the MMU is disabled and will get pointed to another location when i enable the MMU inside my application for my requirements.
So, i have thought of using 'load' and 'run' facilities in the CMD file(Linker command file) . Now, as long as my application has not enabled the MMU, it will be pointing to the physical area (Load area), and as soon as my application enables the MMU, it will be pointing to the virtual memory area(Run Area) .
After the changes, i find that the application behaves abnormally. So, i suspect if the stack has some issues.
Can i assign Stack area as 'load' and 'run' type in CMD file(Linker command File) ? Will my application be able to retreive the
proper values when it gets switched between the 'MMU Enabled' and 'MMU Disabled' modes ? Any problems if i implement Stack in that manner ?
Thx in advans, Karthik Balaguru