SE050E detection issue in custom imx8mp board

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

SE050E detection issue in custom imx8mp board

639 Views
pratham_malaviya
Contributor III

Hi there,

I am trying to validate the SE050E chip interfaced in our custom IMX8MP based board using the middleware example se05x_GetInfo. I have built and deployed the middleware using the application note AN13027.pdf . Since the SE is interfaced with the i2c-4 so i have modified the 
static char* default_axSmDevice_name = "/dev/i2c-1";
to static char* default_axSmDevice_name = "/dev/i2c-3"; 
in simw top/hostlib/hostLib/platform/linux/i2c_a7.c file.

Still I am facing the error:

root@imx8mp-lpddr4-evk:~# se05x_GetInfo
App :INFO :PlugAndTrust_v04.05.00_20231201
App :INFO :Running se05x_GetInfo
App :INFO :If you want to over-ride the selection, use ENV=EX_SSS_BOOT_SSS_PORT or pass in command line arguments.
smCom :ERROR:Failed writing data (nrWritten=-1).

smCom :ERROR: - Error in I2C Write.....
smCom :ERROR:phNxpEseProto7816_SendRawFrame Error phNxpEse_WriteFrame
smCom :ERROR:TransceiveProcess Transceive send failed, going to recovery!
smCom :ERROR:phNxpEseProto7816_Open failed
smCom :ERROR: Failed to Open session
sss :ERROR:SM_I2CConnect Failed. Status 7012
App :ERROR:sss_session_open failed
App :ERROR:ex_sss_session_open Failed
App :ERROR:!ERROR! ret != 0.

I have also attached the cmake-conf.txt for cmake configuration.

Can anyone suggest if any other changes are required in the source? 

0 Kudos
Reply
3 Replies

573 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @pratham_malaviya ,

 

Did you try the i2cdetect command like below to probe the SE device on /dev/i2c-3?

i2cdetect -y -a -q 3

and you don't need to change the source code at all, just use the following command before running any demo out of MW.

export EX_SSS_BOOT_SSS_PORT=/dev/i2c-3

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

563 Views
pratham_malaviya
Contributor III

Hi @Kan_Li ,

I have tried with the given command and I am getting the output as below 

root@imx8mp-lpddr4-evk:~# i2cdetect -y -a -q 3
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: 10 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- 21 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- 55 -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 7f 
root@imx8mp-lpddr4-evk:~# 

 and by testing with Getinfo utility same error is there,

root@imx8mp-lpddr4-evk:~/simw-top_build/imx_native_se050_t1oi2c/bin# ./se05x_GetInfo 
App   :INFO :PlugAndTrust_v04.05.00_20231201
App   :INFO :Running ./se05x_GetInfo
App   :INFO :Using PortName='/dev/i2c-3' (ENV: EX_SSS_BOOT_SSS_PORT=/dev/i2c-3)
smCom :ERROR:Failed writing data (nrWritten=-1).

smCom :ERROR: - Error in I2C Write.....
smCom :ERROR:phNxpEseProto7816_SendRawFrame Error phNxpEse_WriteFrame 
smCom :ERROR:TransceiveProcess Transceive send failed, going to recovery! 
smCom :ERROR:phNxpEseProto7816_Open failed 
smCom :ERROR: Failed to Open session 
sss   :ERROR:SM_I2CConnect Failed. Status 7012
App   :ERROR:sss_session_open failed
App   :ERROR:ex_sss_session_open Failed
App   :ERROR:!ERROR! ret != 0.

Can you please guide me to validate it? 

 

Best Regards,

Pratham

 

0 Kudos
Reply

521 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @pratham_malaviya ,

 

The default I2C address for SE050E is 0x48, so from your test, there is no such device on /dev/i2c-3, is there any connection issue between the host and SE050E on your board? Is it ok to have the schematics for a review?

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2179856%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESE050E%20detection%20issue%20in%20custom%20imx8mp%20board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2179856%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20validate%20the%20SE050E%20chip%20interfaced%20in%20our%20custom%20IMX8MP%20based%20board%20using%20the%20middleware%20example%26nbsp%3B%3CSTRONG%3E%3CEM%3Ese05x_GetInfo.%26nbsp%3B%3C%2FEM%3E%3C%2FSTRONG%3EI%20have%20built%20and%20deployed%20the%20middleware%20using%20the%20application%20note%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13027.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAN13027.pdf%3C%2FA%3E%26nbsp%3B.%20Since%20the%20SE%20is%20interfaced%20with%20the%20%3CSTRONG%3Ei2c-4%3C%2FSTRONG%3E%20so%20i%20have%20modified%20the%26nbsp%3B%3CBR%20%2F%3E%3CEM%3Estatic%20char*%20default_axSmDevice_name%20%3D%20%22%2Fdev%2Fi2c-1%22%3B%3CBR%20%2F%3Eto%26nbsp%3Bstatic%20char*%20default_axSmDevice_name%20%3D%20%22%2Fdev%2Fi2c-3%22%3B%26nbsp%3B%3C%2FEM%3E%20in%26nbsp%3Bsimw%20top%2Fhostlib%2FhostLib%2Fplatform%2Flinux%2Fi2c_a7.c%20file.%3C%2FP%3E%3CP%3EStill%20I%20am%20facing%20the%20error%3A%3C%2FP%3E%3CP%3Eroot%40imx8mp-lpddr4-evk%3A~%23%20se05x_GetInfo%3CBR%20%2F%3EApp%20%3AINFO%20%3APlugAndTrust_v04.05.00_20231201%3CBR%20%2F%3EApp%20%3AINFO%20%3ARunning%20se05x_GetInfo%3CBR%20%2F%3EApp%20%3AINFO%20%3AIf%20you%20want%20to%20over-ride%20the%20selection%2C%20use%20ENV%3DEX_SSS_BOOT_SSS_PORT%20or%20pass%20in%20command%20line%20arguments.%3CBR%20%2F%3EsmCom%20%3AERROR%3AFailed%20writing%20data%20(nrWritten%3D-1).%3C%2FP%3E%3CP%3EsmCom%20%3AERROR%3A%20-%20Error%20in%20I2C%20Write.....%3CBR%20%2F%3EsmCom%20%3AERROR%3AphNxpEseProto7816_SendRawFrame%20Error%20phNxpEse_WriteFrame%3CBR%20%2F%3EsmCom%20%3AERROR%3ATransceiveProcess%20Transceive%20send%20failed%2C%20going%20to%20recovery!%3CBR%20%2F%3EsmCom%20%3AERROR%3AphNxpEseProto7816_Open%20failed%3CBR%20%2F%3EsmCom%20%3AERROR%3A%20Failed%20to%20Open%20session%3CBR%20%2F%3Esss%20%3AERROR%3ASM_I2CConnect%20Failed.%20Status%207012%3CBR%20%2F%3EApp%20%3AERROR%3Asss_session_open%20failed%3CBR%20%2F%3EApp%20%3AERROR%3Aex_sss_session_open%20Failed%3CBR%20%2F%3EApp%20%3AERROR%3A!ERROR!%20ret%20!%3D%200.%3C%2FP%3E%3CP%3EI%20have%20also%20attached%20the%20cmake-conf.txt%20for%20cmake%20configuration.%3C%2FP%3E%3CP%3ECan%20anyone%20suggest%20if%20any%20other%20changes%20are%20required%20in%20the%20source%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2184580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SE050E%20detection%20issue%20in%20custom%20imx8mp%20board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2184580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235882%22%20target%3D%22_blank%22%3E%40pratham_malaviya%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThe%20default%20I2C%20address%20for%20SE050E%20is%200x48%2C%20so%20from%20your%20test%2C%20there%20is%20no%20such%20device%20on%20%2Fdev%2Fi2c-3%2C%20is%20there%20any%20connection%20issue%20between%20the%20host%20and%20SE050E%20on%20your%20board%3F%20Is%20it%20ok%20to%20have%20the%20schematics%20for%20a%20review%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2183767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SE050E%20detection%20issue%20in%20custom%20imx8mp%20board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2183767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F59276%22%20target%3D%22_blank%22%3E%40Kan_Li%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EI%20have%20tried%20with%20the%20given%20command%20and%20I%20am%20getting%20the%20output%20as%20below%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eroot%40imx8mp-lpddr4-evk%3A~%23%20i2cdetect%20-y%20-a%20-q%203%0A%20%20%20%20%200%20%201%20%202%20%203%20%204%20%205%20%206%20%207%20%208%20%209%20%20a%20%20b%20%20c%20%20d%20%20e%20%20f%0A00%3A%2000%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20%0A10%3A%2010%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20%0A20%3A%20--%2021%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20%0A30%3A%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20%0A40%3A%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20%0A50%3A%20--%20--%20--%20--%20--%2055%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20%0A60%3A%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20%0A70%3A%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%20--%207f%20%0Aroot%40imx8mp-lpddr4-evk%3A~%23%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3Band%20by%20testing%20with%20Getinfo%20utility%20same%20error%20is%20there%2C%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eroot%40imx8mp-lpddr4-evk%3A~%2Fsimw-top_build%2Fimx_native_se050_t1oi2c%2Fbin%23%20.%2Fse05x_GetInfo%20%0AApp%20%20%20%3AINFO%20%3APlugAndTrust_v04.05.00_20231201%0AApp%20%20%20%3AINFO%20%3ARunning%20.%2Fse05x_GetInfo%0AApp%20%20%20%3AINFO%20%3AUsing%20PortName%3D'%2Fdev%2Fi2c-3'%20(ENV%3A%20EX_SSS_BOOT_SSS_PORT%3D%2Fdev%2Fi2c-3)%0AsmCom%20%3AERROR%3AFailed%20writing%20data%20(nrWritten%3D-1).%0A%0AsmCom%20%3AERROR%3A%20-%20Error%20in%20I2C%20Write.....%0AsmCom%20%3AERROR%3AphNxpEseProto7816_SendRawFrame%20Error%20phNxpEse_WriteFrame%20%0AsmCom%20%3AERROR%3ATransceiveProcess%20Transceive%20send%20failed%2C%20going%20to%20recovery!%20%0AsmCom%20%3AERROR%3AphNxpEseProto7816_Open%20failed%20%0AsmCom%20%3AERROR%3A%20Failed%20to%20Open%20session%20%0Asss%20%20%20%3AERROR%3ASM_I2CConnect%20Failed.%20Status%207012%0AApp%20%20%20%3AERROR%3Asss_session_open%20failed%0AApp%20%20%20%3AERROR%3Aex_sss_session_open%20Failed%0AApp%20%20%20%3AERROR%3A!ERROR!%20ret%20!%3D%200.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ECan%20you%20please%20guide%20me%20to%20validate%20it%3F%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3EPratham%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2183616%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SE050E%20detection%20issue%20in%20custom%20imx8mp%20board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2183616%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235882%22%20target%3D%22_blank%22%3E%40pratham_malaviya%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EDid%20you%20try%20the%20i2cdetect%20command%20like%20below%20to%20probe%20the%20SE%20device%20on%20%2Fdev%2Fi2c-3%3F%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Ei2cdetect%20-y%20-a%20-q%203%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eand%20you%20don't%20need%20to%20change%20the%20source%20code%20at%20all%2C%20just%20use%20the%20following%20command%20before%20running%20any%20demo%20out%20of%20MW.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eexport%20EX_SSS_BOOT_SSS_PORT%3D%2Fdev%2Fi2c-3%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20that%20helps%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E