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:
The same problem seems to be on SIUL2_4:
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
@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:
You just need to select correct ADC channels in ADC configuration
@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.
Hello
RTD 0.4.5. S32K5
Regards
Hi @nxp52415
What is RTD version you're using?