From fee8e5227b71f9d743c19153b998fff99db20a82 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 6 Mar 2014 10:29:57 +0700 Subject: [PATCH] IAR work well with EA4357 on host os none --- demos/host/host_freertos/keil_ram.ini | 11 +++++++++++ demos/host/host_os_none/host_os_none.ewd | 4 ++-- demos/host/host_os_none/host_os_none.ewp | 2 +- demos/host/src/main.c | 4 ++-- 4 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 demos/host/host_freertos/keil_ram.ini diff --git a/demos/host/host_freertos/keil_ram.ini b/demos/host/host_freertos/keil_ram.ini new file mode 100644 index 00000000..8d711608 --- /dev/null +++ b/demos/host/host_freertos/keil_ram.ini @@ -0,0 +1,11 @@ + +FUNC void Setup (unsigned int region) { + region &= 0xFFFF0000; + SP = _RDWORD(region); // Setup Stack Pointer + PC = _RDWORD(region + 4); // Setup Program Counter + _WDWORD(0xE000ED08, region); // Setup Vector Table Offset Register +} + +//LOAD "Board NGX4330\\host_os_none.axf" INCREMENTAL +LOAD %L INCREMENTAL +Setup(__scatterload); // Get ready to execute image in SRAM or whatever region it is in g,main diff --git a/demos/host/host_os_none/host_os_none.ewd b/demos/host/host_os_none/host_os_none.ewd index cd064da5..c2d57365 100644 --- a/demos/host/host_os_none/host_os_none.ewd +++ b/demos/host/host_os_none/host_os_none.ewd @@ -3238,7 +3238,7 @@