From e53af2c4ad1f0c7f5f1282b00caabc632032d7d2 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 8 Apr 2014 13:56:53 +0700 Subject: change keil_ram.ini to lpc43xx_debug_init.ini --- demos/device/device_cmsis_rtx/device_cmsis_rtx.uvproj | 2 +- demos/device/device_freertos/device_freertos.uvproj | 2 +- demos/device/device_os_none/device_os_none.uvproj | 2 +- demos/host/host_cmsis_rtx/host_cmsis_rtx.uvproj | 2 +- demos/host/host_freertos/host_freertos.uvproj | 2 +- demos/host/host_os_none/host_os_none.uvproj | 2 +- mcu/lpc43xx/keil/keil_ram.ini | 11 ----------- mcu/lpc43xx/keil/lpc43xx_debug_init.ini | 11 +++++++++++ 8 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 mcu/lpc43xx/keil/keil_ram.ini create mode 100644 mcu/lpc43xx/keil/lpc43xx_debug_init.ini diff --git a/demos/device/device_cmsis_rtx/device_cmsis_rtx.uvproj b/demos/device/device_cmsis_rtx/device_cmsis_rtx.uvproj index 77bd933eb..26bdea637 100644 --- a/demos/device/device_cmsis_rtx/device_cmsis_rtx.uvproj +++ b/demos/device/device_cmsis_rtx/device_cmsis_rtx.uvproj @@ -3990,7 +3990,7 @@ - ..\..\..\mcu\lpc43xx\keil_ram.ini + ..\..\..\mcu\lpc43xx\lpc43xx_debug_init.ini Segger\JL2CM3.dll diff --git a/demos/device/device_freertos/device_freertos.uvproj b/demos/device/device_freertos/device_freertos.uvproj index 770d6a487..3e4d3e4d1 100644 --- a/demos/device/device_freertos/device_freertos.uvproj +++ b/demos/device/device_freertos/device_freertos.uvproj @@ -4360,7 +4360,7 @@ - ..\..\..\mcu\lpc43xx\keil\keil_ram.ini + ..\..\..\mcu\lpc43xx\keil\lpc43xx_debug_init.ini Segger\JL2CM3.dll diff --git a/demos/device/device_os_none/device_os_none.uvproj b/demos/device/device_os_none/device_os_none.uvproj index 941afd37b..d258f815b 100644 --- a/demos/device/device_os_none/device_os_none.uvproj +++ b/demos/device/device_os_none/device_os_none.uvproj @@ -3820,7 +3820,7 @@ - ..\..\..\mcu\lpc43xx\keil\keil_ram.ini + ..\..\..\mcu\lpc43xx\keil\lpc43xx_debug_init.ini Segger\JL2CM3.dll diff --git a/demos/host/host_cmsis_rtx/host_cmsis_rtx.uvproj b/demos/host/host_cmsis_rtx/host_cmsis_rtx.uvproj index e7f7b1414..868af76d0 100644 --- a/demos/host/host_cmsis_rtx/host_cmsis_rtx.uvproj +++ b/demos/host/host_cmsis_rtx/host_cmsis_rtx.uvproj @@ -2531,7 +2531,7 @@ - ..\..\..\mcu\lpc43xx\keil\keil_ram.ini + ..\..\..\mcu\lpc43xx\keil\lpc43xx_debug_init.ini Segger\JL2CM3.dll diff --git a/demos/host/host_freertos/host_freertos.uvproj b/demos/host/host_freertos/host_freertos.uvproj index d7e52cce9..c1f71516b 100644 --- a/demos/host/host_freertos/host_freertos.uvproj +++ b/demos/host/host_freertos/host_freertos.uvproj @@ -1792,7 +1792,7 @@ - ..\..\..\mcu\lpc43xx\keil\keil_ram.ini + ..\..\..\mcu\lpc43xx\keil\lpc43xx_debug_init.ini Segger\JL2CM3.dll diff --git a/demos/host/host_os_none/host_os_none.uvproj b/demos/host/host_os_none/host_os_none.uvproj index ef6d14cd6..33bd45c43 100644 --- a/demos/host/host_os_none/host_os_none.uvproj +++ b/demos/host/host_os_none/host_os_none.uvproj @@ -1662,7 +1662,7 @@ - ..\..\..\mcu\lpc43xx\keil\keil_ram.ini + ..\..\..\mcu\lpc43xx\keil\lpc43xx_debug_init.ini Segger\JL2CM3.dll diff --git a/mcu/lpc43xx/keil/keil_ram.ini b/mcu/lpc43xx/keil/keil_ram.ini deleted file mode 100644 index dd77fa2a7..000000000 --- a/mcu/lpc43xx/keil/keil_ram.ini +++ /dev/null @@ -1,11 +0,0 @@ - -FUNC void Setup (unsigned int region) { - region &= 0xFF000000; - _WDWORD(0x40043100, region); // Set the shadow pointer - _WDWORD(0xE000ED08, 0); // Set the vector table offset to 0 - SP = _RDWORD(region); // Setup Stack Pointer - PC = _RDWORD(region+4); // Setup Program Counter -} - -LOAD %L INCREMENTAL -Setup(__scatterload); // Get ready to execute image in SRAM or whatever region it is in g,main diff --git a/mcu/lpc43xx/keil/lpc43xx_debug_init.ini b/mcu/lpc43xx/keil/lpc43xx_debug_init.ini new file mode 100644 index 000000000..dd77fa2a7 --- /dev/null +++ b/mcu/lpc43xx/keil/lpc43xx_debug_init.ini @@ -0,0 +1,11 @@ + +FUNC void Setup (unsigned int region) { + region &= 0xFF000000; + _WDWORD(0x40043100, region); // Set the shadow pointer + _WDWORD(0xE000ED08, 0); // Set the vector table offset to 0 + SP = _RDWORD(region); // Setup Stack Pointer + PC = _RDWORD(region+4); // Setup Program Counter +} + +LOAD %L INCREMENTAL +Setup(__scatterload); // Get ready to execute image in SRAM or whatever region it is in g,main -- cgit v1.3.1