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
  • I reinstalled the whole toolchain again and tried with that zip you told me: nRF51_SDK_10.0.0_dc26b5e.zip

    But still, the behaviour is the same :(. I'll write the steps I do:

    1. Reinstall Keil. I uninstall everything and remove all the files.
    2. I run the example inside the folder examples/ant/ant_broadcast/broadcast_tx
    3. Keil starts updating automatically, and downloads everything from his server, even the nordic components. This steps worries me, maybe the files keil downloads are not the correct ones? I didn't have to run nRF5x_MDK_8_2_0_Keil4.msi to get everything to compile.
    4. Start compiling and debugging. Everything is the same as before, no EVENTS.

    It's frustrating being stuck because of this :(

    EDIT:

    Finally I get some difference in my toolchain now. What I did: I reinstalled Keil, Installed nRF5x_MDK_8_2_0_Keil4.msi and then let Keil update itself.

    To test if this changes something, I tried to upload my code this time but I am getting the typical Error: Flash Download failed - "Cortex-M0" . Softdevice and Application are overlapping apparently. I have this settings: http://imgur.com/a/aH9pX

    EDIT2: Just changed this parameters to IROM1: 0xD000 0x33000, IRAM1: 0x20000900 0x7700 and managed to upload. Now, I just realised that I actually am in a kind of reset loop. When the event EVENT_RX_SEARCH_TIMEOUT, because when I change the values of sd_ant_channel_rx_search_timeout_set and sd_ant_channel_low_priority_rx_search_timeout_set, the time to go to reset changes as well. Any idea?

    Thanks a lot!

Reply
  • I reinstalled the whole toolchain again and tried with that zip you told me: nRF51_SDK_10.0.0_dc26b5e.zip

    But still, the behaviour is the same :(. I'll write the steps I do:

    1. Reinstall Keil. I uninstall everything and remove all the files.
    2. I run the example inside the folder examples/ant/ant_broadcast/broadcast_tx
    3. Keil starts updating automatically, and downloads everything from his server, even the nordic components. This steps worries me, maybe the files keil downloads are not the correct ones? I didn't have to run nRF5x_MDK_8_2_0_Keil4.msi to get everything to compile.
    4. Start compiling and debugging. Everything is the same as before, no EVENTS.

    It's frustrating being stuck because of this :(

    EDIT:

    Finally I get some difference in my toolchain now. What I did: I reinstalled Keil, Installed nRF5x_MDK_8_2_0_Keil4.msi and then let Keil update itself.

    To test if this changes something, I tried to upload my code this time but I am getting the typical Error: Flash Download failed - "Cortex-M0" . Softdevice and Application are overlapping apparently. I have this settings: http://imgur.com/a/aH9pX

    EDIT2: Just changed this parameters to IROM1: 0xD000 0x33000, IRAM1: 0x20000900 0x7700 and managed to upload. Now, I just realised that I actually am in a kind of reset loop. When the event EVENT_RX_SEARCH_TIMEOUT, because when I change the values of sd_ant_channel_rx_search_timeout_set and sd_ant_channel_low_priority_rx_search_timeout_set, the time to go to reset changes as well. Any idea?

    Thanks a lot!

Children
No Data
Related