Ok I’m new to ARM / Nordic and Bluetooth but after a bunch of reading I downloaded SES and the Mesh SDK and got the light switch demo to both compile and run on a few boards. So I have working hardware and a system that can compile code! Yea!
So what I want to do now is put a small delay between the button press and when the LEDs change their state. Say 5 seconds between pressing the button and the led turning on and 10 seconds between pressing the button and an LED turning off.
Nothing too complicated but just a start of writing code that can work with the example / SDK.
I did some reading and it sounded like using APP_TIMER was the way to go. However getting that to work with the mesh example has been pretty frustrating.
I’m still on the learning curve so I don’t know what I don’t know – if that makes sense.
I copied the whole mesh project to a different directory and figured I could modified it and could always go back to the original if I got stuck. I added the app_timer.c and app_timer.h files and they’re showing up in the Application folder in SES. The code seems to be compiling, but maybe it isn’t? at least in the Project Explorer in SES looking in the Project Items the “Code” and “Data” column it’s not showing up anything for the app_timer.c and app_timer.h files. That’s my first indicator that something might be wrong? It also gives an error when generating the linker script. Saying that there are undefined references to ’app_timer_init’
So my first question is:
- So I’m not 100% sure what’s going on or if I did something wrong. Where do I need go from here?
I did some more reading and I’m thinking maybe I’m supposed to change sdk_config.h? I downloaded java and got the CMSIS configuration wizard but I’m unsure if this is just for the regular SDK or the Mesh_SDK? If there’s one for each does that mean there are 2 files I need to change?
So my second question is:
- Is it sounding like I’m heading in the right direction with a sdk_config.h issue? And where do I need to go from here?
Is the sdk_config.h the thing I need to work with someone mentioned in a post(I believe it was endnode) about using USE_APP_CONFIG but I’m guessing that means it uses the default sdk_config.h and overwrites parts for a specific app?
If my assumption is correct:
- How is the best way to go about doing this? Especially later on where here are a lot more modules from the sdk that are enabled?
If anyone can point me towards a tutorial to help me move on I’ll try to figure it out. I’m just at a bit of a loss as to what I’m supposed to do next.
Also, I wanted to say thanks for putting together the 7 part tutorials on youtube for getting SES up and running with Nordic. I didn’t find them at first but stumbled upon then later on and it was nice to see I had gotten things “close” but still didn’t know about the white spaces issue with the directory names and trying to keep the names as close to the root drive as possible. They tutorials were both very detailed and very helpful! If they could have one or two more that continue to how to modify a file to do one or two simple things with modifying setting files and such I think I could have figured out the rest of it on my own.
Hopefully this was easy for you guys to follow and thanks in advance for the help!