LPC54018 uart issue

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

LPC54018 uart issue

1,920 Views
mail8
Contributor II

I use an LPC54018 baseboard with IoT module on it. My project is based on lpc54018iotmodule_i2c_interrupt_b2b_transfer_master example, and I want to use UART4 (present on Shield connector) additional to that.

So I took the lpc54018iotmodule_usart_interrupt example, changed that to use UART4 and it worked fine.

Next I copied the specific parts or UART4 and copied it to the lpc54018iotmodule_i2c_interrupt_b2b_transfer_master base project. 

When I compile my project it gives the following error:

In file included from ../utilities/fsl_debug_console.c:54:

/Users/raymond/MCUXpresso/54018/vb-dcu/component/serial_manager/serial_manager.h:124:2: error: #error SERIAL_PORT_TYPE_UART, SERIAL_PORT_TYPE_USBCDC, SERIAL_PORT_TYPE_SWO and SERIAL_PORT_TYPE_USBCDC_VIRTUAL should not be cleared at same time.

#error SERIAL_PORT_TYPE_UART, SERIAL_PORT_TYPE_USBCDC, SERIAL_PORT_TYPE_SWO and SERIAL_PORT_TYPE_USBCDC_VIRTUAL should not be cleared at same time.

  ^~~~~

I tried lots of things but I can't get rid of the error.

Somebody please help me?

Best regards,

0 Kudos
8 Replies

1,784 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Raymond Verbruggen,

Please send your project to me, I will help check it on my side, thanks!

Regards,

Alice

0 Kudos

1,784 Views
mail8
Contributor II

Hi Alice,

Sorry, this attached zip file does gives errors when compiling.

Could you please check?

Thanks a lot on forehand.

Best regards,

Mit freundlichen Grüßen,

Met vriendelijke groet,

Raymond Verbruggen

FOCUSSING B.V.

Mispel 8

7621 WB Borne

Netherlands

+31 6 250 500 69

mail@focussing.nl

www.focussing.nl

Op 16 jul. 2020, om 04:35 heeft Alice_Yang <admin@community.nxp.com> het volgende geschreven:

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: LPC54018 uart issue

reply from Alice_Yang <https://community.nxp.com/people/Alice_Yang?et=watches.email.thread> in MCUXpresso IDE - View the full discussion <https://community.nxp.com/message/1341168?commentID=1341168&et=watches.email.thread#comment-1341168>

Hello Raymond Verbruggen <https://community.nxp.com/people/mail@focussing.nl>,

Please send your project to me, I will help check it on my side, thanks!

Regards,

Alice

Reply to this message by replying to this email, or go to the message on NXP Community <https://community.nxp.com/message/1341168?commentID=1341168&et=watches.email.thread#comment-1341168>

Start a new discussion in MCUXpresso IDE by email <mailto:discussions-community-mcuxpresso-mcuxpresso--ide@mail.freescale.jiveon.com> or at NXP Community <https://community.nxp.com/choose-container.jspa?contentType=1&containerType=14&container=11555&et=watches.email.thread>

Following Re: LPC54018 uart issue <https://community.nxp.com/message/1341168?commentID=1341168&et=watches.email.thread#comment-1341168> in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe <https://community.nxp.com/unsubscribe.jspa?id=339846&token=0a2a2c366ac808a62abc846ab062ff562294db14b676b0c4ace99c5e9fcdb6b8> instantly from NXP Community, or adjust email frequency in your email preferences <https://community.nxp.com/user-preferences!input.jspa>

0 Kudos

1,784 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Raymond,

Because in your project, there are two header files use the same  name "uart.h",

I change one of them to uart_v.h, and pay attention to includes the right header files in serial_port_uart.c and

serial_port_uart.h :

pastedImage_1.png

Then build, there is no error.

Hope it helps,

Alice

0 Kudos

1,784 Views
mail8
Contributor II

It helps??? 

YESSS YOU ARE TOP!! 

How easy it can be.

Thank you very much!!

Best regars,

Raymond

0 Kudos

1,784 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Welcome!

Regards,

Alice

0 Kudos

1,784 Views
mail8
Contributor II

Hello Alice,

Thank you that is great!

Please find the project in the attached zip file.

Best regards,

Mit freundlichen Grüßen,

Met vriendelijke groet,

Raymond Verbruggen

FOCUSSING B.V.

Mispel 8

7621 WB Borne

Netherlands

+31 6 250 500 69

mail@focussing.nl

www.focussing.nl

Op 16 jul. 2020, om 04:35 heeft Alice_Yang <admin@community.nxp.com> het volgende geschreven:

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: LPC54018 uart issue

reply from Alice_Yang <https://community.nxp.com/people/Alice_Yang?et=watches.email.thread> in MCUXpresso IDE - View the full discussion <https://community.nxp.com/message/1341168?commentID=1341168&et=watches.email.thread#comment-1341168>

Hello Raymond Verbruggen <https://community.nxp.com/people/mail@focussing.nl>,

Please send your project to me, I will help check it on my side, thanks!

Regards,

Alice

Reply to this message by replying to this email, or go to the message on NXP Community <https://community.nxp.com/message/1341168?commentID=1341168&et=watches.email.thread#comment-1341168>

Start a new discussion in MCUXpresso IDE by email <mailto:discussions-community-mcuxpresso-mcuxpresso--ide@mail.freescale.jiveon.com> or at NXP Community <https://community.nxp.com/choose-container.jspa?contentType=1&containerType=14&container=11555&et=watches.email.thread>

Following Re: LPC54018 uart issue <https://community.nxp.com/message/1341168?commentID=1341168&et=watches.email.thread#comment-1341168> in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe <https://community.nxp.com/unsubscribe.jspa?id=339846&token=0a2a2c366ac808a62abc846ab062ff562294db14b676b0c4ace99c5e9fcdb6b8> instantly from NXP Community, or adjust email frequency in your email preferences <https://community.nxp.com/user-preferences!input.jspa>

0 Kudos

1,784 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Raymond,

There is no error when compile your project on my side:

pastedImage_1.png

Regards,

Alice

0 Kudos

1,784 Views
mail8
Contributor II

Hey, I did not get a message that you replied!

I will send you a new zip file which does gives errors by replying on your email.

Thanks on forehand!

Raymond

0 Kudos