Question about Pins Tool and Blinking LED Knowledgebase HOWTO

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

Question about Pins Tool and Blinking LED Knowledgebase HOWTO

跳至解决方案
86 次查看
daniel_meier
Contributor II

I have a few questions in regards to the Pins Tool and the Knowledge Base LED entry for the S32K1xx.
The Entry in question can be found here: HOWTO: Create a Blinking LED example project using S32K1xx RTD with AUTOSAR 

The Entry says to disable the Pins Tool.
The MCAL Port User Manual however mentions that it is perfectly fine to use the Pins Tool for configurating the controller.
Which information is correct?

Is there a way to add Pins to the Pins Tool and have them automatically added to the respective MCAL entries (Port, Dio)?
Or do I always have to add each pin three times (Pins Tool, Port, Dio)?
What is the recommended workflow for this admittedly most basic of functionalities?

标记 (1)
0 项奖励
回复
1 解答
62 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @daniel_meier 

This article was published quite some time ago, and the relationship between the Pins Tool and the PORT driver has changed across RTD releases.

In the latest versions, when using MCAL drivers, the Pins Tool and PORT driver work closely together. This means the pins should be configured in the Pins Tool and also added to the PORT driver so the pin initialization structures are generated correctly.

So, with MCAL, you will need to configure the pins in both the Pins Tool and the PORT driver (Peripheral Tool). The DIO driver only needs to be configured if those pins will be used as GPIOs.

 

BR, VaneB

在原帖中查看解决方案

2 回复数
63 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @daniel_meier 

This article was published quite some time ago, and the relationship between the Pins Tool and the PORT driver has changed across RTD releases.

In the latest versions, when using MCAL drivers, the Pins Tool and PORT driver work closely together. This means the pins should be configured in the Pins Tool and also added to the PORT driver so the pin initialization structures are generated correctly.

So, with MCAL, you will need to configure the pins in both the Pins Tool and the PORT driver (Peripheral Tool). The DIO driver only needs to be configured if those pins will be used as GPIOs.

 

BR, VaneB

40 次查看
daniel_meier
Contributor II

@VaneB  Thanks for clarifying the process.

I highly recommend adding a way to synchronize the pins between the Pins Tool and the MCAL Port and Dio tools.
The Pins Tool is very intuitive and easy to use while the MCAL settings section is tedious and unclear.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2415366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%85%B3%E4%BA%8E%E5%BC%95%E8%84%9A%E5%B7%A5%E5%85%B7%E5%92%8C%E9%97%AA%E7%83%81%20LED%20%E7%9F%A5%E8%AF%86%E5%BA%93%E6%93%8D%E4%BD%9C%E6%8C%87%E5%8D%97%E7%9A%84%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%85%B3%E4%BA%8E%E5%BC%95%E8%84%9A%E5%B7%A5%E5%85%B7%E5%92%8C%20S32K1xx%20%E7%9A%84%E7%9F%A5%E8%AF%86%E5%BA%93%20LED%20%E6%9D%A1%E7%9B%AE%EF%BC%8C%E6%88%91%E6%9C%89%E4%B8%80%E4%BA%9B%E9%97%AE%E9%A2%98%E3%80%82%3CBR%20%2F%3E%E7%9B%B8%E5%85%B3%E6%9D%A1%E7%9B%AE%E5%8F%AF%E5%9C%A8%E6%AD%A4%E5%A4%84%E6%89%BE%E5%88%B0%EF%BC%9A%20%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%2Ftac-p%2F1780598%22%20target%3D%22_blank%22%3EHOWTO%EF%BC%9A%E4%BD%BF%E7%94%A8%20AUTOSAR%20%E5%92%8C%20S32K1xx%20RTD%20%E5%88%9B%E5%BB%BA%E9%97%AA%E7%83%81%20LED%20%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%3C%2FA%3E%3C%2FP%3E%3CP%3E%E8%AF%A5%E8%AF%B4%E6%98%8E%E8%A6%81%E6%B1%82%3CEM%3E%E7%A6%81%E7%94%A8%3C%2FEM%3E%E5%9B%BE%E9%92%89%E5%B7%A5%E5%85%B7%E3%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BC%9F%3CBR%20%2F%3E%E5%AF%B9%E4%BA%8E%E8%BF%99%E9%A1%B9%E6%9C%80%E5%9F%BA%E6%9C%AC%E7%9A%84%E5%8A%9F%E8%83%BD%EF%BC%8C%3CSTRONG%3E%E6%8E%A8%E8%8D%90%E7%9A%84%E5%B7%A5%E4%BD%9C%E6%B5%81%E7%A8%8B%E6%98%AF%E4%BB%80%E4%B9%88%3C%2FSTRONG%3E%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Question%20about%20Pins%20Tool%20and%20Blinking%20LED%20Knowledgebase%20HOWTO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415573%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%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%E8%B0%A2%E8%B0%A2%E4%BD%A0%E8%A7%A3%E9%87%8A%E6%B8%85%E6%A5%9A%E6%B5%81%E7%A8%8B%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E5%BC%BA%E7%83%88%E5%BB%BA%E8%AE%AE%E5%9C%A8%E5%BC%95%E8%84%9A%E5%B7%A5%E5%85%B7%E5%92%8C%20MCAL%20%E7%AB%AF%E5%8F%A3%E5%8F%8A%E4%BA%8C%E6%9E%81%E7%AE%A1%E5%B7%A5%E5%85%B7%E4%B9%8B%E9%97%B4%E6%B7%BB%E5%8A%A0%E5%90%8C%E6%AD%A5%E5%BC%95%E8%84%9A%E7%9A%84%E5%8A%9F%E8%83%BD%E3%80%82%3CBR%20%2F%3E%E5%BC%95%E8%84%9A%E5%B7%A5%E5%85%B7%E9%9D%9E%E5%B8%B8%E7%9B%B4%E8%A7%82%E6%98%93%E7%94%A8%EF%BC%8C%E8%80%8C%20MCAL%20%E8%AE%BE%E7%BD%AE%E9%83%A8%E5%88%86%E5%88%99%E7%B9%81%E7%90%90%E4%B8%94%E4%B8%8D%E6%B8%85%E6%99%B0%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Question%20about%20Pins%20Tool%20and%20Blinking%20LED%20Knowledgebase%20HOWTO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F168838%22%20target%3D%22_blank%22%3E%40daniel_meier%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E8%BF%99%E7%AF%87%E6%96%87%E7%AB%A0%E5%8F%91%E8%A1%A8%E5%B7%B2%E6%9C%89%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E4%BA%86%EF%BC%8C%E5%BC%95%E8%84%9A%E5%B7%A5%E5%85%B7%E5%92%8C%E7%AB%AF%E5%8F%A3%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E4%B9%8B%E9%97%B4%E7%9A%84%E5%85%B3%E7%B3%BB%E5%9C%A8%20RTD%20%E7%9A%84%E5%90%84%E4%B8%AA%E7%89%88%E6%9C%AC%E4%B8%AD%E9%83%BD%E5%8F%91%E7%94%9F%E4%BA%86%E5%8F%98%E5%8C%96%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%9C%A8%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E4%B8%AD%EF%BC%8C%E4%BD%BF%E7%94%A8%20MCAL%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E6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