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

Run nrfutil dfu on a Raspberry Pi

Dear Community,

I am working on the following application: using the RaspberryPi to flash over-the-air nRF52 nodes (Nordic's Secure DFU BLE bootloader)

For that I have connected a PCA10056 to a RPi3, and now I am trying to use nrfutil to flash the nodes over BLE.

Unfortunately, it seems to be that the pc-ble-driver is not precompiled and working for the RPi ARM architecture. So my following step would be to build that from source code.

I had a first try but I was not successful. I am not sure if all the dependencies/tools are ready for the RPi. In the following post I have read that someone already did that:

https://devzone.nordicsemi.com/f/nordic-q-a/25402/how-to-arm-cross-compile-pc-ble-driver

Could you please explain how can we make it working on the RPi or even better to provide a guide showing how we can work with all your tools for nRF52 from a RPi computer?

I think it could be really interesting for the makers community.

Thank you in advance,

Javier

Parents
  • Hi,

    Compiling for Raspberry Pi have been done for an old version, see this blog post. I have not tested this myself, and I'm not aware if this have been done on later versions, however I do not see why it should not work.

    Can you describe your process for compiling and what issues you are facing? Are you trying to build pc-ble-driver, or pc-ble-driver-py?

    Best regards,
    Jørgen

  • Hi Jørgen,

    Thank for your support.

    I am trying to build pc-ble-driver-py (v0.11.4) in the RPi, but I am facing the following issue:

    [ 74%] Built target pc_ble_driver_shared_sd_api_v2
    
    [ 75%] Linking C shared module outdir/_pc_ble_driver_sd_api_v2.so
    
    Error copying directory from "/home/pi/pc-ble-driver-py/pc-ble-driver/cmake/../hex/SD_API_V2" to "/home/pi/pc-ble-driver-py/python/pc_ble_driver_py/hex/SD_API_V2".
    
    CMakeFiles/_pc_ble_driver_sd_api_v2.dir/build.make:85: recipe for target 'outdir/_pc_ble_driver_sd_api_v2.so' failed
    
    make[2]: *** [outdir/_pc_ble_driver_sd_api_v2.so] Error 1
    
    make[2]: *** Deleting file 'outdir/_pc_ble_driver_sd_api_v2.so'
    
    CMakeFiles/Makefile2:73: recipe for target 'CMakeFiles/_pc_ble_driver_sd_api_v2.dir/all' failed
    
    make[1]: *** [CMakeFiles/_pc_ble_driver_sd_api_v2.dir/all] Error 2
    
    Makefile:83: recipe for target 'all' failed
    
    make: *** [all] Error 2

    As far as I can see, those folder are existing but in lower case.

    Do you have in mind to provide working versions of these useful nRF tools for the RPi?

    Best regards,

    Javier

Reply
  • Hi Jørgen,

    Thank for your support.

    I am trying to build pc-ble-driver-py (v0.11.4) in the RPi, but I am facing the following issue:

    [ 74%] Built target pc_ble_driver_shared_sd_api_v2
    
    [ 75%] Linking C shared module outdir/_pc_ble_driver_sd_api_v2.so
    
    Error copying directory from "/home/pi/pc-ble-driver-py/pc-ble-driver/cmake/../hex/SD_API_V2" to "/home/pi/pc-ble-driver-py/python/pc_ble_driver_py/hex/SD_API_V2".
    
    CMakeFiles/_pc_ble_driver_sd_api_v2.dir/build.make:85: recipe for target 'outdir/_pc_ble_driver_sd_api_v2.so' failed
    
    make[2]: *** [outdir/_pc_ble_driver_sd_api_v2.so] Error 1
    
    make[2]: *** Deleting file 'outdir/_pc_ble_driver_sd_api_v2.so'
    
    CMakeFiles/Makefile2:73: recipe for target 'CMakeFiles/_pc_ble_driver_sd_api_v2.dir/all' failed
    
    make[1]: *** [CMakeFiles/_pc_ble_driver_sd_api_v2.dir/all] Error 2
    
    Makefile:83: recipe for target 'all' failed
    
    make: *** [all] Error 2

    As far as I can see, those folder are existing but in lower case.

    Do you have in mind to provide working versions of these useful nRF tools for the RPi?

    Best regards,

    Javier

Children
No Data
Related