rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

AVR32: CDC VCOM console for MSH for Mizar32

Open ramangopalan opened this issue 2 years ago • 0 comments

Dear RT-Thread community, Greetings!

I have been exploring the code to implement the support for USB CDC for the Mizar32 (AVR32) platform. I have currently enabled UART-1 as the default console for the Mizar32 platform. I had a few questions to ask. I will list them as points:

  1. Without going through the RT-Thread's USB communication device sub-system/protocol (CDC), is there a way to route the default RS-232 interactions on MSH via Microchip's CDC stack?

  2. I made a test (debug) Microchip Studio application a while ago for testing RT-Thread's functionality with the drivers I implement/experiment with; i.e. before I send a PR. The code is here [1].

I tested VCOM on Mizar32 by calling the USB stack's routine within RT-Thread. Can you please check [2]? In [2], I am just instantiating a thread (rt_thread_usb) to invoke the Atmel's stack for enumeration. I am attaching a picture of it.

cdc-mizar32

I used an FTDI breakout to talk to MSH on UART-1 and spawned another terminal emulator instance to check the output of CDC VCOM. It works. Is there a way to override the default UART-1 to bring in VCOM and the stack at [2] for MSH?

  1. I have seen RT-Thread's support for CherryUSB and TinyUSB. They are outside RT-Thread. Can a stack such as Atmel's in [3] be within AVR32's BSP? Would you permit this?

  2. I read a very interesting article [4] which introduced me to vconsole. I can find it within the packages menu but not on Github. I am not sure if the link is broken. Is there a way to implement what vconsole does by default on Mizar32 - with [3]?

Please do give me your suggestions. Merry Christmas!

References: [1]:https://github.com/ramangopalan/rtthread_mizar32b_sample/ [2]:https://github.com/ramangopalan/rtthread_mizar32b_sample/blob/master/rtthread_mizar32b_sample/bsp/avr32/at32uc3a0256/application.c [3]:https://github.com/ramangopalan/rtthread_mizar32b_sample/tree/master/rtthread_mizar32b_sample/bsp/avr32/software_framework/drivers/usb-cdc [4]:https://github.com/RT-Thread/rt-thread/issues/4227

ramangopalan avatar Dec 24 '23 16:12 ramangopalan