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

Control Stuck at Soft device region 0 address at 0x6b0(sometimes at 0x640)

Hi,

   We are using nrf51822 QFAAH00 with SDK 110 v8.1.0 in our project, the application will hangs or not work when control stuck at address 0x6b0 (sometimes at 0x640) programmer in debug mode.

Sometimes code hangs in hardware fault loop,if i put break point before that instruction code where it is hangs, control has to be stop at break point instruction, But  when we view from call stack register control is stuck after the break point.

Linker Configuration  .icf configured as below :

define symbol __ICFEDIT_intvec_start__ = 0x00018000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x00018000;
define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x20002000;
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x800;
define symbol __ICFEDIT_size_heap__ = 0x200;
/**** End of ICF editor section. ###ICF###*/  

Thank,

Nagaraj

  • Hi,

       Please respond to above mentioned  issue, I am waiting for your reply.

    This is .map memory details after building the project:

    38 122 bytes of read-only code memory
    1 428 bytes of read-only data memory
    7 322 bytes of read-write data memory

    Thanks,

    Nagaraj

  • Hi,

        Please reply for above issue, Due to this issue project not moving forward.

    Thanks,

    Nagaraj

  • FormerMember
    0 FormerMember

    What does the application do before it starts hanging? Which functions are being called?

    If you use logging over UART/RTT what is going on before the application hangs?

    Does this problem only occur in debug mode?

  • Hi Kristin,

    Our Application will send battery status to central Device (Mobile app), able to communicate with central device but sometimes hangs in Soft-Device address.  

    We have tried with increasing the C-stack size up to 3 Kb for Soft-device and Application. When we comment the advertising part the code didn't hang in this case.

    We are not able to exactly locate the cause for the issue as sometimes the code will  not hang for hours, but sometimes the code will hang immediately as soon as we reset the board.

    This problem occurred in Debug mode as well as in release mode also.

    Let me know if you want more details.

                                                                                                                    

                                                                                                                       Log File

    Thanks,

    Nagaraj

  • Hi,

         Waiting for your reply, Application  hangs in control hard-fault and sometimes in soft-device lower address, This is happening not while Bluetooth stack initialization. 

    Thanks,

    Nagaraj

Related