Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The longan-nano board examples does not work #6

Open
katyo opened this issue Feb 4, 2023 · 4 comments
Open

The longan-nano board examples does not work #6

katyo opened this issue Feb 4, 2023 · 4 comments

Comments

@katyo
Copy link

katyo commented Feb 4, 2023

It seems this examples does not work at all.
I'm not sure but seems have problems with support Synopsys USB OTG FS on gd32vfxx MCUs.
@Disasm Have you test it on hardware?

UPD: Also I tested with gd32v-ng and gd32v branches.

@Disasm
Copy link
Owner

Disasm commented Feb 4, 2023

This can be the case. I don't remember the current status of GD32V example, but since it's not listed in README, I wouldn't expect it to work out of the box.

@rmsyn
Copy link

rmsyn commented Aug 22, 2023

I wouldn't expect it to work out of the box.

So, I hooked up a logic analyzer to the board.

I attached a tarball of the capture file. It's a sigrok .sr format, let me know if there is something else that would be more helpful.

longan-nano-fs-20230822.sr.tar.gz

At first glance, the packets appear to be getting cut short, and only Reset packets are getting through.

The firmware loaded on the board is the test-class example compiled from the latest master.

@katyo
Copy link
Author

katyo commented Aug 22, 2023

@rmsyn I fixed this in #7

To get it work you also needs synopsys-usb-otg#36.

@rmsyn
Copy link

rmsyn commented Aug 23, 2023

@katyo is there extra testing, or anything else I can help with to get those PRs closer to merging?

Edit: I also tested out your changes, and everything seems to work now! Still need to test the echo part for the serial example firmware, but the device is showing up in lsusb output with the correct PID/VID pair, and sending packets over USB.

Here is an updated capture file:
longan-nano-fs-8mhz-20230823.sr.tar.gz

Still looks like there are some packet errors. Had to correct the sample rate to 8Mhz to get accurate capture data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants