Hi everyone, I'm having issues in detecting the debug mode using an SBC FS23 in pair with a S32K312 microcontroller.
More specifically I'm using an SBC FS23 with HVBUCK regulator.
As suggested by SBC datasheet, I connected DBG pin to VBOS output (using a diode in series between the two pins); then I use the Sbc_fs23 APIs in order to initialize the SBC and configuring RSTb impact on watchdog refresh; code runs well, but when I use the debugger to break the execution of the code when watchdog total timeout expires SBC goes into fail state, resetting microcontroller and power line (100ms).
Reading the M_SYS1_CFG register (address 0x06), the reported value is 0x0100, so the DBG_MODE is set to 0 and thus the device is not in debug mode.
I checked voltage levels at pin VBOS, VDBG and VDIG and they seems to be within the expected range for the device to enter in debug mode. Also, the OTP programming load should not be bypassed (M_SYS1_CFG bit LOAD_OTP_BYP set to 0); the only value in M_SYS1_CFG set to one is VBOS2V1_SW_ALWAYS_EN.
From my understanding of datasheet, with a new cold start the debug mode shall be detected in this way, but, it does not happen; I also tried to open the circuit and force +5V on the DBG pin but the device seems not to go in debug mode.
Do you have any suggesetion? Thanks in advance