HI
sd_ble_gap_adv_start() is returning INVALID_PARAM when it's being calling in ble_advertising.c I have read through the documentation and I don't see anything incorrect. Furthermore, both arguments (adv_params and m_conn_cfg_tag) are identical to the arguments in a second project that does not return this error, so I know these parameters will work in some situations.
Here is adv_params:
{
type = 0 '\000',
p_peer_addr = 0x0,
fp = 0 '\000',
interval = 40,
timeout = 30,
channel_mask = {
ch_37_off = 0 '\000',
ch_38_off = 0 '\000',
ch_39_off = 0 '\000'
}
Here is m_conn_cfg_tag:
$4 = 0 '\000'
Granted, these are two different programs (one has a custom service, the other is just the ble_app_cts_c example provided by Nordic), but I don't see how these other variables are related here.
PCA10040 nRF52832 SDK13