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

Parents
  • 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

  • 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

  • Hello Ziv,

    ziv123 said:
    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..

    Are you certain that you did not change anything in the config?
    I would recommend you to familiarize with a version-tracking tool(such as github) to easily track the changes you have made, and to be able to quick and easily revert to a functioning version of your applications. 

    ziv123 said:
    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 

    You could see this in the Shared Resources section of each modules documentation, in the TWIM case you could read about it here. Mainly, you will have to look out for the shared ID's, which you can see an overview of in the Instatiation table.

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

    Yes, please do so.

    ziv123 said:
    thanks for now, hope this issue will not return 

    No problem at all, I am happy to help.

    Good luck with your development!

    Best regards,
    Karl

Reply
  • Hello Ziv,

    ziv123 said:
    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..

    Are you certain that you did not change anything in the config?
    I would recommend you to familiarize with a version-tracking tool(such as github) to easily track the changes you have made, and to be able to quick and easily revert to a functioning version of your applications. 

    ziv123 said:
    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 

    You could see this in the Shared Resources section of each modules documentation, in the TWIM case you could read about it here. Mainly, you will have to look out for the shared ID's, which you can see an overview of in the Instatiation table.

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

    Yes, please do so.

    ziv123 said:
    thanks for now, hope this issue will not return 

    No problem at all, I am happy to help.

    Good luck with your development!

    Best regards,
    Karl

Children
  • I would recommend you to familiarize with a version-tracking tool(such as github) to easily track the changes you have made, and to be able to quick and easily revert to a functioning version of your applications

    i am using one but since the config lib is out of the ses lib so it was not added till now to the git server

    You could see this in the Shared Resources section of each modules documentation,

    i am reading the documentation of each driver i am working on but most of the info there is more relevant to hardware, there is no real api or software support beside this forum, the sdk examples does give something to start with but are lacking many things or on the other hand to general, integration of modules and the complications of that is not explained anywhere, again except from this forum and it takes a long time to search for similar problems that also got firm solutions .. hope nordic will improve in that aspect of software people documentation support 

    thanks for now :) 

  • Hello again Ziv,

    ziv123 said:
    i am using one but since the config lib is out of the ses lib so it was not added till now to the git server

    Great, I am glad to hear you are already doing this! 

    ziv123 said:
    i am reading the documentation of each driver i am working on but most of the info there is more relevant to hardware, there is no real api or software support beside this forum, the sdk examples does give something to start with but are lacking many things or on the other hand to general, integration of modules and the complications of that is not explained anywhere, again except from this forum and it takes a long time to search for similar problems that also got firm solutions .. hope nordic will improve in that aspect of software people documentation support 

    I agree that it would be favorable if the process of merging functionality from different modules was more streamlined, but it is hard to make happen given the variety of applications that our customers make.
    Thank you for your feedback regarding the documentation and usage of the different modules, we are always looking for ways to improve the development process for our customers.

    ziv123 said:
    thanks for now :) 

    I am happy to help you Ziv!
    Please do not hesitate to let us know if you should encounter any other issues or questions.

    Best regards,
    Karl

Related