Driver configuration for S32K322

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Driver configuration for S32K322

ソリューションへジャンプ
2,678件の閲覧回数
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 解決策
2,635件の閲覧回数
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 返答(返信)
2,647件の閲覧回数
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 件の賞賛
返信
2,641件の閲覧回数
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 件の賞賛
返信
2,636件の閲覧回数
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 件の賞賛
返信
2,610件の閲覧回数
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 件の賞賛
返信
2,661件の閲覧回数
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 件の賞賛
返信
2,655件の閲覧回数
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 件の賞賛
返信