2191538_en-US

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

2191538_en-US

2191538_en-US

S32K5 RTD 4.5 ADC channels configuration problem in TresOS

Hello,

There is an issue when configuring ADC channels in PORT in TresOS.


For example, we have GPIO217 and GPIO 260 and we want to use their ADC functionalities: ADC0_CH20_M4 and ADC0_CH31_M15.

Both GPIOs are on the SIUL2_3.


When we have this configuration, TRESOS indicates an error: Error in PortPin list. There are at least 2 pads  that are trying to configure the same IMCR (0) of the same SIUL2 instance (3) with different values. Please remove one of them from the configuration.

In the PORT generated file, it has this configuration:

nxp52415_0-1761220660438.png



The same problem seems to be on SIUL2_4:

nxp52415_1-1761220660502.png


It seems that it allows only one ADC channel per SIUL instance, which is not correct.

I tried the configuration of GPIO217 and GPIO260 in Design Studio with RTD 4.5 and it worked there. I have issues with generating RTD 4.5 in TRESOS.

regards

RTDRe: S32K5 RTD 4.5 ADC channels configuration problem in TresOS

@nxp52415 
I created a ticket for this error: https://jira.sw.nxp.com/browse/ARTDCANG-692
For a workaround, I suggest you to remove configuration for ADC pin in Port module, as per default, these pins are set for ADC functionality:

cuongnguyenphu_0-1761719567013.pngcuongnguyenphu_1-1761719594236.png


You just need to select correct ADC channels in ADC configuration


Re: S32K5 RTD 4.5 ADC channels configuration problem in TresOS

@nxp52415 
It looks to me that the Port resource files for S32K5 has problem.
Let me check with Dev team and confirm the workaround soon.

Re: S32K5 RTD 4.5 ADC channels configuration problem in TresOS

Hello


RTD 0.4.5. S32K5


Regards

Re: S32K5 RTD 4.5 ADC channels configuration problem in TresOS

Hi @nxp52415 
What is RTD version you're using?

Tags (1)
No ratings
Version history
Last update:
‎11-20-2025 10:20 AM
Updated by: