This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Thingy 52 GCC make error

Following the guide found at : file:///C:/Github/STIWHN/SDK_thingy52/thingy_sdk_v2.1.0/documentation/firmware_compile.html#compile_gcc

I still getting errors trying to build the thingy52 FW

C:\Github\STIWHN\SDK_thingy52\thingy_sdk_v2.1.0\project\pca20020_s132\armgcc>make -j
rm -rf _build
process_begin: CreateProcess(NULL, rm -rf _build, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:397: recipe for target 'clean' failed
make: *** [clean] Error 2

I checked the makefile.windows it is configured as following:

GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q3
GNU_VERSION := 4.9.3
GNU_PREFIX := arm-none-eabi

The path in windows to the GNU tools :

C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2015q3

The project found in 'thingy_sdk_v2.1.0\project\pca20020_s132' also does not build in Keil or in Segger.

Any help would be great.

Parents
  • Hey Bjørn,

    I thought coreutils was part of the standard GNUwin32 package, but it is not. So to make the Thingy52 project files you have to also install the coreutils package by GNUwin. It could be usefull to add this to the guide, although it might have just been my own incompetence.

    Assembly file: gcc_startup_nrf52.S
    Linking target: nrf52832_xxaa_s132.out
    make[1]: Entering directory 'C:/Github/STIWHN/SDK_thingy52/thingy_sdk_v2.1.0/project/pca20020_s132/armgcc'
    Preparing: nrf52832_xxaa_s132.bin
    Preparing: nrf52832_xxaa_s132.hex
    ''
       text    data     bss     dec     hex filename
     186240     380   19780  206400   32640 _build/nrf52832_xxaa_s132.out
    ''
    make[1]: Leaving directory 'C:/Github/STIWHN/SDK_thingy52/thingy_sdk_v2.1.0/project/pca20020_s132/armgcc'
    

    Above is my result from building the project. Thanks for checking up, I should have posted an update here.

Reply
  • Hey Bjørn,

    I thought coreutils was part of the standard GNUwin32 package, but it is not. So to make the Thingy52 project files you have to also install the coreutils package by GNUwin. It could be usefull to add this to the guide, although it might have just been my own incompetence.

    Assembly file: gcc_startup_nrf52.S
    Linking target: nrf52832_xxaa_s132.out
    make[1]: Entering directory 'C:/Github/STIWHN/SDK_thingy52/thingy_sdk_v2.1.0/project/pca20020_s132/armgcc'
    Preparing: nrf52832_xxaa_s132.bin
    Preparing: nrf52832_xxaa_s132.hex
    ''
       text    data     bss     dec     hex filename
     186240     380   19780  206400   32640 _build/nrf52832_xxaa_s132.out
    ''
    make[1]: Leaving directory 'C:/Github/STIWHN/SDK_thingy52/thingy_sdk_v2.1.0/project/pca20020_s132/armgcc'
    

    Above is my result from building the project. Thanks for checking up, I should have posted an update here.

Children
Related