mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-22 12:49:19 +08:00
[bsp] support get compiler path by environment variables for IAR
This commit is contained in:
parent
a8a2e55444
commit
cd39c2525a
@ -16,7 +16,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -106,7 +106,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
|
|
||||||
AFLAGS = ''
|
AFLAGS = ''
|
||||||
@ -120,5 +120,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --semihosting'
|
LFLAGS += ' --semihosting'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -17,7 +17,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0'
|
EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -113,7 +113,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --endian=little'
|
CFLAGS += ' --endian=little'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=none'
|
CFLAGS += ' --fpu=none'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' --silent'
|
CFLAGS += ' --silent'
|
||||||
|
|
||||||
AFLAGS = '--cpu '+ DEVICE
|
AFLAGS = '--cpu '+ DEVICE
|
||||||
@ -135,5 +135,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --map ' + MAP_FILE
|
LFLAGS += ' --map ' + MAP_FILE
|
||||||
LFLAGS += ' --silent'
|
LFLAGS += ' --silent'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = 'ielftool --silent --bin $TARGET ' + TARGET_NAME
|
POST_ACTION = 'ielftool --silent --bin $TARGET ' + TARGET_NAME
|
||||||
|
@ -16,7 +16,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0'
|
EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -111,7 +111,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --endian=little'
|
CFLAGS += ' --endian=little'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=none'
|
CFLAGS += ' --fpu=none'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' --silent'
|
CFLAGS += ' --silent'
|
||||||
|
|
||||||
AFLAGS = '--cpu '+ DEVICE
|
AFLAGS = '--cpu '+ DEVICE
|
||||||
@ -133,5 +133,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --map ' + MAP_FILE
|
LFLAGS += ' --map ' + MAP_FILE
|
||||||
LFLAGS += ' --silent'
|
LFLAGS += ' --silent'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = 'ielftool --silent --bin $TARGET ' + TARGET_NAME
|
POST_ACTION = 'ielftool --silent --bin $TARGET ' + TARGET_NAME
|
||||||
|
@ -18,7 +18,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
|
EXEC_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -121,7 +121,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M7'
|
CFLAGS += ' --cpu=Cortex-M7'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -137,5 +137,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -16,7 +16,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -105,7 +105,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -120,6 +120,6 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --semihosting'
|
LFLAGS += ' --semihosting'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
RT_USING_MINILIBC = False
|
RT_USING_MINILIBC = False
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -25,7 +25,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = r'D:/Keil'
|
EXEC_PATH = r'D:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
EXEC_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -113,7 +113,7 @@ elif PLATFORM == 'iar':
|
|||||||
else:
|
else:
|
||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -132,5 +132,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -29,7 +29,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = r'D:/Keil'
|
EXEC_PATH = r'D:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
EXEC_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -117,7 +117,7 @@ elif PLATFORM == 'iar':
|
|||||||
else:
|
else:
|
||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -136,5 +136,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -19,7 +19,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/keil_v5'
|
EXEC_PATH = 'C:/keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
|
EXEC_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -105,7 +105,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -121,5 +121,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -14,7 +14,7 @@ if CROSS_TOOL == 'gcc':
|
|||||||
EXEC_PATH = 'C:/Program Files/Renesas/Hew/Tools/KPIT Cummins/GNUM16CM32C-ELF/v11.01/m32c-elf/bin'
|
EXEC_PATH = 'C:/Program Files/Renesas/Hew/Tools/KPIT Cummins/GNUM16CM32C-ELF/v11.01/m32c-elf/bin'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
||||||
# EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
# EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print('================ERROR============================')
|
print('================ERROR============================')
|
||||||
@ -65,16 +65,14 @@ elif PLATFORM == 'iar':
|
|||||||
|
|
||||||
DEVICE = '--cpu M16C'
|
DEVICE = '--cpu M16C'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/m16c/bin'
|
|
||||||
|
|
||||||
AFLAGS = '-s+'
|
AFLAGS = '-s+'
|
||||||
# AFLAGS += ' -M<>'
|
# AFLAGS += ' -M<>'
|
||||||
AFLAGS += ' -w+'
|
AFLAGS += ' -w+'
|
||||||
AFLAGS += ' -r'
|
AFLAGS += ' -r'
|
||||||
AFLAGS += ' -I"' + IAR_PATH + '/m16c/INC"'
|
AFLAGS += ' -I"' + EXEC_PATH + '/m16c/INC"'
|
||||||
|
|
||||||
LFLAGS = '-xms'
|
LFLAGS = '-xms'
|
||||||
LFLAGS += ' -I"' + IAR_PATH + '/m16c/LIB"'
|
LFLAGS += ' -I"' + EXEC_PATH + '/m16c/LIB"'
|
||||||
LFLAGS += ' -rt'
|
LFLAGS += ' -rt'
|
||||||
LFLAGS += ' -s __program_start'
|
LFLAGS += ' -s __program_start'
|
||||||
LFLAGS += ' -D_CSTACK_SIZE=80'
|
LFLAGS += ' -D_CSTACK_SIZE=80'
|
||||||
@ -82,7 +80,7 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' -D_DATA16_HEAP_SIZE=1000'
|
LFLAGS += ' -D_DATA16_HEAP_SIZE=1000'
|
||||||
LFLAGS += ' -D_FAR_HEAP_SIZE=400'
|
LFLAGS += ' -D_FAR_HEAP_SIZE=400'
|
||||||
LFLAGS += ' -D_DATA20_HEAP_SIZE=400'
|
LFLAGS += ' -D_DATA20_HEAP_SIZE=400'
|
||||||
LFLAGS += ' "' + IAR_PATH + '/m16c/LIB/CLIB/clm16cfnffwc.r34"'
|
LFLAGS += ' "' + EXEC_PATH + '/m16c/LIB/CLIB/clm16cfnffwc.r34"'
|
||||||
LFLAGS += ' -e_small_write=_formatted_write'
|
LFLAGS += ' -e_small_write=_formatted_write'
|
||||||
LFLAGS += ' -e_medium_read=_formatted_read'
|
LFLAGS += ' -e_medium_read=_formatted_read'
|
||||||
|
|
||||||
@ -95,13 +93,15 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --debug'
|
CFLAGS += ' --debug'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --align_func 1'
|
CFLAGS += ' --align_func 1'
|
||||||
CFLAGS += ' -I"' + IAR_PATH + '/m16c/INC"'
|
CFLAGS += ' -I"' + EXEC_PATH + '/m16c/INC"'
|
||||||
CFLAGS += ' -I"' + IAR_PATH + '/m16c/INC/CLIB"'
|
CFLAGS += ' -I"' + EXEC_PATH + '/m16c/INC/CLIB"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --no_cse'
|
CFLAGS += ' --no_cse'
|
||||||
CFLAGS += ' --no_unroll'
|
CFLAGS += ' --no_unroll'
|
||||||
CFLAGS += ' --no_inline'
|
CFLAGS += ' --no_inline'
|
||||||
CFLAGS += ' --no_code_motion'
|
CFLAGS += ' --no_code_motion'
|
||||||
CFLAGS += ' --no_tbaa'
|
CFLAGS += ' --no_tbaa'
|
||||||
|
|
||||||
|
EXEC_PATH = EXEC_PATH + '/m16c/bin'
|
||||||
|
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -19,7 +19,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -102,7 +102,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -112,11 +112,11 @@ elif PLATFORM == 'iar':
|
|||||||
AFLAGS += ' -r'
|
AFLAGS += ' -r'
|
||||||
AFLAGS += ' --cpu Cortex-M3'
|
AFLAGS += ' --cpu Cortex-M3'
|
||||||
AFLAGS += ' --fpu None'
|
AFLAGS += ' --fpu None'
|
||||||
AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"'
|
AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"'
|
||||||
|
|
||||||
LFLAGS = ' --config mb9bf500r.icf'
|
LFLAGS = ' --config mb9bf500r.icf'
|
||||||
LFLAGS += ' --semihosting'
|
LFLAGS += ' --semihosting'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec'
|
POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec'
|
||||||
|
@ -19,7 +19,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -101,7 +101,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -111,11 +111,11 @@ elif PLATFORM == 'iar':
|
|||||||
AFLAGS += ' -r'
|
AFLAGS += ' -r'
|
||||||
AFLAGS += ' --cpu Cortex-M3'
|
AFLAGS += ' --cpu Cortex-M3'
|
||||||
AFLAGS += ' --fpu None'
|
AFLAGS += ' --fpu None'
|
||||||
AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"'
|
AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"'
|
||||||
|
|
||||||
LFLAGS = ' --config rtthread-mb9bf506.icf'
|
LFLAGS = ' --config rtthread-mb9bf506.icf'
|
||||||
LFLAGS += ' --semihosting'
|
LFLAGS += ' --semihosting'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec'
|
POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec'
|
||||||
|
@ -24,7 +24,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = r'E:/Keil'
|
EXEC_PATH = r'E:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = r'C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -106,7 +106,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -116,11 +116,11 @@ elif PLATFORM == 'iar':
|
|||||||
AFLAGS += ' -r'
|
AFLAGS += ' -r'
|
||||||
AFLAGS += ' --cpu Cortex-M3'
|
AFLAGS += ' --cpu Cortex-M3'
|
||||||
AFLAGS += ' --fpu None'
|
AFLAGS += ' --fpu None'
|
||||||
AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"'
|
AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"'
|
||||||
|
|
||||||
LFLAGS = ' --config rtthread-fm3.icf'
|
LFLAGS = ' --config rtthread-fm3.icf'
|
||||||
LFLAGS += ' --semihosting'
|
LFLAGS += ' --semihosting'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec'
|
POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec'
|
||||||
|
@ -103,7 +103,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -119,5 +119,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -105,7 +105,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -121,5 +121,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -19,7 +19,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:\Keil_v5'
|
EXEC_PATH = 'C:\Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.5'
|
EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.5'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -105,7 +105,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -121,5 +121,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -106,7 +106,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -122,5 +122,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -107,7 +107,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -123,5 +123,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -19,7 +19,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -105,7 +105,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
|
|
||||||
AFLAGS = ''
|
AFLAGS = ''
|
||||||
@ -118,5 +118,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS = ' --config stm32_rom.icf'
|
LFLAGS = ' --config stm32_rom.icf'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -20,7 +20,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keilv5'
|
EXEC_PATH = 'C:/Keilv5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -106,7 +106,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -122,5 +122,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -31,7 +31,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -117,7 +117,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -133,5 +133,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -16,7 +16,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -101,7 +101,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M3'
|
CFLAGS += ' --cpu=Cortex-M3'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
|
|
||||||
AFLAGS = ''
|
AFLAGS = ''
|
||||||
@ -115,5 +115,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --semihosting'
|
LFLAGS += ' --semihosting'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -106,7 +106,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -122,5 +122,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -23,7 +23,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2'
|
EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -112,7 +112,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=VFPv4_sp'
|
CFLAGS += ' --fpu=VFPv4_sp'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' --silent'
|
CFLAGS += ' --silent'
|
||||||
|
|
||||||
AFLAGS = DEVICE
|
AFLAGS = DEVICE
|
||||||
@ -133,5 +133,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
#LFLAGS += ' --silent'
|
#LFLAGS += ' --silent'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
@ -112,7 +112,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -128,5 +128,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -106,7 +106,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -122,5 +122,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -23,7 +23,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2'
|
EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -112,7 +112,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=VFPv4_sp'
|
CFLAGS += ' --fpu=VFPv4_sp'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' --silent'
|
CFLAGS += ' --silent'
|
||||||
|
|
||||||
AFLAGS = DEVICE
|
AFLAGS = DEVICE
|
||||||
@ -133,5 +133,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
#LFLAGS += ' --silent'
|
#LFLAGS += ' --silent'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
@ -20,7 +20,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = r'C:/Keil_v5'
|
EXEC_PATH = r'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2'
|
EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -119,7 +119,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M7'
|
CFLAGS += ' --cpu=Cortex-M7'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
CFLAGS += ' --silent'
|
CFLAGS += ' --silent'
|
||||||
@ -140,5 +140,5 @@ elif PLATFORM == 'iar':
|
|||||||
|
|
||||||
CXXFLAGS = CFLAGS
|
CXXFLAGS = CFLAGS
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -20,7 +20,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = r'C:/Keil_v5'
|
EXEC_PATH = r'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
|
EXEC_PATH = r'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -119,7 +119,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M7'
|
CFLAGS += ' --cpu=Cortex-M7'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
CFLAGS += ' --silent'
|
CFLAGS += ' --silent'
|
||||||
@ -140,5 +140,5 @@ elif PLATFORM == 'iar':
|
|||||||
|
|
||||||
CXXFLAGS = CFLAGS
|
CXXFLAGS = CFLAGS
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -108,7 +108,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -124,5 +124,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -112,7 +112,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -128,5 +128,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -112,7 +112,7 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --cpu=Cortex-M4'
|
CFLAGS += ' --cpu=Cortex-M4'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --fpu=None'
|
CFLAGS += ' --fpu=None'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -128,5 +128,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -16,7 +16,7 @@ if CROSS_TOOL == 'gcc':
|
|||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation_0'
|
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation_0'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print('================ERROR============================')
|
print('================ERROR============================')
|
||||||
print('Not support keil yet!')
|
print('Not support keil yet!')
|
||||||
@ -66,8 +66,6 @@ elif PLATFORM == 'iar':
|
|||||||
|
|
||||||
DEVICE = '--cpu V850'
|
DEVICE = '--cpu V850'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/v850/bin'
|
|
||||||
|
|
||||||
AFLAGS = '-s+'
|
AFLAGS = '-s+'
|
||||||
AFLAGS = ' -v1'
|
AFLAGS = ' -v1'
|
||||||
# AFLAGS += ' -M<>'
|
# AFLAGS += ' -M<>'
|
||||||
@ -76,17 +74,17 @@ elif PLATFORM == 'iar':
|
|||||||
AFLAGS += ' -DDATA_MODEL_TINY'
|
AFLAGS += ' -DDATA_MODEL_TINY'
|
||||||
AFLAGS += ' -w+'
|
AFLAGS += ' -w+'
|
||||||
AFLAGS += ' -r'
|
AFLAGS += ' -r'
|
||||||
AFLAGS += ' -I"' + IAR_PATH + '/v850/INC"'
|
AFLAGS += ' -I"' + EXEC_PATH + '/v850/INC"'
|
||||||
|
|
||||||
LFLAGS = '-xms'
|
LFLAGS = '-xms'
|
||||||
LFLAGS += ' -I"' + IAR_PATH + '/v850/LIB"'
|
LFLAGS += ' -I"' + EXEC_PATH + '/v850/LIB"'
|
||||||
LFLAGS += ' -rt'
|
LFLAGS += ' -rt'
|
||||||
LFLAGS += ' -s __program_start'
|
LFLAGS += ' -s __program_start'
|
||||||
LFLAGS += ' -D_CSTACK_SIZE=1000'
|
LFLAGS += ' -D_CSTACK_SIZE=1000'
|
||||||
LFLAGS += ' "' + IAR_PATH + '/v850/LIB/dl85nn1.r85"'
|
LFLAGS += ' "' + EXEC_PATH + '/v850/LIB/dl85nn1.r85"'
|
||||||
LFLAGS += ' -D_HEAP_SIZE=0'
|
LFLAGS += ' -D_HEAP_SIZE=0'
|
||||||
|
|
||||||
# LFLAGS += ' "' + IAR_PATH + '/v850/lib/CLIB/clm16cfnffwc.r34"'
|
# LFLAGS += ' "' + EXEC_PATH + '/v850/lib/CLIB/clm16cfnffwc.r34"'
|
||||||
# LFLAGS += ' -e_small_write=_formatted_write'
|
# LFLAGS += ' -e_small_write=_formatted_write'
|
||||||
# LFLAGS += ' -e_medium_read=_formatted_read'
|
# LFLAGS += ' -e_medium_read=_formatted_read'
|
||||||
|
|
||||||
@ -99,13 +97,15 @@ elif PLATFORM == 'iar':
|
|||||||
CFLAGS += ' --no_unroll'
|
CFLAGS += ' --no_unroll'
|
||||||
CFLAGS += ' --no_inline'
|
CFLAGS += ' --no_inline'
|
||||||
CFLAGS += ' --no_code_motion'
|
CFLAGS += ' --no_code_motion'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/v850/LIB/dl85nn1.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/v850/LIB/dl85nn1.h"'
|
||||||
CFLAGS += ' -I"' + IAR_PATH + '/v850/INC"'
|
CFLAGS += ' -I"' + EXEC_PATH + '/v850/INC"'
|
||||||
CFLAGS += ' --no_tbaa'
|
CFLAGS += ' --no_tbaa'
|
||||||
CFLAGS += ' --debug'
|
CFLAGS += ' --debug'
|
||||||
CFLAGS += ' --lock_regs 0'
|
CFLAGS += ' --lock_regs 0'
|
||||||
CFLAGS += ' --migration_preprocessor_extensions'
|
CFLAGS += ' --migration_preprocessor_extensions'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
|
|
||||||
|
EXEC_PATH = EXEC_PATH + '/v850/bin'
|
||||||
|
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -29,7 +29,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = r'D:/Keil'
|
EXEC_PATH = r'D:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
EXEC_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -116,7 +116,7 @@ elif PLATFORM == 'iar':
|
|||||||
else:
|
else:
|
||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -135,5 +135,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
@ -29,7 +29,7 @@ elif CROSS_TOOL == 'keil':
|
|||||||
EXEC_PATH = r'D:/Keil'
|
EXEC_PATH = r'D:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
EXEC_PATH = r'C:/Program Files/IAR Systems/Embedded Workbench 6.0'
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||||
@ -116,7 +116,7 @@ elif PLATFORM == 'iar':
|
|||||||
else:
|
else:
|
||||||
CFLAGS += ' --cpu=Cortex-M0'
|
CFLAGS += ' --cpu=Cortex-M0'
|
||||||
CFLAGS += ' -e'
|
CFLAGS += ' -e'
|
||||||
CFLAGS += ' --dlib_config "' + IAR_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"'
|
||||||
CFLAGS += ' -Ol'
|
CFLAGS += ' -Ol'
|
||||||
CFLAGS += ' --use_c++_inline'
|
CFLAGS += ' --use_c++_inline'
|
||||||
|
|
||||||
@ -135,5 +135,5 @@ elif PLATFORM == 'iar':
|
|||||||
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
|
||||||
LFLAGS += ' --entry __iar_program_start'
|
LFLAGS += ' --entry __iar_program_start'
|
||||||
|
|
||||||
EXEC_PATH = IAR_PATH + '/arm/bin/'
|
EXEC_PATH = EXEC_PATH + '/arm/bin/'
|
||||||
POST_ACTION = ''
|
POST_ACTION = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user