Driver configuration for S32K322

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

Driver configuration for S32K322

跳至解决方案
1,228 次查看
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 项奖励
回复
1 解答
1,185 次查看
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 项奖励
回复
6 回复数
1,197 次查看
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 项奖励
回复
1,191 次查看
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 项奖励
回复
1,186 次查看
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 项奖励
回复
1,160 次查看
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 项奖励
回复
1,211 次查看
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 项奖励
回复
1,205 次查看
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 项奖励
回复