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

ble fall in init after addition of twi

hello 

i am working with nrf52832 

my code is based on the Ble blinky example from centeral. i added to the code with ble, uart, saadc and pwm and it was working great

after addition of twi with sdk_config file addition which unfortunetly i didn't save before changes, and addition of a lib of nxp nfc reader, i fall in ' ble_init ' 

i get stuck here:

SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));

in the nrf_sdm.h file

i think it is related to the softdevice but i have no idea what changed (the ble files did not, the only thing i can think of is the sdk_config.h or the .emProject file 

any help on the metter will be most appritiated 

Best regards

Ziv

  • Hello Ziv,

    i fall in ' ble_init ' 

    Could you share code from "ble_init"? Are you referring to the ble_stack_init() from the blinky_c example? If so, have you made any changes to it?

    i get stuck here:
    i think it is related to the softdevice but i have no idea what changed (the ble files did not, the only thing i can think of is the sdk_config.h or the .emProject file 

    If this is the case, the SoftDevice is failing to enable.
    Which changes did you make to the sdk_config file?
    Did you make any changes to your clock configuration? Please take a look at this ticket.

    Best regards,
    Karl

     

  • hello 

    i am working with nrf52832 

    my code is based on the Ble blinky example from centeral. i added to the code with ble, uart, saadc and pwm and it was working great

    after addition of twi with sdk_config file addition which unfortunetly i didn't save before changes, and addition of a lib of nxp nfc reader, i fall in ' ble_init ' 

    i get stuck here:

    Fullscreen
    1
    SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));

    in the nrf_sdm.h file

    i think it is related to the softdevice but i have no idea what changed (the ble files did not, the only thing i can think of is the sdk_config.h or the .emProject file 

    any help on the metter will be most appritiated 

    Best regards

    Ziv

  • i don't think i made changes to the clock .. most changes i have doen are related to twi enabling and on define for the nxp nfc device (pn1750)

  • Hello Ziv,

    There is no new information in your last comment - it is just a copy and paste of what you wrote in your initial ticket.
    The trouble you're facing is that the SoftDevice fails its enabling, it seems. There could be many reasons for this, but the clock configuration is a common pitfall.

    In your other comment, you mention that you have made changes which you believe have nothing to do with the clock, and are mostly concerning the TWI and defines for nxp nfc device? Could you elaborate on these changes you've made?

    Best regards,
    Karl

  • hi Karl,

    There is no new information in your last comment - it is just a copy and paste of what you wrote in your initial ticket.

    yes i am sorry for that it was by mistake cause sometimes i am not sure if a message was sent since i don't see any feedback .. some connections issues i guess

    anyway .. i tried to compare between 2 sdk_configs to see difference .. i tried to change some things related to twi and timer but every change i made i reversed it and now it is working i have no idea why cause eventualy nothing was changed.. maybe there is some issue with segger saving versions or not updating on time .. i have no idea

    it would have been halpfull if there was a good guid for each driver on how to config the sdk_config file and where this configuration may colide with other things 

    i took sometime to configure twi again 

    anyway, no i have some issue with twi but i will open a new topic for that i think 

    thanks for now, hope this issue will not return 

    best regards

    Ziv

Related