Creating bare project with GCC toolchain

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating bare project with GCC toolchain

658 Views
riteshunde
Contributor I

Hi,

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 */
*(.eh_frame)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
} > m_text

added SEARCH_DIR path for toolchain

SEARCH_DIR("D:\ToolchainM7\lib\gcc\arm-none-eabi\8.2.1\thumb\v7e-m+dp\hard")

SEARCH_DIR("D:\ToolchainM7\arm-none-eabi\lib\thumb\v7e-m+dp\hard")

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'

Tags (1)
0 Kudos
1 Reply

537 Views
kerryzhou
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,
Kerry

 

-------------------------------------------------------------------------------
Note:
- 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 Kudos