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

SETTING UP A NEW PROJECT USING SDK 15

Hi Team Nordic,

I started developing a project using SDK 15 using DK nrf52840 .

I went through several threads and started by creating a test folder inside example directory . Now i copied the template folder in my test folder i.e.. example/ testFolder/ templateProject ..

And i wrote a simple program to read data from DHT11 sensor. But i am having the following error. I think I did not set up my project correctly.

Can you please have a look at error and suggest possible solutions. Also can you please refer me to a relevant tutorial that shows how to set up my project and how to add my different .c and .h files in the project. 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdbool.h>
#include <stdint.h>
#include "nrf.h"
#include "nordic_common.h"
#include "boards.h"
#include "nrf_delay.h"
#include "nrf_gpio.h "
#define MAXTIMINGS 85
#define DHTPIN 9
int dht11_dat[5] = { 0, 0, 0, 0, 0 };
void read_dht11_dat()
{
uint8_t laststate = 1;
uint8_t counter = 0;
uint8_t j = 0, i;
float f; /* fahrenheit */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks and Regards,

Arshdeep