This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

_start not found

Using eclipse and code sorcery compiler I got an undefined label error, see below [b]_build/gcc_startup_nrf51.o: In function Reset_Handler': /home/oscar/workspace/Nordic/nrf51822/Source/templates/gcc/gcc_startup_nrf51.s:150: undefined reference to_start'[/b] "/opt/arm-2013.05/bin/arm-none-eabi-gcc" -DNRF51822_QFAA_CA -mcpu=cortex-m0 -mthumb -mabi=aapcs -DNRF51 -DBOARD_NRF6310 -DNRF51822_QFAA_CA --std=gnu99 -Wall -Werror -mfloat-abi=soft -DDEBUG -g3 -O0 -I"/home/oscar/workspace/Nordic/nrf51822/Include/ble" -I"/home/oscar/workspace/Nordic/nrf51822/Include/ble/softdevice" -I"/home/oscar/workspace/Nordic/nrf51822/Include/app_common" -I"/home/oscar/workspace/Nordic/nrf51822/Include/ble/ble_services" -I"../" -I"/home/oscar/workspace/Nordic/nrf51822/Include" -I"/home/oscar/workspace/Nordic/nrf51822/Include/gcc" -I"/home/oscar/workspace/Nordic/nrf51822/Include/ext_sensors" -M /home/oscar/workspace/Nordic/nrf51822/Source/ble/ble_services/ble_srv_common.c -MF "_build/ble_srv_common.d" -MT _build/ble_srv_common.o [b]collect2: error: ld returned 1 exit status make: *** [_build/ble_hrs_gcc_s110_xxaa.out] Error 1[/b] Where is the _start defined?
Any help?

Parents
  • Which version of the SDK and GCC do you use? This seems to indicate that your compilation process is not set up correctly.

    In the latest SDK version 4.3 we changed from CodeSourcery to the upstream ARM toolchain available here. This error you get could indicate that you're trying to compile an application from 4.3 with the CodeSourcery toolchain. If so, please try replacing it with this one, and see if that solves the error.

Reply
  • Which version of the SDK and GCC do you use? This seems to indicate that your compilation process is not set up correctly.

    In the latest SDK version 4.3 we changed from CodeSourcery to the upstream ARM toolchain available here. This error you get could indicate that you're trying to compile an application from 4.3 with the CodeSourcery toolchain. If so, please try replacing it with this one, and see if that solves the error.

Children
No Data
Related