Error with makefile.common for microecc

I am following various tutorials on how to run an example DFU

I've tried: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Flib_bootloader_modules.html

and:  Getting started with Nordic's Secure DFU bootloader, a step by step guide  

I am being blocked by building microecc

I have installed make and am using: nRF5_SDK_15.3.0_59ac345

I've also modified Makefile.posix and Makefile.windows to point to where I have make installed

However there seems to be an error in the Makefile.common file which I have not modified.

It throws this error:

This is blocking our product development. Please help as soon as possible.

Parents
  • Hi Caleb

    Do you by any chance have a space in you system user name, such as "C:\Users\CALEB DUECK\"?

    I guess that your issue is that the command will stop at space and try to deal with them as two separate commands.

    Try to either remove the space from your user folder name, or save the folder to a path without space.

    Regads,
    Sigurd Hellesvik

  • Hello previously there was a space in the file path and round brackets.. I have since moved the nrf SDK to "C:\OTA\nRF5_SDK_15.3.0" it and I am getting the same error

Reply Children
  • Hi

    In that case, I guess it is something from your previous build which still has the path remembered.

    Try to clean build your project.
    Also try to do the microecc "make" again.

    Regards,
    Sigurd Hellesvik

  • Hello Sigurd, 
    The above is the error that is thrown when I try the microecc "make" after moving the SDK I have not yet successfully made it.
    I'll try a fresh installation.

  • I've tried freshly installing another SDK and I get the same error when I run make even though Users\CALEB is not in the path.
    C:\OTA\nRF5_SDK_17.1.0_ddde560\external\micro-ecc\nrf52nf_armgcc\armgcc>make
    mkdir _build
    'C:\Users\CALEB' is not recognized as an internal or external command,
    operable program or batch file.
    make: *** [../../../../components/toolchain/gcc/Makefile.common:254: _build] Error 1

  • After being able to call a Field Application Engineer I was informed that the issue was I was using windows cmd.
    He informed me that this does not work and I need to install cyguin. This resolved the issue once I had modified Makefile.posix and Makefile.windows to point to where GNU Tools are installed.

  • Issue was that I was trying to build in windows command prompt. I had to install cyguin and another version of make.