Tresos Custom Configuration on S32K 144 EVB

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

Tresos Custom Configuration on S32K 144 EVB

2,953 Views
zbellay
Contributor I

Hello NXP Community!

I am trying to flash an LED attached to PTC 15 on the S32K 144 Evaluation Board using Tresos Studio and AUTOSAR MCAL 4.2.2. I am running the S32K14X_MCAL4_2_RTM_1_0_0_Sample_Application on S32 Design Studio and the S32K 4.2 configuration in Tresos Studio.

When going to configure the board in Tresos Studio I am adding another entry into the PortPin table. Based on the S32K144_IO_Signal_Description_Input_Multiplexing file attached to the S32K 144 Reference Manual, the PCR Pin that should correspond to PTC 15 on the S32K144_100lqfp should be 45.

I am confused though because the S32K144 EVB uses the S32K144_100lqfp, but in the Tresos Studio configuration for for Port, PortPin_Led2 and PortPin_Led3 have PCR Pin values of 111 and 112, respectively. These are greater than the number of pins available on the 100lqfp, but would work on the larger S32K chips that have 144 pins. 

So my question is, is there some sort of background conversion going on in Tresos studio that maps the 144 pins to a 100 pin board? What can I do to get this LED attached to PTC 15 to blink?

0 Kudos
Reply
4 Replies

2,457 Views
cuongnguyen
Contributor II

For Tresos Studio, PCR of a pin is equal to "port number" + pin number.
With Port A is 0, B is 32, C is 64, D is 96, E is 128.
Example PortPin_Led2 is PTD15, its PCR in Tresos Studio is 96 + 15 = 111.

2,457 Views
xinxin_you
Contributor II

Thank you,but I still have problems about it.

I find that in S32K-RM,s32K144 only have 18 PCRs in one port.I think it should be Port A is0,Port B is 18....but I was wrong.

Where did you find the information about this?

0 Kudos
Reply

2,458 Views
cuongnguyen
Contributor II

Chapter 3.3 Hardware Resources in User Manual for S32K14X PORT Driver.

0 Kudos
Reply

2,458 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Zach,

Could you please create a ticket?

https://community.nxp.com/docs/DOC-329745 

Thank you,

Daniel

0 Kudos
Reply