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
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
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 tools. To 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
Hi Ian,
thank you for reporting this issue, it will be fixed in next release of data for MCUXpresso Configuration Tools.
Regards,
Lukas