- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hello Admin, I am newbie in the field SOC- FPGA.
I need to do a project for my thesis but I have encountered a problem that I spent a lot of time but couldn't fix. I really need admin help. Thank you so much for reading this post of mine.
The error is: I write C code to control IP UART (rs232 serial port) send data to the Tx pin and use the uart to usb module (CP2102) to receive data but the received data shows up wrong with the transmitted data.
For example, transmitting the character "PLEASE" will get "O"; "1234" get "Ê",...
Connect hardware (1)
Connect hardware (2)
data received from CP2102 displayed on hercules terminal
I made the project with the following steps:
1. Add ip into GHRD project
Qsys connection
address map QSYS(1)
address map QSYS(2)
address map QSYS(3)
2. Assignments pin
Assignments pin (GPIO 6 - RX, GPIO7-TX)
File top.v(1)
File top.v(2)
3. File hex use for code C
Define for IP UART
4. FILE CODE C: admin, please help me check carefully the C code that has set baudrate and especially send the data, is it correct?
-------------------------------------------
Thank you very much admin. I hope you have amazing day.
Regards,
Kai.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
I am not familiar with these example design, so I may only give the best support for this issue.
Also, I advise that you consult Terasic on your project for your DE10 board.
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
Since your board is Terasic based, it is best that you also get help from Terasic.
Do they have an example for this? Maybe a simple Hello World, and we can work from there.
Also, where did you get this GHRD? Is it from Terasic?
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi EBERLAZARE_I_Intel,
connect hardware
The first, I have looked for examples of uart of this IP but there are very few examples and only got 1 example made with the GHRD project from this links:
1. https://blog.csdn.net/weixin_43649647/article/details/121069892
2. Page 140 to page 155: https://www.intel.com/programmable/technical-pdfs/683130.pdf
3. Project example for Nios (but I must use with GHRD): https://www.intel.com/content/www/us/en/design-example/715139/cyclone-v-uart-rs-232-maximum-baud-rate-reference-design.html?wapkw=uart
Secondly, I got project GHRD from Terasic (CD Rom) or You can get at link I was upload:
https://drive.google.com/file/d/1Bse1dQUNYEjjC0GkylL1VpXxlSVzFtoI/view?usp=sharing
Also, I think this problem may be caused by asynchronous transfer speed (baundrate) of the two devices or another error? But I don't know how to fit it. please help me to fix this error of wrong data transmission.
Thank you very much.
Regards,
Kai
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
I am not familiar with these example design, so I may only give the best support for this issue.
Also, I advise that you consult Terasic on your project for your DE10 board.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
Did you had issue with the Intel example item no 3?
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi
Thank you so much for your support. I succeeded in this application.
Regards,
Kai
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.
p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable