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

Device reset is happening again and again while calling the function

Hi,

I am working on project which is based on nrf9160. I added the source files and user define header files . and also given the path of source file in CMake file. Build is successful. But when i put the break point in function (function defined in some other source file and i m calling function from some other file) ,it is not juming to the function. Before jumping to function device get reset. Please help me out

2. after reset of device and when debugging is stopped it is showing like this -

Parents Reply Children
  • Hi,

     

    shruti mishra said:
    Why the data section from the solution build is not updating . As i defined some of the functions in Protocol_SupportFuncs.c and Calling those functions from the MICmdInterpreter.c but why data section from solution build is not updating , Those function are creating a device reset which i defined in Protocol_SupportFunc.c and  Ascii.c .

    Is the added usage used, or is the compiler/linker dropping some code? Can you check your build output before and after adding the code?

    I tried this and it updates the RAM and flash usage accordingly at my end after rebuilding:

     

     

    shruti mishra said:
    Those function are creating a device reset which i defined in Protocol_SupportFunc.c and  Ascii.c .

     Are you able to see where or get a fault print out? Can you try to select "ASSERT" in menuconfig (or open prj.conf and add CONFIG_ASSERT=y) to see if this has an impact?

     

    Kind regards,

    Håkon

Related