Giter Club home page Giter Club logo

Comments (7)

JF002 avatar JF002 commented on August 15, 2024

Hello,
I haven't tried to update the SDK to version 16.0.0 yet. Does it bring something useful for the project?

For the linking issue, did you add the file nrf_ble_gq/nrf_ble_gq.c in the ${SOURCE_FILES} variable in src/CMakeLists.txt? This specifies to cmake that it must build this .c file and link it in the final executable.

from infinitime.

jones139 avatar jones139 commented on August 15, 2024

Thanks - I don't know what extra V16.0 gives, it is just that I am setting up a new installation so was trying to use the most recent versions. I am pretty sure I did the change to CMakeLists that you suggest, because the nrf_ble_gq.c does compile - it just doesn't seem to be linking.....but I wonder if the order in the file is important - I might try re-ordering and see if that cures it.
Graham.

from infinitime.

JF002 avatar JF002 commented on August 15, 2024

The order in the CMake files should not be relevant, it should build all the C/C++ files and link them.
Maybe this nrf_ble_gq module need a #define in sdk_config.h ? By defautl, most of the modules from the NRF SDK are disabled by preprocessor instructions so that the code is not built if a specific variable is not defined. For example, to enable nrf_clock driver, you have to add

#ifndef NRF_CLOCK_ENABLED
#define NRF_CLOCK_ENABLED 1
#endif

in the file sdk_config.h.

from infinitime.

jones139 avatar jones139 commented on August 15, 2024

It might be something like that - I will have to check. From the make log it seems to have compiled ok and is in the list of object files to link, so I was struggling to see what might be wrong - but if the content of the library is commented out with a #ifdef, that could explain it. (I have it compiling ok under 15.3.0 SDK so not too worried about this).
Thanks!

from infinitime.

endian-albin avatar endian-albin commented on August 15, 2024

The other day I could also not build using SDK v16, but I tried it just now and it worked on v 0.7.0.

from infinitime.

endian-albin avatar endian-albin commented on August 15, 2024

It works on SDK v17 as well. I've built, flashed and synchronized time and date. @JF002, I believe you can close this issue :)

from infinitime.

JF002 avatar JF002 commented on August 15, 2024

I use less and less part of the SDKm that might explain why it compiles now :)

from infinitime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.