Storing Hard Fault information from hard fault handler in flash

Hi,

we are developing custom hard fault handler to get its information during non-debug mode. In order to collect the information in non-debug mode we are trying to store hard fault information in the flash.
If I try to use flash operations, Control is not coming out of their flash functions. I have tried to flash read as well as flash write both are not supporting.

Does it not possible to store Hard fault information in flash?

Thank you

Shreya,

Parents Reply
  • Thank you. I was using crc32_compute(),
    I has created a structure and stored debug information in that structure member. gave structure member value as input to crc32_compute() function and got CRC value and stored this value in the same structure member before reset. after reset checked the value in that structure member, value was zero.
    Am I wrong anywhere in performing the task suggested by you?

    even we have checked CRC value before and after reset for the same structure member. both values were different.

    please suggest us what to do!

Children
Related