From 22a5af0eae2302ee43b0ed51b3b815bf40f79c44 Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Fri, 16 Sep 2011 22:55:40 +0100 Subject: [PATCH] Use near_func to work with later versions of IAR EWSTM8 (1.20+). Project files upgraded to EWSTM8 1.30. --- ports/stm8/atomport-asm-iar.s | 2 +- ports/stm8/atomthreads-sample-iar.ewd | 68 +++++++++++++++++++++++---- ports/stm8/atomthreads-sample-iar.ewp | 44 +++++++++++------ 3 files changed, 89 insertions(+), 25 deletions(-) diff --git a/ports/stm8/atomport-asm-iar.s b/ports/stm8/atomport-asm-iar.s index dc7c286..1c79d1d 100644 --- a/ports/stm8/atomport-asm-iar.s +++ b/ports/stm8/atomport-asm-iar.s @@ -32,7 +32,7 @@ NAME ATOMPORTASM - SECTION .text:code + SECTION .near_func.text:code ; Get definitions for virtual registers used by the compiler #include "vregs.inc" diff --git a/ports/stm8/atomthreads-sample-iar.ewd b/ports/stm8/atomthreads-sample-iar.ewd index 5dc3141..9858dbd 100644 --- a/ports/stm8/atomthreads-sample-iar.ewd +++ b/ports/stm8/atomthreads-sample-iar.ewd @@ -12,7 +12,7 @@ C-SPY 1 - 0 + 1 1 1 + + + + + + @@ -161,6 +185,10 @@ + + $TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin + 0 + $EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin 1 @@ -169,10 +197,6 @@ $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin 0 - - $EW_DIR$\common\plugins\Profiling\Profiling.ENU.ewplugin - 1 - $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 @@ -193,7 +217,7 @@ C-SPY 1 - 0 + 1 1 0 + + + + + + @@ -342,6 +390,10 @@ + + $TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin + 0 + $EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin 1 @@ -350,10 +402,6 @@ $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin 0 - - $EW_DIR$\common\plugins\Profiling\Profiling.ENU.ewplugin - 1 - $EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin 1 diff --git a/ports/stm8/atomthreads-sample-iar.ewp b/ports/stm8/atomthreads-sample-iar.ewp index ae76bf8..8a8d48a 100644 --- a/ports/stm8/atomthreads-sample-iar.ewp +++ b/ports/stm8/atomthreads-sample-iar.ewp @@ -10,7 +10,7 @@ 1 General - 1 + 2 1 1 @@ -115,7 +115,7 @@ ICCSTM8 - 1 + 2 8 1 @@ -306,7 +306,7 @@ ASTM8 - 1 + 2 1 1 @@ -499,9 +499,9 @@ ILINK - 1 + 2 - 0 + 1 1 1 + + IARCHIVE - 1 + 2 0 1 @@ -760,7 +768,7 @@ 0 General - 1 + 2 1 1 @@ -865,7 +873,7 @@ ICCSTM8 - 1 + 2 8 1 @@ -1056,7 +1064,7 @@ ASTM8 - 1 + 2 1 1 @@ -1249,9 +1257,9 @@ ILINK - 1 + 2 - 0 + 1 1 0 + + IARCHIVE - 1 + 2 0 1 @@ -2332,7 +2348,7 @@ $PROJ_DIR$\stm8s-periphs\stm8s_clk.c - $PROJ_DIR$\stm8s-periphs\stm8s_clk.h + $PROJ_DIR$\STM8S-PERIPHS\stm8s_clk.h $PROJ_DIR$\stm8s-periphs\stm8s_gpio.c @@ -2359,7 +2375,7 @@ $PROJ_DIR$\STM8S-PERIPHS\stm8s_uart2.c - $PROJ_DIR$\stm8s-periphs\stm8s_uart2.h + $PROJ_DIR$\STM8S-PERIPHS\stm8s_uart2.h Debug