ConfigTools in MCUXpresso is generating defective code for the ADC pins

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

ConfigTools in MCUXpresso is generating defective code for the ADC pins

1,910 Views
dingelen
Contributor III

Hi, 

I have an issue with the ConfigTools integrated in MCUXpresso. It seems to genereate defective code for ADC pins for the LPC55S69.

As an example, I am adding to the USB_VCOM_FREERTOS example an ADC on PIO0_23.

pastedImage_1.png

The analog switch input control is set by the tool.

pastedImage_2.png

And on the build these errors are thrown.

pastedImage_3.png

Looking at the code shows me there is a define missing.

pastedImage_4.png

And as visible in the pin_mux.h file it is really missing.

pastedImage_5.png

I think there should be an extra line like this (please correct me if this is wrong):

#define BOARD_INITPINS_AN0_GPIO GPIO

Can someone verify this problem and let me know how to fix this correctly?

MCUXpresso IDE v11.1.1 [Build 3241] [2020-03-02]

SDK_2.7.1_(322 2020-02-24) LPC55S69

Thanks!

Tom

Labels (1)
Tags (3)
0 Kudos
Reply
6 Replies

1,780 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

dingelen

I reproduced your issue on my side. I will escalate to config tool team. I will keep you informed.

Thanks,

Jennie

0 Kudos
Reply

1,780 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

dingelen

This defect will be fixed in next SDK release. Thank you for bringing the problem to our attention.

Best Regards

Jun Zhang

0 Kudos
Reply

1,780 Views
dingelen
Contributor III

Here it is. This issue came up when I switched from SDK 2.6.x to 2.7.1.

0 Kudos
Reply

1,780 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

PIO0_23/ADC0_0 — General-purpose digital input/output pin. It's same pin.

so if you want to use it as  ADC0_0, don't define it as PIO0,23 again. they are conflict.

pastedImage_1.png

0 Kudos
Reply

1,780 Views
dingelen
Contributor III

Hi Jennie,

what you are saying is not the issue that I have. Please read the description carefully.

I get a compile error due to a missing define in the automaticly generated pin_mux.h file.

UPDATE: THIS ONLY HAPPENS WHEN A LABEL AND IDNETIFIER ARE ENTERED

Without label/identifier:

pastedImage_1.png

With label/identifier:

pastedImage_2.png

0 Kudos
Reply

1,780 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi dingelen 

Could you please send me your demo project? I will check this issue directly. Thanks.

Have a nice day,

Jun Zhang

0 Kudos
Reply