When the main function is running, you need to do a CPU cycle diagnosis. What should I design?
1. CPU needs to save the status and register of the CPU before the self-test, how to save, can the diagnostic library have an interface to call? Is there an instance code for reference?
2. I don't quite understand that when calling the CPU self-test, it will generate a reset. Is the program restart, sys_startup.c -> _ c_int00 (), sys_main-> main (), so restart, initialize, The data saved in the previous run is okay, how to recover?
Please answer the above questions, thank you.