On 3/20/21, Flavio Castro Alves Filho <flavio.al...@gmail.com> wrote:
> Updating:
>
> * with the great help from Allan, I could verify that that using usart2 it
> works fine
>   - stm32f4discovery uses usart2 as console
>   - my board, similar to stm32f4discovery, uses usart1 as console
>
> * there is a conflict between the usart1 pins and usb device for
> stm32f4discovery configuration in nuttx
>   - according to the kit, the same pins (pa9 and pa10) are used for USB
> host device detection
>
> What I have done:
>
> * replaced the vbus pin (pa9) to another not used pin
> * searched for references about pa10 on the source code, and I couldn't
> find anything
>
> For now, I can see the nuttshell prompt on the serial, but it is not
> accepting inputs from the keyboard.
>
> And USB device is not working. PC is not detecting the device.
>

Of course, you need to run in the NuttX terminal:

nsh> sercon
DCD register : 0000
sercon: Registering CDC/ACM serial driver
sercon: Successfully registered the CDC/ACM serial driver
stm32_usbsuspend: resume: 0

nsh> ls /dev
/dev:
console
null
ttyACM0
ttyS0
nsh>

After doing it the USB CDC/ACM will be detected.

BR,

Alan

Reply via email to