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

_build directory missing in blinky_example in SDK v5.0.0.34603

Hi all,

I am currently working on a BLE project based on the PCA10001 evaluation board. I am trying to follow the nRF51 application note. I have done everything that the application note describes, although based on Kepler instead of Juno. At section 2 i get stuck hence gcc/_build does not exist in my blinky_example.

When i attempt to build:

cs-make debug "C:/Program Files/GNU Tools ARM Embedded/4.7 2013q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -mabi=aapcs -DNRF51 -DBOARD_PCA10001 -DNRF51822_QFAA_CA --std=gnu99 -Wall -Werror -mfloat-abi=soft -DDEBUG -g3 -O0 -I"../" -I"../../../../Include" -I"../../../../Include/gcc" -I"../../../../Include/ext_sensors" -M ../main.c -MF "_build/main.d" -MT _build/main.o The system cannot find the path specified. cs-make: *** [_build/main.o] Error 1

How do i solve this problem?

  • Hi, The build folder is modified a little bit from the time the app note is released.

    After you compile the code using gcc ARM (run make.exe in gcc folder), you will have _build folder inside gcc folder instead of directly under ble_app_hrs.

  • Hi Hung,

    I updated my post with a stacktrace, furthermore where do i find the GCC ARM make executable, is it included in Sourcery Codebench?

  • @Bluetoothy: Could you make sure you have GNU tool ARM Embedded installed ? It should be located at : C:\Program Files (x86)\GNU Tools ARM Embedded\4.7 2013q1\lib\gcc\arm-none-eabi. if you have the same version 4.7 2013q1.

    You can follow the instruction in chapter 1 nAN29 to know which version you have. Please make sure you have modified the Makefile.windows configuration (GNU _INSTALL_ROOT, GNU_VERSION) correctly, matches with your actual installation of GNU tool ARM embedded.

    Make for windows can be downloaded from gnuwin32.sourceforge.net/.../make.htm. But you should be fine using cs-make from code sourcery.

  • I tried to modify the Makefile.windows to the right directory.

    ifeq ($(findstring 86, $(ProgramFiles)), )
    	PROGFILES := C:/Users/Administrator/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI
    else
    	PROGFILES := C:/Users/Administrator/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI
    endif
    
    GNU_INSTALL_ROOT := $(PROGFILES)
    GNU_VERSION := 4.8.1
    GNU_PREFIX := arm-none-eabi
    

    cs-make "C:/Users/Administrator/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/ arm-none-eabi-gcc" -L"C:/Users/Administrator/MentorGraphics/Sourcery_CodeBench_L ite_for_ARM_EABI/arm-none-eabi/lib/armv6-m" -L"C:/Users/Administrator/MentorGrap hics/Sourcery_CodeBench_Lite_for_ARM_EABI/lib/gcc/arm-none-eabi/4.8.1/armv6-m" - Xlinker -Map=_build/blinky_gcc_xxaa.map -mcpu=cortex-m0 -mthumb -mabi=aapcs -L . ./../../..//Source//templates/gcc/ -Tgcc_nrf51_blank_xxaa.ld _build/main.o _bui ld/nrf_delay.o _build/system_nrf51.o _build/gcc_startup_nrf51.o -o _build/blink y_gcc_xxaa.out c:/users/administrator/mentorgraphics/sourcery_codebench_lite_for_arm_eabi/bin/. ./lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lnosys collect2.exe: error: ld returned 1 exit status cs-make: *** [_build/blinky_gcc_xxaa.out] Error 1

  • Please make sure that you use the supported toolchain from here, and not the CodeSourcery one. The -lnosys library is only part of the CodeSourcery one. See this question for details.

Related