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

Why is the function "gpiote_init()" conflicting with the bluetooth code?

Hello, I tried to add the code of the bluetooth tutorial called "Bluetooth low energy Characteristics, a beginner's tutorial", with a code that measures the delay of two forms of waves, but when debuging them together there is a function:

gpiote_init();

which is conflicting with the bluetooth transmission. (4 LEDs are on)

When I comment this function the bluetooth works normally. Why this happens? Do you help me find out the mistake?

The main.c is:

main.c

Parents
  • Okay, I've changed for TIMER1 and it's not conflicting with timer_init() anymore. It is still conflicting with gpiote_init() though... By "conflicting with the bluetooth transmission" I mean that ble does not work nor the delays are sent to the log. Also, the 4 LEDs are turned on. However, when I comment gpiote_init(), ble works and sends data and the LEDs are turned off with one LED blinking to indicate ble working! What shoud I change in gpiote_init() or in the bluetooth part of the code to make both work?

Reply
  • Okay, I've changed for TIMER1 and it's not conflicting with timer_init() anymore. It is still conflicting with gpiote_init() though... By "conflicting with the bluetooth transmission" I mean that ble does not work nor the delays are sent to the log. Also, the 4 LEDs are turned on. However, when I comment gpiote_init(), ble works and sends data and the LEDs are turned off with one LED blinking to indicate ble working! What shoud I change in gpiote_init() or in the bluetooth part of the code to make both work?

Children
No Data
Related