Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

UART 2 only works after mos CLI has been connected?

I have a sensor which is attached to UART2 on an ESP32. If I just let the ESP32 start up itself while attached to my laptop's USB then the UART reads corrupted data over the UART (I use UDP to monitor its logging). However, if I run a mos CLI command then the UART immediately begins to read the data correctly. Any mos command seems to do it (e.g., mos config-get). It's just the action of interacting over the USB which somehow sorts the UART out. Does anyone know what the mos CLI might be doing to kick UART 2 into action?

thanks,

dan.

Comments

  • I tried switching to UART1 instead, but that does the same thing. I also tried using the mongoose-os-apps/example-uart-c example and that exhibits the problem as well.

    dan.

Sign In or Register to comment.