Dear Alan,

I am switching back to normal nsh.

But I want to update a bit.

I got ttyACM1 after building using the latest Nuttx. ttyACM0 is from STLINK.
But nsh> shell doesn't appear.

After hitting <Enter> a few times, the serial terminal is freezed.

I have another board, STM32F429i-Disco. I didn't face this problem in F429i
Board.

 stm32F407G-disc1 mini USB is at FS USB mode.
TM32F429i-Disco's mini usb is at HS USB mode.

I am not sure it could be the problem in usbnsh configuration.

@Berennan,

STLINK chip on stm32F407G-disc1 does not connect to any UART port. That's
why STLINK port cannot use as a console as well.

It is very special case.

Thank you.

Regards,
Thiha



On Thu, Dec 3, 2020 at 3:24 AM Alan Carvalho de Assis <acas...@gmail.com>
wrote:

> Yes, good point!
>
> The USB at the bottom of the board is the USB that will work as USB
> CDC/ACM Console.
>
> BR,
>
> Alan
>
> On 12/2/20, Brennan Ashton <bash...@brennanashton.com> wrote:
> > It is also worth checking here are you connecting to both USB ports on
> > the board?  That configuration will expose a CDC/ACM device on the
> > non-debug USB port on the board.
> >
> > It is also worth noting that they made a slight change to the design
> > around the debugger in that version so you can also get the UART via
> > ST-Link port and (I believe) be able to just use that with the NSH
> > (non usb) configuration to get the console.
> >
> > --Brennan
> >
> > On Wed, Dec 2, 2020 at 9:41 AM Alan Carvalho de Assis <acas...@gmail.com
> >
> > wrote:
> >>
> >> Hi Thiha,
> >>
> >> I don't know what you mean "does not work".
> >>
> >> It is like someone calling the Help Desk and saying: "My computer
> >> doesn't work" Hehehe
> >>
> >> You need to describe what exactly is not working based on the steps
> >> you are doing.
> >>
> >> After flashing the firmware and resetting the board, does the dmesg
> >> command on Linux shows that a CDC/ACM ttyUSB0 device was detected?
> >>
> >> Just a dump question:
> >>
> >> Did you hit <ENTER> three times after opening /dev/ttyUSB0 on minicom?
> >>
> >> BR,
> >>
> >> Alan
> >>
> >> On 12/2/20, Thiha Kyaw <thiha....@gmail.com> wrote:
> >> > Dear Nuttx,
> >> >
> >> > USBNSH console does not work in stm32F407G-disc1 Board.
> >> >
> >> > stm32F407G-disc1 is upgraded version of stm32f4discovery board.
> >> >
> >> > I only see the serial port from STLINK.
> >> >
> >> > How can I get nuttx serial port from USB?
> >> >
> >> > I use Ubuntu 18.04
> >> >
> >> > Thanks.
> >> >
> >> > --
> >> > Yours Sincerely,
> >> > Thiha Kyaw
> >> >
> >
>


-- 
Yours Sincerely,
Thiha Kyaw

Reply via email to