Skip to content

请问能够完善串口定义函数吗 #196

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

Open
xebjz opened this issue May 10, 2025 · 2 comments
Open

请问能够完善串口定义函数吗 #196

xebjz opened this issue May 10, 2025 · 2 comments

Comments

@xebjz
Copy link

xebjz commented May 10, 2025

希望沁恒官方能帮忙完善一下串口自定义函数,
ch32v307
HardwareSerial Serialn (rx, tx);
定义多个硬串口。会报错,无法同时使用Serial2/3.

我用v103都是在天问51下使用的。
希望沁恒的芯片在uart,spi,等官方基础函数能完美适配


如果带phy的芯片,希望能自带类似ethernet2库,让新手有机会学习

@maxint-rd
Copy link
Contributor

Translation:

I hope Qinheng official can help improve the serial port custom function, ch32v307 HardwareSerial Serialn (rx, tx);
Define multiple hardware serial ports. It will report an error and cannot use Serial2/3 at the same time.

I use v103 under Tianwen 51. I hope Qinheng's chip can be perfectly adapted to uart, spi, and other official basic functions.
If the chip comes with phy, I hope it can come with a library similar to ethernet2 to give novices a chance to learn

@maxint-rd
Copy link
Contributor

For the CH32X033 I made a board definition (see PR #171) that allows using Serial1 and Serial2 separately or at the same time, along with an update to PR #145 which implements interrupt driven Serial. If you have the same issue with the ch32v307 , it probably can be fixed. Unfortunately I don't have the ch32v307 in my collection.

If you're using the Arduino core v1.0.3 I highly recommend to use v1.0.4 and then update files with the latest code of the master branche, That version already has many improvements. @yangliangquan is working on a new release, but in the mean time you may want to review the PR's to check for unmerged fixes you might need.

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