BMS SDK dereferences NULL_PTR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BMS SDK dereferences NULL_PTR

283 Views
PhilippH
Contributor III

Hi,

in the Phy 665a driver within BMS SDK, pxReqLowConfig is dereferenced, even if it is NULL_PTR (RequestQueueLow sideband not used for gateway device 0 configuration).

Call stack:

Level,Function,Stack Frame,Source,PC,Return Address,Stack Used
0,"<MemManage Exception>","32 @ 0x2040DF00","exceptions.c:101:10",0x0060E874,"[0x2040DF18]: 0x0066D3E0",248
0,"Prv_Phy_665a_SpiPackMessageBatchInactiveSync","24 @ 0x2040DF20","CDD_Phy_665a_MsghSpi.c:2379:104",0x0066D3DE,"[0x2040DF34]: 0x0066D60A",216
0,"Prv_Phy_665a_SpiPackMessageBatch","24 @ 0x2040DF38","CDD_Phy_665a_MsghSpi.c:2551:18",0x0066D606,"[0x2040DF4C]: 0x0066DA8A",192
0,"Prv_Phy_665a_IO_SendMessageSpi","24 @ 0x2040DF50","CDD_Phy_665a_MsghSpi.c:3231:26",0x0066DA86,"[0x2040DF64]: 0x00666D34",168
0,"Phy_665a_IO_SendMessage","40 @ 0x2040DF68","CDD_Phy_665a.c:2037:30",0x00666D30,"[0x2040DF8C]: 0x0066E7FC",144
0,"Bms_TD_Send","24 @ 0x2040DF90","CDD_Bms_common.c:353:22",0x0066E7F8,"[0x2040DFA4]: 0x005D54E6",104

Version Information:

*   Project              : BMS GEN2 SDK AUTOSAR 4.7
*   Platform             : CORTEXM
*   Peripheral           :
*   Dependencies         :
*
*   Autosar Version      : 4.7.0
*   Autosar Revision     : ASR_REL_4_7_REV_0000
*   Autosar Conf.Variant :
*   SW Version           : 0.9.1
*   Build Version        : S32K3_BMS_GEN2_SDK_0_9_1_D2601_ASR_REL_4_7_REV_0000_20260120

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

186 Views
RafaR
NXP Employee
NXP Employee

Hello PhilippH

Could you please provide more details on the part numbers you are using? I’d like to check the drivers, and it would also be helpful if you could share the file.

I will be waiting for your response

Have a great day and best of luck.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2416766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBMS%20SDK%20dereferences%20NULL_PTR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3Ein%20the%20Phy%20665a%20driver%20within%20BMS%20SDK%2C%20pxReqLowConfig%26nbsp%3Bis%20dereferenced%2C%20even%20if%20it%20is%20NULL_PTR%20(%3CSPAN%3ERequestQueueLow%20sideband%20not%20used%20for%20gateway%20device%200%20configuration).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECall%20stack%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ELevel%2CFunction%2CStack%20Frame%2CSource%2CPC%2CReturn%20Address%2CStack%20Used%0A0%2C%22%3CMEMMANAGE%20exception%3D%22%22%3E%22%2C%2232%20%40%200x2040DF00%22%2C%22exceptions.c%3A101%3A10%22%2C0x0060E874%2C%22%5B0x2040DF18%5D%3A%200x0066D3E0%22%2C248%0A0%2C%22Prv_Phy_665a_SpiPackMessageBatchInactiveSync%22%2C%2224%20%40%200x2040DF20%22%2C%22CDD_Phy_665a_MsghSpi.c%3A2379%3A104%22%2C0x0066D3DE%2C%22%5B0x2040DF34%5D%3A%200x0066D60A%22%2C216%0A0%2C%22Prv_Phy_665a_SpiPackMessageBatch%22%2C%2224%20%40%200x2040DF38%22%2C%22CDD_Phy_665a_MsghSpi.c%3A2551%3A18%22%2C0x0066D606%2C%22%5B0x2040DF4C%5D%3A%200x0066DA8A%22%2C192%0A0%2C%22Prv_Phy_665a_IO_SendMessageSpi%22%2C%2224%20%40%200x2040DF50%22%2C%22CDD_Phy_665a_MsghSpi.c%3A3231%3A26%22%2C0x0066DA86%2C%22%5B0x2040DF64%5D%3A%200x00666D34%22%2C168%0A0%2C%22Phy_665a_IO_SendMessage%22%2C%2240%20%40%200x2040DF68%22%2C%22CDD_Phy_665a.c%3A2037%3A30%22%2C0x00666D30%2C%22%5B0x2040DF8C%5D%3A%200x0066E7FC%22%2C144%0A0%2C%22Bms_TD_Send%22%2C%2224%20%40%200x2040DF90%22%2C%22CDD_Bms_common.c%3A353%3A22%22%2C0x0066E7F8%2C%22%5B0x2040DFA4%5D%3A%200x005D54E6%22%2C104%3C%2FMEMMANAGE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EVersion%20Information%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E*%20%20%20Project%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%20BMS%20GEN2%20SDK%20AUTOSAR%204.7%0A*%20%20%20Platform%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%20CORTEXM%0A*%20%20%20Peripheral%20%20%20%20%20%20%20%20%20%20%20%3A%0A*%20%20%20Dependencies%20%20%20%20%20%20%20%20%20%3A%0A*%0A*%20%20%20Autosar%20Version%20%20%20%20%20%20%3A%204.7.0%0A*%20%20%20Autosar%20Revision%20%20%20%20%20%3A%20ASR_REL_4_7_REV_0000%0A*%20%20%20Autosar%20Conf.Variant%20%3A%0A*%20%20%20SW%20Version%20%20%20%20%20%20%20%20%20%20%20%3A%200.9.1%0A*%20%20%20Build%20Version%20%20%20%20%20%20%20%20%3A%20S32K3_BMS_GEN2_SDK_0_9_1_D2601_ASR_REL_4_7_REV_0000_20260120%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2416766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ES32%20SDK%20for%20S32K1%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2417680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20BMS%20SDK%20dereferences%20NULL_PTR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20PhilippH%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20provide%20more%20details%20on%20the%20part%20numbers%20you%20are%20using%3F%20I%E2%80%99d%20like%20to%20check%20the%20drivers%2C%20and%20it%20would%20also%20be%20helpful%20if%20you%20could%20share%20the%20file.%3C%2FP%3E%0A%3CP%3EI%20will%20be%20waiting%20for%20your%20response%3C%2FP%3E%0A%3CP%3EHave%20a%20great%20day%20and%20best%20of%20luck.%3C%2FP%3E%3C%2FLINGO-BODY%3E