Please find the attached ROM API example for ADSP-SC594, which uses hook function that initializes a custom error handler function defined in the application.
When boot rom hits an error condition, it will come to the custom error handler in the application.
This place in the application can be managed by application to re-initiate booting for secondary (recovery) application.
For this below steps/flow will be required:
1.The loader application, will call the ROM API for main application with Hook routine installed.
2.The hook routine, can be used to remap the error function pointer to loader application space.
3.It will jump to error handler in application space for any issues in processing the bootROM.
4.Inside the error handler function, call ROM API to boot a recovery application.SC594_SSL_Core0.zip