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

Mesh SDK v1.0.1 -- Coexistence with SDK 14.2

I'm having a problem merging the Mesh SDK v1.0.1 with nRF5 SDK 14.2 following the "Coexistence with other Nordic SDKs" section of the Mesh documentation.  I have a fresh unzip of the Mesh SDK and a fresh unzip of the nRF5 SDK both unaltered in any way.  The issue is with the SDK patch process,

I execute the following command: 

MacBook-Pro: ~/dev/nordic_semi/nRF5_SDK14.2.0_Mesh_SDK1.0.1 $ patch -p3 < ./examples/ble_mesh/external/nRF5_SDK_14.2.0_17b948a/nRF5_SDK_14.2.0_17b948a.patch

With the following shell failure output:

(Stripping trailing CRs from patch.)

patching file components/boards/pca10056.h

Hunk #1 FAILED at 53.

1 out of 1 hunk FAILED -- saving rejects to file components/boards/pca10056.h.rej

(Stripping trailing CRs from patch.)

patching file components/device/compiler_abstraction.h

Hunk #1 FAILED at 115.

1 out of 1 hunk FAILED -- saving rejects to file components/device/compiler_abstraction.h.rej

(Stripping trailing CRs from patch.)

patching file components/drivers_nrf/hal/nrf_gpio.h

Hunk #1 FAILED at 42.

1 out of 1 hunk FAILED -- saving rejects to file components/drivers_nrf/hal/nrf_gpio.h.rej

(Stripping trailing CRs from patch.)

patching file components/toolchain/arm/arm_startup_nrf51.s

Hunk #1 FAILED at 16.

1 out of 1 hunk FAILED -- saving rejects to file components/toolchain/arm/arm_startup_nrf51.s.rej

(Stripping trailing CRs from patch.)

patching file components/toolchain/arm/arm_startup_nrf52.s

Hunk #1 FAILED at 16.

1 out of 1 hunk FAILED -- saving rejects to file components/toolchain/arm/arm_startup_nrf52.s.rej

(Stripping trailing CRs from patch.)

patching file components/toolchain/arm/arm_startup_nrf52810.s

Hunk #1 FAILED at 16.

1 out of 1 hunk FAILED -- saving rejects to file components/toolchain/arm/arm_startup_nrf52810.s.rej

(Stripping trailing CRs from patch.)

patching file components/toolchain/arm/arm_startup_nrf52840.s

Hunk #1 FAILED at 16.

1 out of 1 hunk FAILED -- saving rejects to file components/toolchain/arm/arm_startup_nrf52840.s.rej

 

I'm executing the patch from the MacOS command line in, the top level nRF5 SDK directory, with the Mesh SDK located under examples in a directory named ble_mesh as outlined in the documentation.

Can anyone help? 

Thank you, Chris

  • I just tested this by copying every folder inside the mesh sdk v 1.0.1 (i.e. bin, CMake, doc, examples, external, mesh, models, scripts, tools) into the nordic sdk 14.2 folder. You probably don't need every folder & file from the mesh sdk to enable mesh inside an sdk example, so you could probably delete those you don't need. Then, I ran the patch exactly like you did & received this output:

    $ patch -p3 < ./external/nRF5_SDK_14.2.0_17b948a/nRF5_SDK_14.2.0_17b948a.patch
    (Stripping trailing CRs from patch; use --binary to disable.)
    patching file components/boards/pca10056.h
    (Stripping trailing CRs from patch; use --binary to disable.)
    patching file components/device/compiler_abstraction.h
    (Stripping trailing CRs from patch; use --binary to disable.)
    patching file components/drivers_nrf/hal/nrf_gpio.h
    (Stripping trailing CRs from patch; use --binary to disable.)
    patching file components/toolchain/arm/arm_startup_nrf51.s
    (Stripping trailing CRs from patch; use --binary to disable.)
    patching file components/toolchain/arm/arm_startup_nrf52.s
    (Stripping trailing CRs from patch; use --binary to disable.)
    patching file components/toolchain/arm/arm_startup_nrf52810.s
    (Stripping trailing CRs from patch; use --binary to disable.)
    patching file components/toolchain/arm/arm_startup_nrf52840.s
    

    Basically, it seems like it worked. The difference is that I was using Windows 10 instead of Mac. Could you try installing git bash instead of using the mac command line? Maybe that would help.

    I have previously encountered a problem with using the windows command line where the make command just would not work no matter what I tried. As soon as I ran make from git bash, everything miraculously worked. It could be that this might work.

    Could you try this out & let me know how it went? If that doesn't work, I'll test this on my own Mac & see if I can get it working.

     

Related