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

softdevice_handler deletes ble_enable_params for ble_stack_init()

Hi at all,

nice to join the community Slight smile

At the moment I'll try to initialize the ble_stack_init(). I use the Keil v5 with the Softdevice s132 on the nrf52832.

So the problem is the following. If I try to get the ram_start in the softdevice_handler --> softdevice_enable, like the first picture shows, the next step of the programm deletes me the "p_ble_enable_params" (showing on the second picture)

As a consequence the next step: err_code = sd_ble_enable(p_ble_enable_params, &app_ram_base); - gives me back the error 4 because the "p_ble_enable_params" is "not in scope". And for this reason I can't initilize the ble-stack.

Maybe someone knows this Problem an can help me that it will not deleted :) 

Thanks for all,

Marius 

Related