diff options
| author | Bernard Xiong <[email protected]> | 2020-08-09 11:55:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-09 11:55:47 +0800 |
| commit | c7bdca34b1f05027f648a822e17fa810b11787f1 (patch) | |
| tree | 1146458cdd55d4d78b0e65a36f4c68d612635825 | |
| parent | 671cf265061c134d5d6f23a92015df87fdf78e14 (diff) | |
| parent | 49b86c6a2111a3b26dfcc7092b7e4f82ae2a3cd6 (diff) | |
Merge pull request #3792 from xfwangqiang/gcc-fix
fixed gcc assembly option in rtconfig.py for imxrt1064-nxp-evk
| -rw-r--r-- | bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py | 5 | ||||
| -rw-r--r-- | bsp/imxrt/imxrt1064-nxp-evk/README.md | 4 | ||||
| -rw-r--r-- | bsp/imxrt/imxrt1064-nxp-evk/rtconfig.py | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py b/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py index 44de4dc1df..1c90a8bdaa 100644 --- a/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py +++ b/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py @@ -53,6 +53,9 @@ if PLATFORM == 'gcc': CPATH = '' LPATH = '' + AFLAGS += ' -D__STARTUP_INITIALIZE_NONCACHEDATA' + AFLAGS += ' -D__STARTUP_CLEAR_BSS' + if BUILD == 'debug': CFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2' @@ -60,7 +63,7 @@ if PLATFORM == 'gcc': else: CFLAGS += ' -O2 -Os' - POST_ACTION = OBJCPY + ' -O binary --remove-section=.boot_data --remove-section=.image_vertor_table --remove-section=.ncache $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' # module setting CXXFLAGS = ' -Woverloaded-virtual -fno-exceptions -fno-rtti ' diff --git a/bsp/imxrt/imxrt1064-nxp-evk/README.md b/bsp/imxrt/imxrt1064-nxp-evk/README.md index 434f13c651..37a5e3d1dd 100644 --- a/bsp/imxrt/imxrt1064-nxp-evk/README.md +++ b/bsp/imxrt/imxrt1064-nxp-evk/README.md @@ -71,7 +71,7 @@ ### 快速上手 -本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,暂不支持 GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。 +本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,以及GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。 #### 硬件连接 @@ -115,4 +115,4 @@ msh > 维护人: -- [王强](https://github.com/xfwangqiang), 邮箱:<[email protected]>
\ No newline at end of file +- [王强](https://github.com/xfwangqiang, https://gitee.com/xfwangqiang), 邮箱:<[email protected]>
\ No newline at end of file diff --git a/bsp/imxrt/imxrt1064-nxp-evk/rtconfig.py b/bsp/imxrt/imxrt1064-nxp-evk/rtconfig.py index 2acb77e3ed..eeef72b0c6 100644 --- a/bsp/imxrt/imxrt1064-nxp-evk/rtconfig.py +++ b/bsp/imxrt/imxrt1064-nxp-evk/rtconfig.py @@ -53,6 +53,9 @@ if PLATFORM == 'gcc': CPATH = '' LPATH = '' + AFLAGS += ' -D__STARTUP_INITIALIZE_NONCACHEDATA' + AFLAGS += ' -D__STARTUP_CLEAR_BSS' + if BUILD == 'debug': CFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2' |
