aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc43xx/vector.c
diff options
context:
space:
mode:
authorMichael Ossmann2012-06-25 17:06:31 -0700
committerMichael Ossmann2012-06-25 17:06:31 -0700
commit7ef51e30e9a406789aca7b989e2c45e5a27e6e97 (patch)
treefc78b6fcdd55e540c3aa9446fb816282343b8d7f /lib/lpc43xx/vector.c
parent94455ed1916ce378e97971201793397dcee5a924 (diff)
parent81317c02ab3c33e820fe4852c053476a33c6f834 (diff)
Merge pull request #9 from TitanMKD/master
Fixed Linker ROM to RAM
Diffstat (limited to 'lib/lpc43xx/vector.c')
-rw-r--r--lib/lpc43xx/vector.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lpc43xx/vector.c b/lib/lpc43xx/vector.c
index 631e54e..daef5a9 100644
--- a/lib/lpc43xx/vector.c
+++ b/lib/lpc43xx/vector.c
@@ -171,6 +171,9 @@ void reset_handler(void)
if( (&_etext_ram-&_text_ram) > 0 )
{
src = &_etext_rom-(&_etext_ram-&_text_ram);
+ /* Change Shadow memory to ROM (for Debug Purpose in case Boot has not set correctly the M4MEMMAP because of debug) */
+ CREG_M4MEMMAP = (unsigned long)src;
+
for(dest = &_text_ram; dest < &_etext_ram; )
{
*dest++ = *src++;