Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20644 Discussions

NIOS II is not responding on DE0 Soc board

ABola2
Novice
971 Views

I've created a project to use some PIOs in DE0 SoC board as a serial transmitter and receiver but nothing come out from the board.

Can you please help to know if there are some tricks I must do or any things I must avoid?

One more thing, I am suspecting the CLK source, Do I have to use a PLL?

 

1 Solution
Ahmed_H_Intel1
Employee
554 Views
Hi Amanda, Now I understand your design. Attached is a sample design for RS232 with NIOS II using two UARTs. I followed exactly the same Qsys design you have to make it easy to understand. This is based on DE0-Nano-SoC board. Sorry for having the code not commented, but it is simple enough to be clear for you. It sends data from one UART to another. on the board short the TX1 with RX2 to get the project function. In the TOP level change the assignments based on your board: RS232_1 u0 ( .clk_clk (FPGA_CLK1_50), // clk.clk .leds_ex_export (LED), // leds_ex.export .sw_ex_export (KEY), // sw_ex.export .uart_1_ex_RXD (RX_2), // uart_1_ex.RXD .uart_1_ex_TXD (TX_2), // .TXD .uart_0_ex_RXD (RX_1), // uart_0_ex.RXD .uart_0_ex_TXD (TX_1) // .TXD ); Please let me know if you still need support. Regards,

View solution in original post

0 Kudos
6 Replies
Abe
Valued Contributor II
554 Views

Why are you using two UARTs along with the JTAG UART? If I'm right you only want to send and receive data via Serial RS232 link. UART interfaces have Tx and Rx ports, so you only need to use a single UART along with the JTAG UART.

 

By default the clock source on the board would be 50Mhz and it will be connected to one of the CLK pins on the FPGA. Make sure that the same clock pin is used as the clock source for your project.

 

Also make sure that the RS232 UART interface that is exported is assigned to the correct pins that are connected to the serial port on the Dev board. Have you created the BSP and application software that makes use of the UART to send/receive data?

0 Kudos
Ahmed_H_Intel1
Employee
554 Views
Hi Amanda, Yes, you don't have to use two UARTs unless you are planning to send /receive two two devices at the same time. I will create a similar design for you as an example. regards,
0 Kudos
ABola2
Novice
554 Views

Hi Embedded Guy,

Thanks for your fast reply, I am using two UARTs to communicate with two devices, For now I will send from one and receive from the second and vic versa for testing. I am waiting your support.

 

0 Kudos
Ahmed_H_Intel1
Employee
555 Views
Hi Amanda, Now I understand your design. Attached is a sample design for RS232 with NIOS II using two UARTs. I followed exactly the same Qsys design you have to make it easy to understand. This is based on DE0-Nano-SoC board. Sorry for having the code not commented, but it is simple enough to be clear for you. It sends data from one UART to another. on the board short the TX1 with RX2 to get the project function. In the TOP level change the assignments based on your board: RS232_1 u0 ( .clk_clk (FPGA_CLK1_50), // clk.clk .leds_ex_export (LED), // leds_ex.export .sw_ex_export (KEY), // sw_ex.export .uart_1_ex_RXD (RX_2), // uart_1_ex.RXD .uart_1_ex_TXD (TX_2), // .TXD .uart_0_ex_RXD (RX_1), // uart_0_ex.RXD .uart_0_ex_TXD (TX_1) // .TXD ); Please let me know if you still need support. Regards,
0 Kudos
ABola2
Novice
554 Views

Sorry I cannot see any attachment

 

0 Kudos
Ahmed_H_Intel1
Employee
554 Views

Here is the attachment of the RS232 design example

 

Reply