s32k344,How to configure the peripheral to use eMIOS_ICU to capture external signals?

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

s32k344,How to configure the peripheral to use eMIOS_ICU to capture external signals?

3,017件の閲覧回数
qinlong
Contributor I

      I have set CH_1 and CH_12 of Emios_1 to generate PWM signals, how do I get them using icu?Can give me a sample for reference?

0 件の賞賛
返信
10 返答(返信)

2,999件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @qinlong 

For Emios_Pwm driver and Emios_Icu driver configurations, you can refer to the example provided in the following thread, it may be a good reference for you.

Example S32K344 eMIOS DS3.5 RTD500

Additionally, an Emios_Icu_Ip_BlinkLed example is provided with the RTDs. The application controls the LED RGBLED0_RED with input ICU-eMios pin through IcuSignalNotification function.

 

BR, VaneB

0 件の賞賛
返信

2,818件の閲覧回数
MVR
Contributor V

Hello @VaneB ,

I did the same configuration that you did using RTD on Tresos tool and I'm getting this error:

EMIOS_ICU_BUS_F(or 22 channel in MCL) is used exclusiv by PWM driver! Please recheck MCL configuration for EMIOS! (node )

I'm using the latest version: 4.0.0 HF02_D2407. And the microcontroller is the same S32K344.

Can you help me with this error? Thank you.

0 件の賞賛
返信

2,790件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @MVR 

Did you use the global bus F (channel 22) configured in the MCL as a bus reference for PWM and ICU channels?

0 件の賞賛
返信

2,783件の閲覧回数
MVR
Contributor V

Hello @VaneB 

I used only for ICU, I even removed the PWM configuration. Could you please replicate this configuration on Tresos please? I did the same and faced this error...

Thank you,

MVR

0 件の賞賛
返信

2,745件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @MVR 

Could you share images of the configurations made?

0 件の賞賛
返信

2,737件の閲覧回数
MVR
Contributor V

Hey @VaneB ,

It's exactly the same configuration you did in the S32DS tool. Since I tried several different combinations after the error, I don't have the initial configuration now, but it was exactly the same configuration. Can't you replicate it on Tresos?

If you can't, I can build it here and send it.

Thanks,

MVR

0 件の賞賛
返信

2,697件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @MVR 

First, it is important to mention that the software included in SW32K3_RTD_R21-11_4.0.0_HF_02 is not fully qualified and is not intended for production - it should be replaced by the next qualified standard release (SW32K3_RTD_R21-11_5.0.0).

I am afraid that not really familiar with EB tresos, so for better reference check the S32K3 ICU driver Integration Manual and User Manual provided with the RTDs. These documents provide details about the ICU driver (limitations, HW and SW requirements, usage, configurations, etc.) that might be useful to you. These can be found, for example: C:\NXP\SW32K3_S32M27x_RTD_R21-11_4.0.0\eclipse\plugins\Icu_TS_T40D34M40I0R0

Additionally, a ICU example code is provided with the RTDs (Icu_BlinkLed_S32K344) which can be a good reference for you.

0 件の賞賛
返信

2,534件の閲覧回数
MVR
Contributor V

hello @VaneB,

I updated the version, now I'm using S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 5.0.0. But still I'm getting error.

Take a look the error:

MVR_0-1733833867398.png

Now the configuration:

ICU:

MVR_1-1733833900331.png

 

MVR_2-1733833950024.png

MVR_3-1733833973568.png

 

MCL:

MVR_4-1733834019652.png

I have other emios channels configured because I'm using PWM:

MVR_5-1733834058641.png

But the error appear only when I enable the ICU module, if I disable, I don't get this error:

MVR_6-1733834148214.png

I opened this ticket: https://community.nxp.com/t5/S32K/ICU-configuration-issue-on-Tresos-tool-S32K344uc/m-p/2011074#M4409...

Hope you can help me, thank you very much!

MVR

 

 

0 件の賞賛
返信

2,982件の閲覧回数
qinlong
Contributor I
Thank you for your answer. When I open your sample in S32DS, the software reminds me “Unsupported processor package S32K344 172HDQFP”, the hardware I am using is S32K344_172MQFP, how can I operate to open your sample?
0 件の賞賛
返信

2,966件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @qinlong 

It is necessary to have S32DS 3.5 and RTD version 5.0.0 installed. They can be downloaded from S32 Design Studio 3.5 – Windows/Linux > S32 Design Studio for S32 Platform v.3.5 and S32K3 Standard Software > Automotive SW - S32K3/S32M27x - Real-Time Drivers for Cortex-M > S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 5.0.0.

0 件の賞賛
返信