This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using application timer causes hardfault in ble_app_uart (S120) ?

I've modified the ble_app_uart example by adding GPIOTE so that the transmitter sends a character to the receiver when a GPIO pin is toggled. This part is working well.

Then, I used the application timer to count the number of falling edges occurring in a GPIO pin. I followed the advice in this thread.

This counter worked well if the transmitter did not link with the receiver.

When the receiver was switched on and linked to the transmitter, the counter stopped working.

Is there any way to count the number of falling edge in a GPIO pin without using the application timer?

The transmitter code was based on the ble_app_uart example over S120.

Parents Reply
  • There was no error message. It just froze.

    Here is the serial output without BLE.

    START: 10501  
    PULSE FREQ: 1000
    START: 76037
    PULSE FREQ: 1000
    

    The difference in the counter time is about 65000 = 2 seconds

    Here is the serial output with BLE.

    START: 0
    PULSE FREQ: 1000
    S  <<== Frozen
    
Children
No Data
Related