summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-06 10:29:57 +0700
committerhathach <[email protected]>2014-03-06 10:29:57 +0700
commitfee8e5227b71f9d743c19153b998fff99db20a82 (patch)
treea51866351c83fb016ca66c890cf75b183fa459b4
parentc35e668dc4a6bce1706ae6bfa63491bfbc409889 (diff)
IAR work well with EA4357 on host os none
-rw-r--r--demos/host/host_freertos/keil_ram.ini11
-rw-r--r--demos/host/host_os_none/host_os_none.ewd4
-rw-r--r--demos/host/host_os_none/host_os_none.ewp2
-rw-r--r--demos/host/src/main.c4
4 files changed, 16 insertions, 5 deletions
diff --git a/demos/host/host_freertos/keil_ram.ini b/demos/host/host_freertos/keil_ram.ini
new file mode 100644
index 000000000..8d7116082
--- /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 cd064da54..c2d573653 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 @@
</option>
<option>
<name>OCProbeConfig</name>
- <state></state>
+ <state>$TOOLKIT_DIR$\config\debugger\NXP\LPC43xx.ProbeConfig</state>
</option>
<option>
<name>IjetProbeConfigRadio</name>
@@ -3450,7 +3450,7 @@
</option>
<option>
<name>OCJLinkTraceSource</name>
- <state>1</state>
+ <state>0</state>
</option>
<option>
<name>OCJLinkTraceSourceDummy</name>
diff --git a/demos/host/host_os_none/host_os_none.ewp b/demos/host/host_os_none/host_os_none.ewp
index e6a4e41ca..3fb25d72b 100644
--- a/demos/host/host_os_none/host_os_none.ewp
+++ b/demos/host/host_os_none/host_os_none.ewp
@@ -1961,7 +1961,7 @@
</option>
<option>
<name>GenStdoutInterface</name>
- <state>1</state>
+ <state>0</state>
</option>
<option>
<name>GeneralMisraRules98</name>
diff --git a/demos/host/src/main.c b/demos/host/src/main.c
index 4ead7c6ba..ef44f6b5e 100644
--- a/demos/host/src/main.c
+++ b/demos/host/src/main.c
@@ -179,7 +179,7 @@ void print_greeting(void)
- Host Demo (a tinyusb example)\n\
- if you find any bugs or get any questions, feel free to file an\n\
- issue at https://github.com/hathach/tinyusb\n\
---------------------------------------------------------------------\n\n"
+--------------------------------------------------------------------\n"
);
puts("This demo supports the following classes");
@@ -188,4 +188,4 @@ void print_greeting(void)
if (TUSB_CFG_HOST_HID_KEYBOARD ) puts(" - HID Keyboard");
if (TUSB_CFG_HOST_MSC ) puts(" - Mass Storage");
if (TUSB_CFG_HOST_CDC ) puts(" - Communication Device Class");
-} \ No newline at end of file
+}