S32K14X MCAL Port Configure and peripheral Code gen Fail

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

S32K14X MCAL Port Configure and peripheral Code gen Fail

754 Views
Athai
Contributor I

Hello team, 

I’m having some issues with my AUTOSAR LED blinking project.

I followed the HOWTOs to build the project, but I encountered some problems.

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Create-a-Blinking-LED-example-pr...

This is my AUTOSAR RTD Version :

Athai_0-1757041870463.png

When I configure the MCAL Port, I can’t set the pin status—it always stays at 0 no matter which pin I select.

Also, as you can see on the right side, there are many peripheral code generation errors.

Athai_2-1757042162592.png

Did I miss a step in the setup?

 

 

0 Kudos
Reply
3 Replies

737 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Did you configure the pin in Pins Tool? 

Dio_Example_S32K144_RTD200QLP1 PTD0 Pins Tool.png

After entering the correct PortPin Pcr, you will see the corresponding configuration in the Pins Tool.

Dio_Example_S32K144_RTD200QLP1 PTD0 PortPin Pcr 96 Peripheral tool.png

Regarding the PortPin Pcr number, please refer to the answer in Mismatch between the PIN configuration


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" 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

726 Views
Athai
Contributor I
Thank you very much. I am now able to define the pins.
May I ask how to obtain the file AUTOSAR_MCAL_PORT_UM.pdf?
0 Kudos
Reply

721 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

RTD Documentation.png

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2164018%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K14X%20MCAL%20Port%20Configure%20and%20peripheral%20Code%20gen%20Fail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164018%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20team%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%E2%80%99m%20having%20some%20issues%20with%20my%20%3CSTRONG%3EAUTOSAR%3C%2FSTRONG%3E%20LED%20blinking%20project.%3C%2FP%3E%3CP%3EI%20followed%20the%20HOWTOs%20to%20build%20the%20project%2C%20but%20I%20encountered%20some%20problems.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio-Knowledge-Base%2FHOWTO-Create-a-Blinking-LED-example-project-using-S32K1xx-RTD%2Fta-p%2F1471695%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio-Knowledge-Base%2FHOWTO-Create-a-Blinking-LED-example-project-using-S32K1xx-RTD%2Fta-p%2F1471695%3C%2FA%3E%3C%2FP%3E%3CP%3EThis%20is%20my%20AUTOSAR%20RTD%20Version%20%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Athai_0-1757041870463.png%22%20style%3D%22width%3A%20598px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Athai_0-1757041870463.png%22%20style%3D%22width%3A%20598px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355643i09463DD297F59E9A%2Fimage-dimensions%2F598x224%3Fv%3Dv2%22%20width%3D%22598%22%20height%3D%22224%22%20role%3D%22button%22%20title%3D%22Athai_0-1757041870463.png%22%20alt%3D%22Athai_0-1757041870463.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20I%20configure%20the%20MCAL%20Port%2C%20I%20can%E2%80%99t%20set%20the%20pin%20status%E2%80%94it%20always%20stays%20at%200%20no%20matter%20which%20pin%20I%20select.%3C%2FP%3E%3CP%3EAlso%2C%20as%20you%20can%20see%20on%20the%20right%20side%2C%20there%20are%20many%20peripheral%20code%20generation%20errors.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Athai_2-1757042162592.png%22%20style%3D%22width%3A%20600px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Athai_2-1757042162592.png%22%20style%3D%22width%3A%20600px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355645i69AF9A19B4E09975%2Fimage-dimensions%2F600x238%3Fv%3Dv2%22%20width%3D%22600%22%20height%3D%22238%22%20role%3D%22button%22%20title%3D%22Athai_2-1757042162592.png%22%20alt%3D%22Athai_2-1757042162592.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EDid%20I%20miss%20a%20step%20in%20the%20setup%3F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2164078%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K14X%20MCAL%20Port%20Configure%20and%20peripheral%20Code%20gen%20Fail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164078%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%20very%20much.%20I%20am%20now%20able%20to%20define%20the%20pins.%3CBR%20%2F%3EMay%20I%20ask%20how%20to%20obtain%20the%20file%20AUTOSAR_MCAL_PORT_UM.pdf%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2164050%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K14X%20MCAL%20Port%20Configure%20and%20peripheral%20Code%20gen%20Fail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164050%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EDid%20you%20configure%20the%20pin%20in%20%3CSTRONG%3EPins%3C%2FSTRONG%3E%20Tool%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20Pins%20Tool.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20Pins%20Tool.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355656iA85EB3976071E514%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20Pins%20Tool.png%22%20alt%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20Pins%20Tool.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAfter%20entering%20the%20correct%20%3CSTRONG%3EPortPin%20Pcr%3C%2FSTRONG%3E%2C%20you%20will%20see%20the%20corresponding%20configuration%20in%20the%20%3CSTRONG%3EPins%3C%2FSTRONG%3E%20Tool.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20PortPin%20Pcr%2096%20Peripheral%20tool.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20PortPin%20Pcr%2096%20Peripheral%20tool.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355657iAA44F1B88CB6BB02%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20PortPin%20Pcr%2096%20Peripheral%20tool.png%22%20alt%3D%22Dio_Example_S32K144_RTD200QLP1%20PTD0%20PortPin%20Pcr%2096%20Peripheral%20tool.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERegarding%20the%20%3CSTRONG%3EPortPin%20Pcr%3C%2FSTRONG%3E%20number%2C%20please%20refer%20to%20the%20answer%20in%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FMismatch-between-the-PIN-configuration%2Fm-p%2F1653257%23M23055%22%20target%3D%22_self%22%3EMismatch%20between%20the%20PIN%20configuration%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%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