-
Notifications
You must be signed in to change notification settings - Fork 14
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
UART example not working #14
Comments
Seems like this is happening because the BL616 chip (which provides this interface over USB) has a firmware with dividers calculated for 48MHz (as in FT2232), while having a 26MHz crystal oscillator instead, therefore its timings are off by factor of ≈3.70 or even 4. Of course, if Sipeed releases updated firmware for the BL616 (USB Debug JTAG+UART chip on the Tang Primer 25K Dock board) SoC with corrected constants, the problem will be solved. But I don't even know how to contact them and ask if they already did. |
More specifically, here is a table of its speeds we managed to measure (expected vs real):
We can see in UART/src/uart_top.v: That way this example could start working. |
Unfortunately this trick does not work for me. @Zepan can you please have a look why this example is not working on Primer 25K? I also can't get usb_hid_host printing anything on Primer 25K. I receive absolutely no UART. This is really frustrating as without UART any CPU emulation is simply pointless on this FPGA board. |
This is weird. As I can see, the BL616 on the Dock Board provides two interfaces: one JTAG and one UART. Are you sure your problem is the same as ours? |
Update: I have connected UART example to RX=L11, TX=K5 PMOD and used separate FT232R USB dongle with genuine FTDI chip and this example works perfectly. Everything is super stable. So long story short I think BL616 firmware is broken and UART pass-through is completely unreliable. I managed to make it work only on Windows, and it also breaks as soon as I reconnect few times. This example is also broken with RX and TX pins swapped, and will only lead to frustration when using Sipeed/Gowin products. Is anyone from Sipeed (@DouerGan or @Zepan) reading this? Functional UART is crucial for any debugging work. |
Well, I asked Sipeed technical support about it, and they said everything is working fine on their end. Whatever that means. |
OK I need to change |
@nanoant I have exactly the same configuration as you, except I am using the educational edition which has support for model What version of the IDE/programmer are you using ? |
@0x8008135 Don't bother with EDU version of Gowin IDE, Downside is that they see your IP every-time you start IDE and maybe they collect some data about you. On non-EDU all projects work fine out of the box. Sometimes Unfortunately all instruction provided at Sipeed WIKI are misleading letting you think EDU should work with Primer 25K, but it doesn't. It is pretty clear that Primer 25K instructions were based on non-EDU version look at screenshot there https://wiki.sipeed.com/hardware/en/tang/tang-primer-25k/primer-25k.html#No-Response-or-Incorrect-Pin-Phenomenon-After-Burning. |
Ok, I will give it a shot using the normal version. I really hope that Sipeed will make a clear statement about this, or at least, update their website to avoid people losing their time ! Thank you for the troubleshooting and time on this matter, I will let you know if I succeed with the normal version. |
TX is the C3, RX is the B3. We need to change the example UART cst file. |
Hello,
I cannot make the uart example work despite my efforts.
Did anyone succeed?
According to my understanding an output should be seen on the uart (I assume USB1), but there is nothing.... (a small description is welcomed as well for beginners)
Please advice
The text was updated successfully, but these errors were encountered: