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

nrf52 spis Fatal Error when advertising

2021-02-01 EDBOND
Hi Nordic and fellow nrf users

In my project the host cpu is SPI master, Thusthe  nrf52 needs to  spis slave. Using 2  DK-52 Boards,
- nRF5_SDK_17.0.2_d674dde /examples /periphrals/ spi on one DK-nrf52,
- nRF5_SDK_17.0.2_d674dde/..../spis on the other DK, sending at most a handful of bytes, once per second to poll for status & exchange data with host

**This arrangement works fine**

Then on the the spis DK  I add the nRF5_SDK_17.0.2_d674dde/..../ble_peripheral/ble_app_hids_keyboard.
In general this too works fine  ->  when connected  (not advertsing) the DK demo setup can run for +24hrs with once per second spis transactions

However,
when advertising, after about 250 seconds ->   in the RTT log I get a "Fatal Error", and program quits.
- seems relativly deterministic. If I just restart, make no changes, will happen on the same exact countable spi transaction.
Close to unit8_t overflow?


- ble_app_hids_keyboard app
the APP transitions to slow advert at 60 seconds. If I disable this and stay in Fast Advertising, problem does not occur. But does occure if I let Fast Advet time out.
Liveable at the moment, but would like this to be resolved.

all spi/spis setting are pretty much example defaults.

Any suggetions on debugging this and or has simialr issue been resolved?

Best regards,
Eric

Related