Skip to content

Troubleshooting

Kakuke001 edited this page Dec 13, 2016 · 9 revisions

Issue 1

A known issue when people try to get their first program to run on Badgerboard is they get a error that looks like:

Documents\Arduino\libraries\badgerboard-master\src\badger.h:9:20: error: 
'Serial1' was not declared in this scope

This error most likely is caused by choosing wrong board Double check if you have chosen "LilyPad Arduino USB" as your board Tools -> Board -> LilyPad Arduino USB Pic 1

Issue 2

Another common mistake is that people paste the original devEUI, appEUI and appKey to their code. Like this:

WRONG !!!!!

const uint8_t devEUI[8] = {
1111222233334444
};

const uint8_t appKey[16] = {
11111111111122222222222233333333
};

const uint8_t appEUI[8] = {
1122334455667788
};

In Arduino code your devEUI, appEUI and appKey are represented by char array and should look similar to this example

RIGHT 👍

const uint8_t devEUI[8] = {
0x11, 0x11, 0x22, 0x22,
0x33, 0x33, 0x44, 0x44
};

const uint8_t appKey[16] = {
0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x22, 0x22,
0x22, 0x22, 0x22, 0x22,
0x33, 0x33, 0x33, 0x33
};

const uint8_t appEUI[8] = {
0x11, 0x22, 0x33, 0x44,
0x55, 0x66, 0x77, 0x88
};
Clone this wiki locally