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 ESB and Serial together on nRF52

Hi all,

I am using a nRF52-DK board to receive data from the USB port using Serial, and transmitting it using ESB to a second board. If I use either Serial or ESB individually, it works fine. I have a problem when using both together. (I have set #define APP_TIMER_CONFIG_SWI_NUMBER 1)

If I do this procedure:

  • Receive a Serial packet
  • Send a "transmit start" message back through Serial
  • transmit the packet through ESB
  • Send a "transmit done" message back through Serial

then the returned Serial data is incomplete / corrupted and it won't accept any more serial data.

I am sure that it is possible to use Serial and ESB together, does the program need any special configuration to do so?

  • It seems that the UART example where there is an infinite while-loop isn't a good technique to use with ESB. Catching new Serial data in the "error" handler (which should perhaps be renamed in the example) seems to prevent the lockup.

Related