SHCI_C2_Reinit produces error code 0xFE (and an invalid HCI command complete packet)
I just updated SBSFU to version 2.4.0 (this version finally uses SHCI_C2_Reinit() to allow the application to run the regular initialization sequence even if C2 is already started by SBSFU)
SBSFU 2.4.0 now always initialized C2 (independently of it acutally being used) and calls SHCI_C2_Reinit before starting the external loader or the user application.
With 2.4.0 now our Bluetooth Loader does not start successfully anymore since C2 is already booted. The Bluetooth Loader uses the __SEV() method which should allow it to use C2 even if it is already initialized - under the condition that SHCI_C2_Reinit() has been called.
During investigations I realized that the call to SCHI_C2_Reinit() produces a non-zero error code. Specifically it produces 0xFE. This error code is not defined for HCI, and even if it is a custom error code, AN5289 does not give details on it.
One match I could find would be FUS_STATE_NOT_RUNNING (0xFE) which is a FUS state error value (ment to be obtained via SHCI_C2_FUS_GetState() ). Just in case this would be the case I checked with SHCI_C2_FUS_GetState() and FUS is indeed running (returns with error code 0x00 when called twice in a row). Also the SHCI_C2_FUS_LockUsrKey() completes successfully (this method is called shortly before SHCI_C2_Reinit() in SE_CRYPTO_Lock_Keys() ). So I assume FUS is running correctly on CPU2.
During debugging I also stumbled upon this:
An HCI command complete packet should have the following format:

But the command opcode fields do not reflect the opcode of SHCI_OPCODE_C2_REINIT (0xFC6F), but are instead set to the returned error code (254 / 0xFE, coincidence?):

(this is taken on the return line of SHCI_C2_Reinit in shci.c)
For other commands (checked SHCI_C2_FUS_LockUsrKey and SHCI_C2_FUS_GetState) the cmdcode field is set correctly.
Is there a problem with the SHIC_C2_Reinit command? Is it somehow an expected behaviour (but why then is __SEV() during application/loader C2 init not working?)
This issue is a large blocker for us, a timely response is highly appreciated. TIA!
Platform Details:
FUS 1.1.0
BLE Stack Full 1.8.0
STM32WB55CEU on custom board
