FS2400 current consumption after wakeup

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FS2400 current consumption after wakeup

83 次查看
PINKMAN
Contributor III

hello expert:

my chip is S32K312 and SBC is FS2400

now i need to wake up the chip and the wakeup source is a GPIO falling edge

before make S32K312 going to standby ,i set the FS2400 goto LPON mode 

/* register M_WU1_EN : filed CAN_WUEN set to wakeup and interrupt(03) */

Sbc_FS24_Ip_WriteRegister(0, SBC_FS24_IP_M_WU1_EN_ADDR, SBC_FS24_IP_M_CAN_WUEN_MASK);

/* register M_IOWU_EN : filed WAKE2,WAKE3,HVIO1 set to no wakeup and interrupt(00) */

Sbc_FS24_Ip_WriteRegister(0, SBC_FS24_IP_M_IOWU_EN_ADDR, 0x00);

/* register M_CAN : filed CAN MODE set to Transceiver receive only mode */

Sbc_FS24_Ip_WriteRegister(0, SBC_FS24_IP_M_CAN_ADDR, SBC_FS24_IP_M_CAN_MODE_RX_ONLY);

/* go to LPON mode */

Sbc_FS24_Ip_WriteRegister(0, SBC_FS24_IP_M_SYS_CFG_ADDR, SBC_FS24_IP_M_GO2LPON_MASK)

 

after wakeup ,i set the SBC goto normal

Lpspi_Ip_Init(&Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_SBC_Instance_0);

Sbc_FS24_Ip_InitDriver(&Sbc_FS24_Ip_Config);

Sbc_FS24_Ip_InitDevice(SBC_FS24_DEVICE_ID);

eReturnValue = Sbc_FS24_Ip_CanTrcvSetState(SBC_FS24_DEVICE_ID, SBC_FS24_CANTRCV_STATE_ACTIVE);

Sbc_FS24_Ip_WriteRegister(0, SBC_FS24_IP_M_SYS_CFG_ADDR, SBC_FS24_IP_M_GO2NORMAL_MASK);

 

i found the current consumption is 54mA but the POR current consumption is 72mA

 

if i do nothing about the SBC before goto standby ,after wakeup ,the current consumption is same as POR,

so i think the sbc status is something wrong ,can you tell me why?

 

0 项奖励
回复
2 回复数

30 次查看
RafaR
NXP Employee
NXP Employee

Hello PINKMAN

Good day!

Based on the behavior you described, I do not think the FS2400 is necessarily "stuck", but it is very likely that after waking from LPON the SBC is not returning to exactly the same configuration/state as after a POR

The datasheet states that waking from LPON returns the device directly to Normal mode through the wake-up sequence. The device does not re-enter INIT state automatically after an LPON wake-up

Also, if the device goes in LPON or LPOFF or Fail-safe mode while in INIT state, the device stays in INIT state, which can lead to misconfiguration of the device. It is recommended to read the INIT_S status bit in M_STATUS register before going to LPON or LPOFF mode, and to go only if the device is no longer in INIT state


I would capture and compare the following registers in both cases (POR path and LPON-wakeup path):

M_STATUS

M_SYS_CFG

M_CAN

M_SYS1_CFG

M_REG_CTRL

M_IOWU_EN

M_WU1_EN

 

I hope this information has helped you, please let me know if you need help with anything else.

Have a great day and best of luck.

0 项奖励
回复

10 次查看
PINKMAN
Contributor III

hi : RafaR

Based on your suggestion, I compared the FS2400 registers during POR and wake-up. I found that during POR, the value of register M_REG_CTRL is 0x04, while after wake-up, the value of register M_REG_CTRL is 0x1304. Based on this finding, I traced it to the function Sbc_FS24_Ip_InitDevice → Sbc_FS24_Ip_OptionalInitSequence → Sbc_FS24_Ip_InitMain, where there is an operation on M_REG_CTRL. However, this function has a prerequisite that SBC_FS24_NORMAL == ePowState. Therefore, during POR, this function can be executed, but during wake-up, GOTONORMAL is executed after Sbc_FS24_Ip_InitDevice, so this function cannot be executed, resulting in a power consumption difference.

So I have two questions:
1. Is Sbc_FS24_Ip_InitDevice mandatory? Because I found that even if I do not call it during initialization, CAN message transmission/reception and power supply still work fine.
2. Where does this power consumption difference mainly come from?

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2403637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFS2400%20%E5%94%A4%E9%86%92%E5%90%8E%E7%9A%84%E7%94%B5%E6%B5%81%E6%B6%88%E8%80%97%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%B8%93%E5%AE%B6%E6%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%8E%EF%BC%8C%E7%94%B5%E6%B5%81%E6%B6%88%E8%80%97%E4%B8%8E%E4%B8%8A%E7%94%B5%20(POR)%20%E6%97%B6%E7%9B%B8%E5%90%8C%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%89%80%E4%BB%A5%E6%88%91%E8%AE%A4%E4%B8%BASBC%E7%8A%B6%E6%80%81%E6%9C%89%E9%97%AE%E9%A2%98%EF%BC%8C%E4%BD%A0%E8%83%BD%E5%91%8A%E8%AF%89%E6%88%91%E4%B8%BA%E4%BB%80%E4%B9%88%E5%90%97%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403795%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FS2400%20current%20consumption%20after%20wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403795%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8CPINKMAN%3C%2FP%3E%0A%3CP%3E%E5%86%8D%E4%BC%9A%EF%BC%81%3C%2FP%3E%0A%3CP%3E%E6%A0%B9%E6%8D%AE%E6%82%A8%E6%8F%8F%E8%BF%B0%E7%9A%84%E6%83%85%E5%86%B5%EF%BC%8C%E6%88%91%E8%AE%A4%E4%B8%BA%20FS2400%20%E4%B8%8D%E4%B8%80%E5%AE%9A%E2%80%9C%E5%8D%A1%E4%BD%8F%E2%80%9D%EF%BC%8C%E4%BD%86%E5%BE%88%E5%8F%AF%E8%83%BD%E6%98%AF%20SBC%20%E4%BB%8E%20LPON%20%E5%94%A4%E9%86%92%E5%90%8E%EF%BC%8C%E5%85%B6%E9%85%8D%E7%BD%AE%2F%E7%8A%B6%E6%80%81%E4%B8%8E%20POR%20%E5%90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