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

Sipeed Tang Primer 25k no serial out after successful flash #565

Open
blark opened this issue Feb 15, 2024 · 4 comments
Open

Sipeed Tang Primer 25k no serial out after successful flash #565

blark opened this issue Feb 15, 2024 · 4 comments

Comments

@blark
Copy link

blark commented Feb 15, 2024

Was hoping someone could help me understand why after a successful build, and flash I am not getting anything from the UART of my 25k.

I had a similar problem with my 9k, and did some digging and found recommendations in issues to comment out a few lines--which got it working. However, I don't see similar lines in the 25k board files, I did play around a bit but am a n00b with LiteX so I'm a bit lost.

I know the flash worked fine as the LED chaser works, which is the same thing that happened on the 9k. I'm just once again not getting anything when I connect at 115200 baud. Thanks in advance for your assistance.

@trabucayre
Copy link
Contributor

Yes. This issue is unrelated to the 9k.
Here the firmware executed by the riscv is embedded into the bitstream so no need to write the firmware into the flash.

First of all: could you copy/paste dmesg displayed when you plug the board. I have seen some issues with recent usb interface firmware.

@blark
Copy link
Author

blark commented Feb 22, 2024

Thanks for the reply. I'm currently travelling but when I get back home next week I'll send the details.

The 9k serial terminal worked fine (after I commented those lines), does the 25k use a different driver?

@trabucayre
Copy link
Contributor

There is two unrelated issue here:

  • 9k needs to have to a riscv firmware written into external flash and the CPU execute code directly from this device
  • 25k has a more classic approach (riscv firmware is stored into BRAM.

9k and 25k have different usb<->serial converters. These chip are microcontroller with a firmware (not the one built by LiteX) to mimic FT2232 chip. I suspect some regressions with current firmware shipped with 25k (mine board has an older firmware without this type of issue). This why I need to confirm/infirm my assumption with your 25k interface version.

@trabucayre
Copy link
Contributor

Any news ?

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

2 participants