Coredump not logged

Hey

I have tried to enable and test coredump as shown in this example: https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/topic/exercise-2-11/

When i trigger the core dump with a shell cmd in my setup i do not get any logs printet to my console. 

Can i get some help understanding why that is? 

Parents Reply
  • yes i do get logs before sending the command.

    I trigger the core dump with the "crash_function" defined in the exercise: 

    void crash_function(uint32_t *addr)
    {
    	LOG_INF("Button pressed at %" PRIu32, k_cycle_get_32());
    	LOG_INF("Coredump: %s", CONFIG_BOARD);
    
    	#if !defined(CONFIG_CPU_CORTEX_M)
    	/* For null pointer reference */
    	*addr = 0;
    	#else
    		ARG_UNUSED(addr);
    		/* Dereferencing null-pointer in TrustZone-enabled
    	 	* builds may crash the system, so use, instead an
    	 	* undefined instruction to trigger a CPU fault.
    	 	*/
    	__asm__ volatile("udf #0" : : : );
    #endif
    }

Children
Related