Hi,
I want to execute ADC channel ADC0_P7 which is connected to board's Potentiometer, and converted value is used to dim board's LED (GPIO29).
After configuration, it is showing:
Error: platform.driver.pins
Additionally, when building the project after the configuration, we encountered the following compilation error: image(error_Adc)
I also attached the configuration settings below.
NOTE: I have added the project from Example.
Kindly resolve the issue.
Thanks,
Raky
Hi,
try to follow hints and resolve errors indicated in Problems window.
Most probabbly indiovidual drivers are not added to the toolchain. In newer S32DS this commonly disappear after you Update Code in config tool. Or you need to add it manually through Manage SDK components
be sure used components are selecected then Update Code again
For the Siul2_Port component, 2 things can be wrong.
- Pin tool have 2 pins configured, Siul2_port just 1 and there is missmatch in setting.
Fore ADC input, no pin setting is needed, analog path is always enabled, you can delete it from Pins tool.
- another could be naming of Functional group in Pins tool.
If you have issue still share your full project.
BR, Petr
Hi,
After adding Siul2_Port I got this error.
My pin configuration is:
I really appreciate taking your time to reply, thanks.
BR,
Raky
Hi,
add Siul2_Port component, Update Code, and build.
BR, Petr
Hi @PetrS ,
Thanks for noticing.
Here is the attached file below.
Br,
Raky
Hi,
You did not attach any files or screenshots.
You can refer to the following examples that use ADC sampling with a potentiometer:
Example S32K312 ADC IP Continuous Scan DMA (S32DS 3.6, RTD 6.0.0)
RTD400 LLD K344 ADC SW/HW Trigger Example
BR, Petr
Hi Petrs,
Thanks for the support.
Can you also give any resource to try for AUTOSAR version.
I tried with the project from example. But not working.
Kindly help.
BR,
Raky