Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Adam Feuer
Tim, I may be misunderstanding what you are saying– but it may be that you are confusing USB C Power Delivery host or device functionality with USB 2.0 / USB 3.0 data host or device functionality. See this StackExchange question and answer

Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Tim Hardisty
Just FUSB302. It uses the toggle mode to work out a device or host attach and the driver (yes, I authored/submitted that) handles the necessary reconfiguration of the pull ups/downs and then signals, via a poll, to the application layer (or, in my case, board-level driver code) what has occurre

Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Adam Feuer
Are you using an FUSB302 with an FUSB340 (USB Switch)? My understanding is that the FUSB302 only provides USB C power delivery along with a USB2.0/USB 3.0 connection. That chip doesn't do anything to allow host and device on the same port. As far as I know that's a function of the SAMA5D27 and the

Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Tim Hardisty
Hi Adam, My board is pushing many boundaries as it allows usb host and device to coexist on a single physical port using an FUSB302 controller. It means it can never be as clear cut as it being a bug to report! If you happen to have a config that works for this it would be useful for sure,

Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Adam Feuer
Tim, I used the CDC/ACM as the console device. Will you file a bug and put all that in the bug, and then we can communicate there? -adam On Wed, Aug 16, 2023 at 12:25 PM Tim Hardisty wrote: > Thanks for replying Adam. > > Did you try CDC/ACM for console, or just CDC/ACM itself? CDC/ACM does w

Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Tim Hardisty
Thanks for replying Adam. Did you try CDC/ACM for console, or just CDC/ACM itself? CDC/ACM does work fine using the usbserial example app, it's just using it as a console that's tripping me up. I was drafting a different email before this topic, and may have missed some relevant information

Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Adam Feuer
Hi Tim and Alan, I tested CDC/ACM when I was doing the CDC/ECM performance increases about 18 months ago. It seemed like everything worked fine on the Jupiter Nano, the SAMA5D2-XULT. I can put together a config for this again and test it... or send me yours, and I will adapt to Jupiter Nano. If we

Re: CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Alan C. Assis
Hi Tim, On 8/16/23, Tim Hardisty wrote: > I am trying to get CDC/ACM working on my custom board so I can have a > USB console. I have finally worked out the arcane set of CONFIG options > needed, found the to-be-expected bugs/inconstencies with some of the > SAMA5 code, that I have worked around

CDC/ACM console data to NuttX corrupted.

2023-08-16 Thread Tim Hardisty
I am trying to get CDC/ACM working on my custom board so I can have a USB console. I have finally worked out the arcane set of CONFIG options needed, found the to-be-expected bugs/inconstencies with some of the SAMA5 code, that I have worked around for now (most are covered by disabling debug a

Re: How does uname work? How is version.h created?

2023-08-16 Thread Gregory Nutt
So the question - how is version.h being created? Even if this is not included upstream, I can have it done at least locally, but being still in starting phase, I need some pointer here... It is created from .version by tools/mkversion under the control of tools/Unix.mk.  .version is created

How does uname work? How is version.h created?

2023-08-16 Thread Milan Obuch
Hi, as I am building NuttX from git repository, uname output is not that helpful. See here: nsh> uname -a NuttX 0.0.0 Aug 16 2023 16:35:21 risc-v bl602evb There is just one way to know something more - look at some file and guess which one it is. Date/time shown here is that of the moment you

Re: Small annoyances when building NuttX on FreeBSD

2023-08-16 Thread Milan Obuch
On Wed, 16 Aug 2023 14:32:23 +0200 Bernd Walter wrote: > On Wed, Aug 16, 2023 at 11:18:19AM +0200, Milan Obuch wrote: > > Hi, > > > > at the moment, I am able to build NuttX on FreeBSD for arm > > (Raspberry Pi Pico boards and similar, QuickFeather), xtensa > > (Espressif ESP32 and ESP32S2) and

Re: Small annoyances when building NuttX on FreeBSD

2023-08-16 Thread Bernd Walter
On Wed, Aug 16, 2023 at 11:18:19AM +0200, Milan Obuch wrote: > Hi, > > at the moment, I am able to build NuttX on FreeBSD for arm (Raspberry > Pi Pico boards and similar, QuickFeather), xtensa (Espressif ESP32 and > ESP32S2) and risc-v (Espressif ESP32C3 and ESP32C6, and PineCone - > BL602 based),

Small annoyances when building NuttX on FreeBSD

2023-08-16 Thread Milan Obuch
Hi, at the moment, I am able to build NuttX on FreeBSD for arm (Raspberry Pi Pico boards and similar, QuickFeather), xtensa (Espressif ESP32 and ESP32S2) and risc-v (Espressif ESP32C3 and ESP32C6, and PineCone - BL602 based), some of them with tests on real hardware. While in general the process