peripheral tools issue setting up adc

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

peripheral tools issue setting up adc

1,418 次查看
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

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

1,115 次查看
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 项奖励
回复

1,115 次查看
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 项奖励
回复