Driver configuration for S32K322

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

Driver configuration for S32K322

Jump to solution
2,637 Views
LavanyaR
Contributor I

Hi

Shall we use s32k344 example driver code for s32k322 microcontroller? or Do you have driver code for s32k322 microcontroller?

Thanks in advance

 

0 Kudos
Reply
1 Solution
2,594 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @LavanyaR 

1. In the Linker file, ensure that the size of ITCM and DTCM are as shown in the following code. Also, the Linker file is already provided when you create a new application project with the desired MCU. 

 

int_itcm                : ORIGIN = 0x00000000, LENGTH = 0x00008000    /* 32K */
int_dtcm                : ORIGIN = 0x20000000, LENGTH = 0x00010000    /* 64K */

 

2. For S32K322 the most viable option is to generate a new project with the corresponding MCU and then copy the application source files from your pre-existing project as well as any customizations you made to the project properties.

View solution in original post

0 Kudos
Reply
6 Replies
2,606 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @LavanyaR 

As you know, S32K3 has many derivatives, so to reduce effort, in the most recent RTD releases we only provide examples for K344, K358, and K396. Examples of other derivatives can be created based on these existing examples. Also, as you are using RTD version 2.0.3, all S32K342 examples will work for S32K322 as long as you modify the DTCM and ITCM size in the linker script.

VaneB_1-1704830066285.png

The S32K322 devices are supported by RTD 2.0.x, 3.0.0 and 4.0.0. You can find a list of supported derivatives in ReleaseNotes.pdf (Chapter 2.3 Supported Derivatives).

 

B.R.

VaneB

0 Kudos
Reply
2,600 Views
LavanyaR
Contributor I

Hi @VaneB 

1. Can you tell me procedure to modify the linker script?

2. We are having ADC, SPI, CAN, I2C, timer and RTC driver code for S32k324 controller. Shall we use this driver code for s32k322 controller?

Note : We taken s32k344 example code as reference for configuring the above drivers.

Thank you

Lavanya

 

 

0 Kudos
Reply
2,595 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @LavanyaR 

1. In the Linker file, ensure that the size of ITCM and DTCM are as shown in the following code. Also, the Linker file is already provided when you create a new application project with the desired MCU. 

 

int_itcm                : ORIGIN = 0x00000000, LENGTH = 0x00008000    /* 32K */
int_dtcm                : ORIGIN = 0x20000000, LENGTH = 0x00010000    /* 64K */

 

2. For S32K322 the most viable option is to generate a new project with the corresponding MCU and then copy the application source files from your pre-existing project as well as any customizations you made to the project properties.

0 Kudos
Reply
2,569 Views
LavanyaR
Contributor I

Hi @VaneB 

In our project I2C1 (PTD9 & PTD6) used for EEPROM communication. I2C1 (PTC6 &PTC7) used for RTC communication. Is it possible to configure the same instance twice in single master?

Thank you

Lavanya 

0 Kudos
Reply
2,620 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

can please share more info? Which particular driver are you looking for? Or you men all Real Time Drivers set for S32K322? Assuming that your S32DS version is v3.5. 

0 Kudos
Reply
2,614 Views
LavanyaR
Contributor I

Hi,

Yes i need RTD set for S32k322. Here we are using S32DS v3.5 and RTD version are 2.0.3 and 3.0.0.

Kindly provide me the which RTD version i have to use for S32k322?. We require FreeRTOS also

Thank you

0 Kudos
Reply