Creating bare project with GCC toolchain

显示  仅  | 搜索替代 

Creating bare project with GCC toolchain

719 次查看
Contributor I


I am creating bare project for MIMXRT1050-EVK with GCC toolchain, for this I have taken reference from "led_blinky" demo app from SDK "SDK_2.5.0_EVKB-IMXRT1050" and using "gcc-arm-none-eabi-8-2018-q4-major-win32" toolchain.

I copied all dependent source files, libraries and compiled them using command

"arm-none-eabi-gcc -Wall -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16  -Qn -Os -c led_blinky.c -o led_blinky.o"

Linked all object files and added in program code section of link file "MIMXRT1052xxxxx_flexspi_nor.ld"

/* The program code and other data goes into internal RAM */
.text :
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
MPLCthree.o (*.text)
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
*(.glue_7) /* glue arm to thumb code */
*(.glue_7t) /* glue thumb to arm code */
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
} > m_text

added SEARCH_DIR path for toolchain



linked file with command 

ld -cref -Map map.txt -S -T MIMXRT1052xxxxx_flexspi_nor.ld -lm -lc -lgcc -lnosys

it gives me error

undefined reference to `_start'

标记 (1)
0 项奖励
1 回复

598 次查看
NXP TechSupport
NXP TechSupport

Hi ritesh unde,

    Thank you for your interest in NXP MIMXRT product, I would like to provide service for your.

   Please help me to double check the board on your side, is it MIMXRT1050-EVK or MIMXRT1050-EVKB?

   If you don't modify the SDK project, whether it works ok on your side or not?

   If works OK on your side, please also upload your problem project, I need to check it on my side.

Have a great day,


- If this post answers your question, please click the "Mark Correct" button. Thank you!


- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

0 项奖励