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

PC-BLE-Driver (C/C++) Installation on Windows 10 : Building Problem of Connectivity HEX file with MSBuild & CMD.exe

Hello, this is Kwonjoon Lee from Korea.
I would like to ask about building problem of connectivity HEX file of pc-ble-driver (C/C++).

Actually, installation of the pc-ble-driver (C/C++) on Windows have many issues !!! 
so that I cannot install smoothly according to the guide in the following Git Hub. Please help me.
(https://github.com/NordicSemiconductor/pc-ble-driver#Architecture

(Development Environments)

1) Windows 10 64 Bit with cmd.exe (administrator)
2) Visual Studio 2015
3) GCC-ARM-Embedded Version : 7.3.1

(Default installation version of the guide was 7.2.1, and it had cmake error during "Compiling Connectivity HEX Files on the Windows" 
in the above-mentioned Git Hub guide due to the version of the gcc-arm-embedded. So I changed it)

4) Python Version 3.7.2

(Detailed Problem)

During the 3. MSBuild stage, building is progressed and successful for a while, 
However, I got a error in the building of "compile_connectivity_1.0.0_usb_with_s132_3.1.0.vcproj" as following sentences.

CustomBuild:
Generating connectivity_1.0.0_usb_with_s132_3.1.0_cmd
Makefile:260: Cannot find source file: ../../../../../../components/serialization/connectivity/codecs/ble/serializers
/conn_ble_l2cap_sdu_pool_1.c
Assembling file: gcc_startup_nrf52840.S
Compiling file: nrf_log_backend_rtt.c
Compiling file: nrf_log_backend_serial.c

..........

Compiling file: ble_gatts_evt_conn.c
Compiling file: ble_gatts_struct_serialization.c
Compiling file: ble_l2cap_conn_1.c
../../../../../../components/serialization/connectivity/codecs/ble/serializers/ble_l2cap_conn_1.c:47:10: fatal error:
conn_ble_l2cap_sdu_pool_1.h: No such file or directory
#include "conn_ble_l2cap_sdu_pool_1.h" // #include "conn_ble_l2cap_sdu_pool.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../../../../../components/toolchain/gcc/Makefile.common:272: _build/nrf52840_xxaa/ble_l2cap_conn_1.c.o]
Error 1
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe"이(가)
종료되었습니다(코드: 2). [C:\pc-ble-driver-master\hex\build\compile_connectivity_1.0.0_usb_with_s132_3.1.0.vcxproj]

As shown in the above-mentioned error message, the Makefile could not find "conn_ble_l2cap_sdu_pool.c" & "conn_ble_l2cap_sdu_pool.h"
So, I opened the Makefile in the following path

(Makefile Path)

C:\Users\~~~~~\AppData\Local\Temp\pc-ble-driver\sdks\v15\nRF5_SDK_15.2.0_9412b96
\examples\connectivity\ble_connectivity\pca10056\ser_s132v3_usb_hci\armgcc

(Related Contents in the Makefile)

$(SDK_ROOT)/components/serialization/connectivity/codecs/ble/serializers/conn_ble_l2cap_sdu_pool_1.c \

And, I found "conn_ble_l2cap_sdu_pool.c" & "conn_ble_l2cap_sdu_pool.h" are located 
in the following path without any path error.

C:\Users\krbong\AppData\Local\Temp\pc-ble-driver\sdks\v15\nRF5_SDK_15.2.0_9412b96
\components\serialization\connectivity\codecs\ble\serializers

Also, I checked that above-mentioned path have full read & write authority, 
and I made above-mentioned folders as a exception folder for anti-virus program.

However, still build error is generated. I have no idea. 
If you need additional evidence & files, I can provide you.

If you give me any answer, it will be huge help for me.

Best regards,
Kwonjoon Lee

Parents
  • Hi,

    I'm not able to reproduce this error. I would recommend that you try removing all files/directories in the build directory and try running cmake/msbuild again. If this does not work, make sure you follow every step in the instructions carefully from the start.

    Another thing to mention is that you should swap out the Python version you have installed and use Python 2.7.x instead. This is required by nrfutil, and you need to make sure you install nrfutil through pip for Python 2.7 to be able to build the USB connectivity firmwares.

    Best regards,
    Jørgen

  • I really appreciate your reply !!

    I will try to compile hex file according to your guide one more time.
    If error still occurs, I will let you know.

    Could you tell me your development environment in detail?
    For example, OS type and version, python version (2.7.x? and 32 or 64 bit?), pip version, nrfutil version.

    Best regards,
    Kwonjoon Lee

Reply Children
No Data
Related