diff --git a/bsp/mb9bf618s/rtconfig.py b/bsp/mb9bf618s/rtconfig.py index 4620b93e01be814d169b9ee16a7536e958cd5446..8c60f44864f16d3e0674038c15266236b95a2b4e 100644 --- a/bsp/mb9bf618s/rtconfig.py +++ b/bsp/mb9bf618s/rtconfig.py @@ -1,8 +1,13 @@ +import os + # toolchains options ARCH='arm' CPU='cortex-m3' CROSS_TOOL='keil' +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + #device options # FM3_TYPE = # 'MB9B610S','MB9B610T', @@ -110,7 +115,7 @@ elif PLATFORM == 'iar': AFLAGS += ' --fpu None' AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"' - LFLAGS = ' --config mb9bf506.icf' + LFLAGS = ' --config rtthread-fm3.icf' LFLAGS += ' --semihosting' LFLAGS += ' --entry __iar_program_start'