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

SoftDevice binary not included in target? How to make my simple advertising code working?

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:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
File : main.c
Purpose : Generic application start
*/
#include <nrf_sdm.h>
#include <ble.h>
void stop_on_fault(uint32_t id, uint32_t pc, uint32_t info)
{
while(1);
}
/*********************************************************************
*
* main()
*
* Function description
* Application entry point.
*/
void main(void) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I must missed something, maybe some settings in the Segger IDE?