gPTP example not running on S32g399

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

gPTP example not running on S32g399

2,251 Views
rizwan_at_disruptdotcom
Contributor III

Hello,

I have built gPTP_S32G_1.1.0 with:

S32 RTD version SW32G_RTD_4.4_5.0.0_QLP03_D2505 S32G
PFE MCAL driver PFE_DRV_MCAL_S32G_RTM_1_6_0_D2505
S32G PFE Firmware PFE-FW_S32G_1.11.0

I ran make generate and then make which created elf in /output_AED-E_RDB3
I have loaded this elf as a project from executable in S32 DS which created a DEBUG_RAM configuration.

I have noticed that the application does not go beyond  and Mcu_GetPllStatus() call in DriversInitialization(). Upon pausing the execution I found out that the execution is stuck on PLL lock in Clock_Ip_CompletePlldigRdivMfiMfnSdmenSsscgbypSpreadctlStepnoStepsize()

I have made no changes of my own other than fixing the makefile to pick correct paths. It built without errors and I just flashed it with S32 Debugger.

Please let me know how to fix this and how to validate gPTP application in AED-E mode. Thanks,

0 Kudos
Reply
7 Replies

2,208 Views
Joey_z
NXP Employee
NXP Employee

Hi,rizwan_at_disruptdotcom

Do you use the RDB3 board or customer board?

BR

Joey

0 Kudos
Reply

2,198 Views
rizwan_at_disruptdotcom
Contributor III

@Joey_z 

 

I am using a GLDBOX3: https://www.nxp.com/part/S32G-VNP-GLDBOX3

If there are changes required to get this application run on this board then please describe those changes that I can try. Alternatively if there is an application note to adapt the gPTP application for this board, that should also work.

Thanks!

0 Kudos
Reply

2,152 Views
Joey_z
NXP Employee
NXP Employee

hi,rizwan_at_disruptdotcom

Could you try to use IVT Image or the .cmm file for your testing?

BR

Joey

0 Kudos
Reply

2,146 Views
rizwan_at_disruptdotcom
Contributor III

Hello @Joey_z 

We don't have a lauterbach debugger and only use the S32 debug probe, which works fine with our other applications on this board. I notice that the cmm is clearing sram sectors, if this is the issue then can you please let me know how to do the same with s32 debug probe?

The example does not create an IVT, but and elf that we are directly trying to flash using DEBUG_RAM configuration.

Rizwan

0 Kudos
Reply

2,123 Views
Joey_z
NXP Employee
NXP Employee

hi,rizwan_at_disruptdotcom

Thank you for your reply.

How do you generate the code and build your project? Do you have any modify about the application configuration?

Could you send your .elf file to me thought the link of https://support.nxp.com? I will help you to check it.

BR

Joey

0 Kudos
Reply

2,113 Views
rizwan_at_disruptdotcom
Contributor III
I have also opened a support case: 00959194
0 Kudos
Reply

2,118 Views
rizwan_at_disruptdotcom
Contributor III

Hello @Joey_z ,

 

I did not make any changes to the application, only updated the makefile to enable build on my machine.

I have uploaded the EBT folder zip to drive. Please access here:

https://drive.google.com/file/d/1_3vj19gXmwHmqs20aAPOWAjENRCYusfg/view?usp=sharing

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2305076%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EgPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305076%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20built%20gPTP_S32G_1.1.0%20with%3A%3CBR%20%2F%3E%3CBR%20%2F%3ES32%20RTD%20version%20SW32G_RTD_4.4_5.0.0_QLP03_D2505%20S32G%3CBR%20%2F%3EPFE%20MCAL%20driver%20PFE_DRV_MCAL_S32G_RTM_1_6_0_D2505%3CBR%20%2F%3ES32G%20PFE%20Firmware%20PFE-FW_S32G_1.11.0%3CBR%20%2F%3E%3CBR%20%2F%3EI%20ran%20make%20generate%20and%20then%20make%20which%20created%20elf%20in%20%2Foutput_AED-E_RDB3%3CBR%20%2F%3EI%20have%20loaded%20this%20elf%20as%20a%20project%20from%20executable%20in%20S32%20DS%20which%20created%20a%20DEBUG_RAM%20configuration.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20noticed%20that%20the%20application%20does%20not%20go%20beyond%26nbsp%3B%20and%26nbsp%3BMcu_GetPllStatus()%20call%20in%26nbsp%3BDriversInitialization().%20Upon%20pausing%20the%20execution%20I%20found%20out%20that%20the%20execution%20is%20stuck%20on%20PLL%20lock%20in%26nbsp%3BClock_Ip_CompletePlldigRdivMfiMfnSdmenSsscgbypSpreadctlStepnoStepsize()%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20made%20no%20changes%20of%20my%20own%20other%20than%20fixing%20the%20makefile%20to%20pick%20correct%20paths.%20It%20built%20without%20errors%20and%20I%20just%20flashed%20it%20with%20S32%20Debugger.%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20let%20me%20know%20how%20to%20fix%20this%20and%20how%20to%20validate%20gPTP%20application%20in%20AED-E%20mode.%20Thanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2305731%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20gPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305731%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F236188%22%20target%3D%22_blank%22%3E%40Joey_z%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20am%20using%20a%20GLDBOX3%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fpart%2FS32G-VNP-GLDBOX3%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fpart%2FS32G-VNP-GLDBOX3%3C%2FA%3E%3C%2FP%3E%3CP%3EIf%20there%20are%20changes%20required%20to%20get%20this%20application%20run%20on%20this%20board%20then%20please%20describe%20those%20changes%20that%20I%20can%20try.%20Alternatively%20if%20there%20is%20an%20application%20note%20to%20adapt%20the%20gPTP%20application%20for%20this%20board%2C%20that%20should%20also%20work.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2305689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20gPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3Erizwan_at_disru%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3Eptdotcom%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EDo%20you%20use%20the%20RDB3%20board%20or%20customer%20board%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312933%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20gPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312933%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F236188%22%20target%3D%22_blank%22%3E%40Joey_z%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20don't%20have%20a%20lauterbach%20debugger%20and%20only%20use%20the%20S32%20debug%20probe%2C%20which%20works%20fine%20with%20our%20other%20applications%20on%20this%20board.%20I%20notice%20that%20the%20cmm%20is%20clearing%20sram%20sectors%2C%20if%20this%20is%20the%20issue%20then%20can%20you%20please%20let%20me%20know%20how%20to%20do%20the%20same%20with%20s32%20debug%20probe%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20example%20does%20not%20create%20an%20IVT%2C%20but%20and%20elf%20that%20we%20are%20directly%20trying%20to%20flash%20using%20DEBUG_RAM%20configuration.%3CBR%20%2F%3E%3CBR%20%2F%3ERizwan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312839%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20gPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312839%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2Crizwan_at_disruptdotcom%3C%2FP%3E%0A%3CP%3ECould%20you%20try%20to%20use%20IVT%20Image%20or%20the%20.cmm%20file%20for%20your%20testing%3F%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313583%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20gPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313583%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F236188%22%20target%3D%22_blank%22%3E%40Joey_z%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20did%20not%20make%20any%20changes%20to%20the%20application%2C%20only%20updated%20the%20makefile%20to%20enable%20build%20on%20my%20machine.%3C%2FP%3E%3CP%3EI%20have%20uploaded%20the%20EBT%20folder%20zip%20to%20drive.%20Please%20access%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1_3vj19gXmwHmqs20aAPOWAjENRCYusfg%2Fview%3Fusp%3Dsharing%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1_3vj19gXmwHmqs20aAPOWAjENRCYusfg%2Fview%3Fusp%3Dsharing%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313609%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20gPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313609%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%20have%20also%20opened%20a%20support%20case%3A%2000959194%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20gPTP%20example%20not%20running%20on%20S32g399%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%EF%BC%8C%3CSPAN%3Erizwan_at_disru%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3Eptdotcom%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%0A%3CP%3EHow%20do%20you%20generate%20the%20code%20and%20build%20your%20project%3F%20Do%20you%20have%20any%20modify%20about%20the%20application%20configuration%3F%3C%2FP%3E%0A%3CP%3ECould%20you%20send%20your%20.elf%20file%20to%20me%20thought%20the%20link%20of%20%3CA%20href%3D%22https%3A%2F%2Fsupport.nxp.com%3F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.nxp.com%3F%3C%2FA%3E%26nbsp%3BI%20will%20help%20you%20to%20check%20it.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E