I'm trying to work on a low power mode for my project based off the S32 FRDM board (S32K144 and MC33905D SBC), and I'm having issues putting the SBC to sleep.
Based on the available drivers, I'm attempting to do this by
- Create an sbc_can_config_t struct that sets the mode to "SBC_CAN_MODE_SLEEP_WITH_WAKEUP" over SBC_SetCanMode();
- Checking to see if a wakeup message has occurred on the bus by periodically sending SBC_GetWakeupReason(); and checking the response
Is this approach valid?
Currently the LPSPI seems to send the message when setting the CAN mode, but time out and get caught in an interrupt. I'm still looking into the issue, but my knee-jerk assumption is that the SBC is going into a sleep mode and not acknowledging the SPI communication. Does this sound logical?
I'm pretty new to both components, and really hoping someone can point me in the right direction here.