peripheral tools issue setting up adc

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

peripheral tools issue setting up adc

801 Views
inorman
Contributor III

Hi, I've used the peripheral tools to setup an adc channel however the code it generates produces a mismatch between the source & header files. In the source file peripherials.c it generates 

adc16_channel_config_t ADC0_channelsConfig[1] = {
{
.channelNumber = 26U,
.enableDifferentialConversion = false,
.enableInterruptOnConversionCompleted = false
}
};

while the header peripherials.h has 

extern adc16_channel_config_t ADC16_1_channelsConfig[1];
changing this manually to 

extern adc16_channel_config_t ADC0_channelsConfig[1];

fixes the compile errors.

Here is a screenshot of how this was generated

adcissue.jpg

This is for a MK64FN1M0VLQ12 using mcuxpresso 10.1.0

Hope this helps fix this issue for the next release of the tools

kind regards

Ian

Tags (2)
0 Kudos
2 Replies

498 Views
Lukas_Heczko
NXP Employee
NXP Employee

Hi,

update of data for MCUXpresso Configuration Tools including fix of the problem with mismatched ADC prefix is now available for MCUXpresso Configuration Tools v4.0 and MCUXpresso IDE 10.1.x. Updated data are downloaded automatically by the toolsTo fix this issue in an existing project, you need to open the project in the Configuration Tool and regenerate peripherals.c and peripherals.h files using Update Project Code button.

Regards,

Lukas

0 Kudos

498 Views
Lukas_Heczko
NXP Employee
NXP Employee

Hi Ian,

thank you for reporting this issue, it will be fixed in next release of data for MCUXpresso Configuration Tools. 

Regards,

Lukas

0 Kudos