I'm using S332 0.9.1 with freertos. nRF52. BLE and ANT are both active. I would like to run the ANT continuos wave (CW) test after a specific trigger (a command over a console).
I found this thread: https://devzone.nordicsemi.com/question/85238/nrf52-ant-cw-test-with-sd212-091
It works as a brand new main(), but I can't manage to embed it into my code. I stopped all active BLE services, and then stop advertising. I stopped all the ANT channels. Then:
sd_ant_stack_reset();
sd_ant_cw_test_mode_init();
sd_clock_hfclk_request();
(some delay)
sd_ant_cw_test_mode(33,RADIO_TX_POWER_LVL_CUSTOM,RADIO_TXPOWER_TXPOWER_0dBm,0);
I think the CW starts, but immediately something stops it.
Any hint?