Hi,
I'm using Segger Embedded Studio with Ubuntu, trying to write a minimal code to let the chip start advertising.
I tried to read and understand the example codes provided in the SDK, but found myself frustrated understanding these Macros, data structures and the SoftDevice handler functions. Now I'm trying another approach to use the SoftDevice directly, I feel more comfortable to understand these Message Sequence Charts and related SoftDevice APIs.
I started a new nRF52832 project from the "New Project" menu of the IDE, included the necessary folders of the SDK, and wrote a very simple code. My target is to get the chip start advertising and that is all. The project get compiled with no error, but the code size it generated is only 1.7kB, apparently the SoftDevice is not included, but I don't now how to fix it, anybody can help?
Here is my code:
I must missed something, maybe some settings in the Segger IDE?