2417317_en-US

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

2417317_en-US

2417317_en-US

ADC Configuration for S32K344 EVB HDQFP172

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

Re: ADC Configuration for S32K344 EVB HDQFP172

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

PetrS_0-1790841338660.png

be sure used components are selecected then Update Code again

PetrS_1-1790841505859.png

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


Re: ADC Configuration for S32K344 EVB HDQFP172

Hi,

After adding Siul2_Port I got this error.

rakYps21_0-1790765530410.png

My pin configuration is:

rakYps21_1-1790765636736.png


I really appreciate taking your time to reply, thanks.


BR,

Raky


Re: ADC Configuration for S32K344 EVB HDQFP172

Hi,

add Siul2_Port component, Update Code, and build.

BR, Petr

Re: ADC Configuration for S32K344 EVB HDQFP172

Hi @PetrS ,

Thanks for noticing.
Here is the attached file below.


Br,
Raky



Configuration.pngerror_Adc.png



Re: ADC Configuration for S32K344 EVB HDQFP172

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 

Re: ADC Configuration for S32K344 EVB HDQFP172

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 

タグ(1)
評価なし
バージョン履歴
最終更新日:
1週間前
更新者: