Hello everyone
i want to create button fucntion press the button for 3 seconds and then it has to start advertsing but i have excuted the button fucntion but it si showing some errors in gpiote files so any suggestion or ideas will be helpful for me
Hello everyone
i want to create button fucntion press the button for 3 seconds and then it has to start advertsing but i have excuted the button fucntion but it si showing some errors in gpiote files so any suggestion or ideas will be helpful for me
It would help if you also post what the errors say. If I am to guess what causes your errors then maybe you have forgot to enable the GPIOTE module by changing
#define GPIOTE_ENABLED 0
to
#define GPIOTE_ENABLED 1
in the nrf_drv_config.h file found in the folder "your_project_folder/config".
i have added the nrf_drv_gpiote.c /app_gpiote.c files then it is showing this errors GPIOTE IRQ HANDLER multiply defined
if i change the GIPOTE _ENABLED 1 then the softdevice part showign some errors also and i cannot able to load the program into the KIT
i have changed all the those things which was suggested by you after that ,it is getting compiled and no errors but i didnot get any responses from the board do i ahve to included any neccessary header files?
Have you remembered to program a softdevice onto your board? What SDK and/or example are you basing your code on? Maybe you can post your code?
yes am using the sdk version 9 and the button example now i am able to succed to see the button example workign very well can you suggest how to set the timer for 3 sec in the button example because i want to create the function like if i press the button for 3 sec led turn on and if i press the same button for 5 sec then the LED should turned off
I ahve attached my main.c file in this post