[LPC55S69] Zephyr: uart-mcumgr on shared flexcomm port

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

[LPC55S69] Zephyr: uart-mcumgr on shared flexcomm port

774 Views
ED8500
Contributor II

Hi all,

I have an application running on the NXP that communicates with a host application over uart flexcomm0. Working fine. What I want to implement is DFU (using mcumgr from the same host) but I only have this one single flexcomm0 between the host and NXP. So custom commands and DFU need to go over the same flexcomm.

I found a post that says mcumgr can be on a shared uart by just adding CONFIG_MCUMGR_TRANSPORT_SHELL=y to the prj.conf. But seems like it doesn't work. Tried all kinds of combinations but to no avail.

I'm talking about this:

zephyr,console = &flexcomm0;
zephyr,shell-uart = &flexcomm0;
zephyr,uart-mcumgr = &flexcomm0;

My custom parser works fine until the point I enable the CONFIG_MCUMGR=y, so I must be missing some config flags probably.

So question is: can both be on the same port? If yes, what flags should be set (or not set) in the prj.conf?

Thanks in advance!

0 Kudos
Reply
3 Replies

669 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @ED8500 

Apologies the late reply,

The lpcxpresso55s69 has a DFU example, could you please try to add the same configurations to your project?

carlos_o_0-1763140349203.png

the example overlay is to enable dfu permanent download

 

 

 

 

0 Kudos
Reply

594 Views
ED8500
Contributor II

Thanks Carlos for the feedback. The trick was to remove the shell-uart from the app.overlay file and keep the console and uart-mcumgr. In the prj.conf  replace  the CONFIG_MCUMGR_TRANSPORT_UART by CONFIG_MCUMGR_TRANSPORT_SHELL. I'm currently testing it but it seems to work nicely...

0 Kudos
Reply

522 Views
carlos_o
NXP TechSupport
NXP TechSupport

Thanks for sharing, let me know if you have issues 

0 Kudos
Reply