Adc_example_S32K396 missing port to sample

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Adc_example_S32K396 missing port to sample

322 次查看
s32k3_newbie
Contributor III

Hi,

I created a project from example Adc_example_S32K396 but when I open the config tool to Update Code, there is an error because there are no pins assigned. I'm using S32DS.3.5.

s32k3_newbie_0-1750317748558.png

 

标记 (1)
0 项奖励
回复
2 回复数

295 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

In ADC examples, the Pins Tool is disabled because provided examples do not use it (they use internal references).

If you want to configure other pins, please follow steps in the following post:

https://community.nxp.com/t5/S32K/How-to-do-ADC-projects-in-S32K3x4/td-p/2104444

The steps will be similar for S32K396 using MCAL example version.

I hope this information is helpful.

0 项奖励
回复

267 次查看
s32k3_newbie
Contributor III

Hi Leo,

 

Thanks for your reply. I added a new port. I was able to build the sample project. However, I still did not use my added port because I want to know first if the Adc_example_S32K396 project works. The bStatus in the main.c code is always false. Could you please confirm if this sample project works as expected? Thanks!

            if ((ResultBuffer[0u] != AdcReadGroupResult[0u]) || \
                (ResultBuffer[1u] != AdcReadGroupResult[1u]) || \
                (ResultBuffer[2u] != RESULT_BUFF_VAL) || \
                (AdcReadGroupResult[2u] != ADC_RESULT_BUFF_VAL) || \
                (ADC_TOLERANCE(ResultBuffer[0u], ADC_BANDGAP)) || \
                (ADC_TOLERANCE(ResultBuffer[1u], ADC_VREFH)) \
                )
            {
                bStatus = FALSE;
                break;
            }
        if ((0u != FifoResult[4u]) || ADC_TOLERANCE(BctuCtrlModeResult, ADC_BANDGAP) || \
            (ADC_TOLERANCE(FifoResult[0u], ADC_BANDGAP)) || \
            (ADC_TOLERANCE(FifoResult[1u], ADC_BANDGAP)) || \
            (ADC_TOLERANCE(FifoResult[2u], ADC_BANDGAP)) || \
            (ADC_TOLERANCE(FifoResult[3u], ADC_VREFH)) \
            )
        {
            bStatus = FALSE;
        }

s32k3_newbie_0-1750660328923.png

 

 

0 项奖励
回复