CC1352P: How to save the data on crash

Part Number: CC1352P

Tool/software:

is there any example in sdk to save the data before crash i.e suppose like null pointer free crash , no memory allocation 
i just wanted to save the crash reason in some storage
currently have spi with external flash, i2c with eeprom 
is there any way to save before crash ..?