BLE Fundamentals Lesson 1

I'm an experienced HW engineer with minimal SW experience.  I just went through your SDK fundaments with an nRF52840DK to get acclimated to your SDK and brush up on some C coding.  I've now started your BLE Fundamentals and already have an issue in Lesson 1.

The exercise says to use the Peripheral LBS file and "add a build configuration".  I see that there are 2 .conf files (prj and prj_minimal).  Presumably only one of these should be selected?  Does it matter which one?

I've tried building with each of them (and both of them) but have not yet gotten any LED to flash.  Any suggestions?

in case it's relevant, I'm using SDK v2.9.1.

Parents
  • Hi Doctiplus.

    Thanks for posting this, I'm in a similar boat (mostly HW, just diving into the SW side with the nRF SDK). From what I understand, you should pick one .conf file, typically prj.conf for the full feature set unless the lesson specifically asks for the minimal version. Using both can definitely cause conflicts.

    Also, make sure you've selected the correct build configuration in your IDE (e.g., in VS Code with the nRF extension). I had a similar issue, and it turned out I was building, but not flashing the board properly. Double-check your flash/debug settings too.

    Let us know if you get it working, I'm curious how it turns out!

Reply
  • Hi Doctiplus.

    Thanks for posting this, I'm in a similar boat (mostly HW, just diving into the SW side with the nRF SDK). From what I understand, you should pick one .conf file, typically prj.conf for the full feature set unless the lesson specifically asks for the minimal version. Using both can definitely cause conflicts.

    Also, make sure you've selected the correct build configuration in your IDE (e.g., in VS Code with the nRF extension). I had a similar issue, and it turned out I was building, but not flashing the board properly. Double-check your flash/debug settings too.

    Let us know if you get it working, I'm curious how it turns out!

Children
  • Thanks!  It seems like the 4th time was the charm.

    After my first 2 iterations, I concluded that prj.conf was probably the preferred file.  No idea why it didn't work when I tried it those first 2 times.  And when I tried it a third time (even redownloading the files from github) it still didn't work.

    Maybe your comment about "not flashing the board properly" is the only reasonable explanation?  This 4th time I used Erase And Flash To Board (instead of just Flash) and now it works.  Not sure why that would have been required since I don't recall ever using that approach before.  But thanks for the suggestion!

Related