I am currently using 2156x series chips. During the boot process, I configured the DSP to boot from SPI2 slave mode, and turned on the CRC32 check switch. In the Init code, I added the event handling of the CRC32 check failure.
I want to transmit the event value to the host through the MISO pin of SPI2 when the verification fails. I don't know if this is feasible? If it is feasible, is there an implementation example for me to refer to?
I tried to add spi2 to call the API configuration function in the init code, but it compiled an error. I consulted the relevant manuals, the manual mentioned that the init code code cannot include calls to the runtime library. Can this function be realized in register writing mode?