May i know the reason for arm_hardfault errors, register dump errors and how to rectify them?
arm_hardfault is the Hard Fault exception handler. Hard Faults are unrecoverable system failures. It also catches SVC call exceptions that are performed in bad contexts.
These can be caused by a variety of reasons, but if you can provide more context about the code you're trying to run, we can try and figure out what went wrong and how to rectify this issue.