Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHi Dave,
I integrated JTAG to Avalon MM Master bridge in to my design and tried write-read memories (implemented as Avalon Slaves) with the Client-Server scripts that you have provided. (Using Centos 5.9 and Quartus 16.0) I could start the server with % quartus_stp -t jtag_server.tcl Opened another tab % gcc -Wall -o jtag_client jtag_client.c % ./jtag_client -w 0x0000 -d 0x12345678 (SRAM sits on 0x0000) It shows me following messages on client side: ============================================= [svaishampayan@dev01 jtag_client_server]$ ./jtag_client -w 0x0000 -d 0x12345678 Connect to server localhost:2540 JTAG write (address, data) = (0x00000000, 0x12345678) [svaishampayan@dev01 jtag_client_server]$ ============================================= On Server side: ============================================= JTAG: USB-BlasterII [USB 1-3.1], FPGA: @1: 10AT115S(1|2) (0x02E060DD) Start the server on port 2540 Wait for clients Accept sock2aaaab339790 from 127.0.0.1 port 56979 Handle the client via a fileevent callback SERVER (sock2aaaab339790): jtag_write 0x00000000 0x12345678 SERVER: jtag_write 0x00000000 0x12345678 SERVER (sock2aaaab339790): Invalid command from the client SERVER (sock2aaaab339790): empty command SERVER (sock2aaaab339790): disconnected [svaishampayan@dev01 jtag_client_server]$ ============================================= Could you please explain why it is saying "Invalid command from the client"? Thanks in anticipation! Regards Sagar.