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

Events triggered in slave while not paired

Hi Nordic, I come from this question: devzone.nordicsemi.com/.../

So, my doubt is: what events are triggered in a slave channel while it is not communicating to a master?

I am having problems triggering EVENT_CHANNEL_CLOSED (the function sd_ant_channel_closed returns 0x00000, SUCESS, but the EVENT_CHANNEL_CLOSED never triggers) when an ANT channel is configured as slave and it is not communicating with any master (it didn't find any). I have also tried to get EVENT_RX_SEARCH_TIMEOUT and EVENT_RX_FAIL_GO_TO_SEARCH but they dont trigger either.

EDIT: I also realised that events related to sd_flash_write and sd_flash_erase (NRF_EVT_FLASH_OPERATION_SUCCESS or NRF_EVT_FLASH_OPERATION_ERROR, from sys evt dispatch function) don't trigger either when the slave has not found a master. Is this behaviour normal?

Parents
  • Hi again Petter!

    1. I check with the debugging tool, putting one breakpoint, only one. When I reach that breakpoint, I remove it and put it somewhere else, and reset the system to check again.

    2. To make sure I am not in a restart loop, after (and only after) starting my program I put a breakpoint in the beginning of the main(), making sure I don't go through that place again.

    3. If I put a breakpoint there I always reach it, err_code = 0x000000.

    4. I can't find app_error_fault_handler(). I put it in line 160 of arm_startup_nrf51.s (HardFault_Handler
      PROC EXPORT HardFault_Handler [WEAK] B .)

    5. I am using nrf51 DK. Laser markings: N51422QFACA11517AP (hopefully, maybe one changes, too small)

    I think I have a corrupt toolchain. After yesterday's trial of complete reinstallation it is giving some weird problems. Can you please tell me what version of everything you are using? And how to make a completely clean reinstallation of the whole toolchain. I tried to remove everything but keil was not completely uninstalled.

    PS: So, just to make sure, you are running the example I gave you under the name broadcast_tx (SLAVE in my case) and are getting these events to trigger? :(

    Thanks a lot!

Reply
  • Hi again Petter!

    1. I check with the debugging tool, putting one breakpoint, only one. When I reach that breakpoint, I remove it and put it somewhere else, and reset the system to check again.

    2. To make sure I am not in a restart loop, after (and only after) starting my program I put a breakpoint in the beginning of the main(), making sure I don't go through that place again.

    3. If I put a breakpoint there I always reach it, err_code = 0x000000.

    4. I can't find app_error_fault_handler(). I put it in line 160 of arm_startup_nrf51.s (HardFault_Handler
      PROC EXPORT HardFault_Handler [WEAK] B .)

    5. I am using nrf51 DK. Laser markings: N51422QFACA11517AP (hopefully, maybe one changes, too small)

    I think I have a corrupt toolchain. After yesterday's trial of complete reinstallation it is giving some weird problems. Can you please tell me what version of everything you are using? And how to make a completely clean reinstallation of the whole toolchain. I tried to remove everything but keil was not completely uninstalled.

    PS: So, just to make sure, you are running the example I gave you under the name broadcast_tx (SLAVE in my case) and are getting these events to trigger? :(

    Thanks a lot!

Children
No Data
Related