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

Priority of interrupt

Hi,

i am using nrf51822 custom board.

For our application i am using ble_app_hrs source code.

in that i have gpio interrupt for every 500ms, to get data from accelerometer and store in to local buffer.

i am writing these accelerometer data in to nor memory , once buffer get filled with 300 bytes.

and for every heart rate measurement timeout handler (in my case it is for every 15 seconds).

i am sending 140 bytes of data from nor to ble.

Q1. what will happen while data writing in to nor , if suddenly gpio interrupt came?. Q2. what will happen while data sending to ble from nor , if suddenly gpio interrupt came?. Q3. is data loss happen while sending data through ble ,if gpio interrupt came?.

in my case data is sending through ble for 2 to 3 times then it stop. there is no receiver link loss ,kindly suggest me.

but some times after 3 times of getting data. i got , [19:39:00.9] Lost connection to device. Reason: BTLE_CONNECTION_TIMEOUT [19:39:00.9] SERVER: Received packet <HciEvent: eventCode=0x0A> - HciEvent:eventCode=0x0A [19:39:00.9] SERVER: Received Link Loss

is it because of interrupts?

Regards Balaji

Parents
  • As you have been told previously:

    1. Remove the reset from app_error_handler, so that you can actually catch errors instead of just seeing a reset.
    2. Make sure that you don't use NVIC_* functions when the softdevice is enabled.
    3. If you write to internal flash, make sure to do it only on a "falling" radio notification event, i.e. right after radio activity.

    Please search through your old questions here, and make sure you understand all recommendations you have been given.

Reply
  • As you have been told previously:

    1. Remove the reset from app_error_handler, so that you can actually catch errors instead of just seeing a reset.
    2. Make sure that you don't use NVIC_* functions when the softdevice is enabled.
    3. If you write to internal flash, make sure to do it only on a "falling" radio notification event, i.e. right after radio activity.

    Please search through your old questions here, and make sure you understand all recommendations you have been given.

Children
No Data
Related