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

Unable to compile thingy 52 SDK v2.1.0

Followed steps in stated in read me still unable to compile thingy 52 sdk

Parents
  • While running setup_sdk.bat having below error, please refer screenshot

  • Hi,

    I am sorry for the delay.

    The error message indicates that you have not installed make, or that it is installed but not found by the build script.

    The readme suggests getting make from http://gnuwin32.sourceforge.net/packages/make.htm. (Although you are free to choose version and implementation of make as you would like.)

    In order for make to be found by the build script, you need to put the install path of make in the PATH system environment variable. This is how to do that in Windows 10:

    From control panel, select System, then "Advanced system settings". That should give you the "System Properties" window. Find the "Advanced" tab:

    Click the "Environment Variables..." button. This gives you the "Environment Variables" window. There are two lists there. The top one is for your user only, and any settings there will affect your user, but not any other user on the same computer, if any. The bottom one is "System variables", which is system wide for all users. Which one to use depend on whether you want to set this up only for yourself, or if you want it set up for other users of the computer as well.

    Find the "PATH" entry in the list, select it, and click the "Edit...'" button below the list. You should then get an "Edit environment  variable" window.

    To add an entry, click the "New" button on the top right. You can then enter a new line in the list. You need to put in the file path for where the installed make.exe is to be found. On my computer, that path is "C:\Program Files (x86)\GnuWin32\bin", but it depends on what installation of make you are using.

    Regards,
    Terje

  • Hi,

    Have a nice day!!!

    Rerun the setup_sdk.bat and after that again rerun make - j in armgcc, still got following error. Please find below cmd prompt log:

    Microsoft Windows [Version 10.0.18363.1316]
    (c) 2019 Microsoft Corporation. All rights reserved.

    C:\Users\SMET>cd..

    C:\Users>d:

    D:\>cd D:\Megha\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc

    D:\Megha\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc>make -j
    rm -rf _build
    process_begin: CreateProcess(NULL, rm -rf _build, ...) failed.
    Compiling file: main.c
    Compiling file: m_ble.c
    Compiling file: m_ble_flash.c
    Compiling file: advertiser_beacon_timeslot.c
    Compiling file: twi_manager.c
    Compiling file: support_func.c
    Compiling file: m_environment_flash.c
    Compiling file: m_environment.c
    Compiling file: m_sound.c
    Compiling file: m_motion_flash.c
    Compiling file: m_motion.c
    Compiling file: m_ui.c
    Compiling file: m_ui_flash.c
    Compiling file: m_batt_meas.c
    Compiling file: drv_gas_sensor.c
    Compiling file: drv_ccs811.c
    Compiling file: drv_pressure.c
    Compiling file: drv_lps22hb.c
    Compiling file: drv_humidity.c
    Compiling file: drv_hts221.c
    Compiling file: drv_ext_light.c
    Compiling file: drv_ext_gpio.c
    Compiling file: drv_nfc.c
    Compiling file: sx150x_led_drv_calc.c
    Compiling file: drv_sx1509.c
    Compiling file: drv_bh1745.c
    Compiling file: drv_color.c
    Compiling file: drv_speaker.c
    Compiling file: drv_mpu9250.c
    Compiling file: drv_motion.c
    Compiling file: drv_acc_lis3dh.c
    Compiling file: drv_mic.c
    Compiling file: inv_mpu.c
    Compiling file: inv_mpu_dmp_motion_driver.c
    Compiling file: data_builder.c
    Compiling file: hal_outputs.c
    Compiling file: message_layer.c
    Compiling file: ml_math_func.c
    Compiling file: mlmath.c
    Compiling file: mpl.c
    Compiling file: results_holder.c
    Compiling file: start_manager.c
    Compiling file: storage_manager.c
    Compiling file: eMPL_outputs.c
    Compiling file: log_nrf52.c
    Compiling file: dvi_adpcm.c
    Compiling file: drv_audio_coder_adpcm.c
    Compiling file: drv_audio_coder_bv32fp.c
    Compiling file: drv_audio_dsp.c
    Compiling file: drv_audio_pdm.c
    Compiling file: ble_advdata.c
    Compiling file: ble_advertising.c
    Compiling file: ble_conn_params.c
    Compiling file: ble_srv_common.c
    Compiling file: ble_conn_state.c
    Compiling file: ble_tes.c
    Compiling file: ble_tcs.c
    Compiling file: ble_uis.c
    Compiling file: ble_tms.c
    Compiling file: ble_tss.c
    Compiling file: nrf_drv_common.c
    Compiling file: nrf_drv_gpiote.c
    Compiling file: nrf_drv_twi.c
    make (e=2): The system cannot find the file specified.
    make: *** [clean] Error 2
    make: *** Waiting for unfinished jobs....

    Please suggest further solution.Thanks in advance for your valuable assistance.

    Regards,

    Megha Choudhari

  • Hi,

    I have tried make -j two three times. Please find below log:

    D:\Megha\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc>make -j
    rm -rf _build
    process_begin: CreateProcess(NULL, rm -rf _build, ...) failed.
    Compiling file: nrf_drv_pwm.c
    Compiling file: nrf_drv_pdm.c
    Compiling file: nrf_drv_clock.c
    Compiling file: nrf_drv_saadc.c
    Compiling file: nrf_saadc.c
    Compiling file: nfc_launchapp_msg.c
    Compiling file: nrf_drv_rng.c
    Compiling file: nfc_launchapp_rec.c
    Compiling file: nfc_uri_msg.c
    Compiling file: nfc_uri_rec.c
    Compiling file: nfc_ndef_msg.c
    Compiling file: nfc_ndef_record.c
    Compiling file: nfc_text_rec.c
    Compiling file: app_button.c
    Compiling file: hal_nfc_t2t.c
    Compiling file: app_error.c
    Compiling file: app_scheduler.c
    Compiling file: app_timer.c
    Compiling file: nrf_assert.c
    Compiling file: retarget.c
    Compiling file: led_softblink.c
    Compiling file: low_power_pwm.c
    Compiling file: fstorage.c
    Compiling file: fds.c
    Compiling file: app_util_platform.c
    Compiling file: sdk_mapped_flags.c
    Compiling file: nrf_queue.c
    Compiling file: RTT_Syscalls_GCC.c
    Compiling file: SEGGER_RTT.c
    Compiling file: SEGGER_RTT_printf.c
    Compiling file: softdevice_handler_appsh.c
    Compiling file: softdevice_handler.c
    Compiling file: system_nrf52.c
    Compiling file: nrf_log_frontend.c
    Compiling file: nrf_log_backend_serial.c
    Compiling file: nrf_dfu_flash_buttonless.c
    Compiling file: ble_dfu.c
    Compiling file: ble_bas.c
    Compiling file: nrf_dfu_settings.c
    Compiling file: crc32.c
    Compiling file: nrf_strerror.c
    make (e=2): The system cannot find the file specified.
    make: *** [clean] Error 2
    make: *** Waiting for unfinished jobs....
    Assembly file: gcc_startup_nrf52.S

    D:\Megha\Megha_Embedded_System\thingysdkv210\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.
    make: *** [clean] Error 2
    make: *** Waiting for unfinished jobs....
    Linking target: nrf52832_xxaa_s132.out
    make[1]: Entering directory `D:/Megha/Megha_Embedded_System/thingysdkv210/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 `D:/Megha/Megha_Embedded_System/thingysdkv210/project/pca20020_s132/armgcc'

     

    Is this means Thingy52 sdk compiled successfully? Kindly confirm.

    Regards,

    Megha Choudhari

  • Hi,

    Please confirm also, If I dumped this hex file in nRF52832DK, can it work?

    Because, I have dumped this hex through nRF Connect but not able scan in Thingy App.

    Waiting for your suggestions earliest.

    Regards,

    Megha Choudhari

  • Hi,

    I suspect the error message might be problems with running the rm command. What output do you get from the following command?

    rm --version

    The hex file is built for the Thingy:52, not for the nRF52832 DK. You should not expect the firmware to work on the DK. This is because buttons, LEDs and other peripherals are connected at different GPIO pins or not existing at all on the DK. Also, for instance clock sources may differ. In general, different boards require different configuration of the project. You should test the project on a Thingy:52.

    Regards,
    Terje

  • Hi,

    Please find output of "rm --version" as follows:

    Microsoft Windows [Version 10.0.18363.1316]
    (c) 2019 Microsoft Corporation. All rights reserved.

    C:\Users\SMET>rm --version
    'rm' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\SMET>cd..

    C:\Users>d:

    D:\>cd D:\Megha\Nordic\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc

    D:\Megha\Nordic\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc>rm --version
    'rm' is not recognized as an internal or external command,
    operable program or batch file.

    Regards,

    Megha Choudhari

Reply
  • Hi,

    Please find output of "rm --version" as follows:

    Microsoft Windows [Version 10.0.18363.1316]
    (c) 2019 Microsoft Corporation. All rights reserved.

    C:\Users\SMET>rm --version
    'rm' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\SMET>cd..

    C:\Users>d:

    D:\>cd D:\Megha\Nordic\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc

    D:\Megha\Nordic\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc>rm --version
    'rm' is not recognized as an internal or external command,
    operable program or batch file.

    Regards,

    Megha Choudhari

Children
  • Hi,

    This means that you do not have the command line program "rm" installed on your computer, or it is installed but the file path for the rm executable (rm.exe) is not in the PATH environment variable.

    You can get rm for instance by installing Minimalist GNU for Windows (MinGW).

    Regards,
    Terje

  • Hi,

    I have already installed MinGW still not recognized "rm --version", so I have set it in the PATH environment variable and execute again "rm --version". Please find below attached result - 

    Microsoft Windows [Version 10.0.18363.1316]
    (c) 2019 Microsoft Corporation. All rights reserved.

    C:\Users\SMET>rm --version
    rm (GNU coreutils) 5.97
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software. You may redistribute copies of it under the terms of
    the GNU General Public License <www.gnu.org/.../gpl.html>.
    There is NO WARRANTY, to the extent permitted by law.

    Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.

    C:\Users\SMET>cd..

    C:\Users>d:

    D:\>cd D:\Megha\Nordic\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc

    D:\Megha\Nordic\Megha_Embedded_System\thingysdkv210\project\pca20020_s132\armgcc>rm --version
    rm (GNU coreutils) 5.97
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software. You may redistribute copies of it under the terms of
    the GNU General Public License <www.gnu.org/.../gpl.html>.
    There is NO WARRANTY, to the extent permitted by law.

    Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.

    Regards,

    Megha Choudhari

  • Hi,

    With that now in order, you should be able to go back to building the project, with "make -j"?

    Regards,
    Terje

  • Hi,

    Have a nice day!!!!

    Thanks a lot. Able to build successfully.

    Once again thanks for your valuable time, looking forward for future support also.

    Regards,

    Megha Choudhari

Related