Adc_example_S32K396 missing port to sample

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

Adc_example_S32K396 missing port to sample

335 Views
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

 

Tags (1)
0 Kudos
Reply
2 Replies

308 Views
_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 Kudos
Reply

280 Views
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 Kudos
Reply