Forum Discussion
I got slightly different behavior after doing the following. (Note I'm using '1' for the cable number. I don't know how to determine what the index should be so using the example.)
~$ jtagconfig --setparam 1 JtagClock 6M
~$ jtagconfig --getparam 1 JTagClock
6M
~$ cd arria10GX_10ax115sf45_fpga_v15.1.2/examples/board_test_system
~/arria10GX_10ax115sf45_fpga_v15.1.2/examples/board_test_system$ BoardTestSystem.shI have attached a PNG with screenshots. When I try Restore->Factory Restore, I get a popup saying:
Failed to get this device. Please make sure system console is closed. Close this GUI amd check the board connection.What system console is it referring to? What connection is failing since jtag is available and I'm getting some communication happening as evidenced by the Message in the BTS GUI. The new behavior is in the "Messages" window. Now (after factory restore and before clicking "OK" on the "Failed to get this device" popup) it says:
Current design occupies flash interface. Must reconfigure with none flash interface design...I don't understand what it's telling me to do (and isn't even proper grammar!) When I click "OK" on the popup, I get the same "Failed to get this device" again, but the Messages window says "Program factory image to flash !..."
I'm attaching screenshots as a single PNG. The BTS run's console output is below. I have Quartus 15.1.2 in exec and lib paths.
QUARTUS_ROOTDIR = </home/okramer/intelFPGA/active/quartus>
Success!
Current OS:Linux
Nov 25, 2019 9:46:41 AM com.altera.bts.BtsView <init>
INFO: Board version: Rev E3, chip version: PRD
Nov 25, 2019 9:46:41 AM com.altera.bts.systemconsole.client.ClientApp attachServer
INFO: [/home/okramer/intelFPGA/active/quartus/sopc_builder/bin/system-console, --server]
Nov 25, 2019 9:46:41 AM com.altera.bts.systemconsole.client.ClientApp attachServer
INFO: Here is the standard output of the command:
Nov 25, 2019 9:46:42 AM com.altera.bts.systemconsole.client.ClientApp attachServer
INFO: TCP PORT: 43260
Nov 25, 2019 9:46:48 AM com.altera.bts.systemconsole.client.JtagInfo retrieveDeviceList
INFO: 2 device detected: /devices/10AX115H2E(2|S)|10AX115H3E3|..@1#1-5 /devices/5M2210Z|EPM2210@2#1-5
Nov 25, 2019 9:46:48 AM com.altera.bts.systemconsole.client.ClientApp getCompatibleBoardInfoArray
INFO: System Max matched: true, Fpga matched: true
Nov 25, 2019 9:46:48 AM com.altera.bts.BtsView <init>
INFO: Selected JTAG cable is: USB-BlasterII on localhost (1-5)
Nov 25, 2019 9:46:48 AM com.altera.bts.BtsView <init>
INFO: FPGA device on index 1, System MAX on index 2
Nov 25, 2019 9:46:48 AM com.altera.bts.InstanceChecker registerInstance
INFO: Application Register. Type: Board Test System GUI
Nov 25, 2019 9:46:48 AM com.altera.bts.systemconsole.client.SysConService <init>
INFO: Claim master service succeed! Service path: "/devices/5M2210Z|EPM2210@2#1-5/(link)/JTAG/(110:130 v3 #0)/jtagmem_0", claimed path: /channels/remote1/(lib)/master_1.
Nov 25, 2019 9:46:49 AM com.altera.bts.SysInfo init
INFO: Claim sysinfo master service.
Nov 25, 2019 9:46:49 AM com.altera.bts.systemconsole.client.SysConService <init>
INFO: Claim master service succeed! Service path: "/devices/5M2210Z|EPM2210@2#1-5/(link)/JTAG/(110:130 v3 #0)/jtagmem_0", claimed path: /channels/remote1/(lib)/master_2.
Nov 25, 2019 9:46:49 AM com.altera.bts.DesignDetection readFpgaDesignType
INFO: Claim FPGA master service to read design type.
Nov 25, 2019 9:46:49 AM com.altera.bts.systemconsole.client.SysConService <init>
SEVERE: java.io.IOException: Get master service paths failed! Device: "/devices/10AX115H2E(2|S)|10AX115H3E3|..@1#1-5" Type:
Nov 25, 2019 9:46:49 AM com.altera.bts.systemconsole.client.SysConService <init>
INFO: Claim master service succeed! Service path: "/devices/10AX115H2E(2|S)|10AX115H3E3|..@1#1-5/(link)/JTAG/(70:34 v3 #0)/nios2_0", claimed path: /channels/remote1/(lib)/master_3.
Nov 25, 2019 9:46:49 AM com.altera.bts.systemconsole.client.SysConService closeService
INFO: close_service master "/channels/remote1/(lib)/master_3"
Nov 25, 2019 9:46:49 AM com.altera.bts.Programmer getMessage
SEVERE: null
java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "USB-BlasterII on localhost (1-5)"
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.altera.bts.Programmer.getMessage(Programmer.java:208)
at com.altera.bts.BUP.updateBup(BUP.java:80)
at com.altera.bts.BUP.access$100(BUP.java:44)
at com.altera.bts.BUP$1BupTask.run(BUP.java:64)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NumberFormatException: For input string: "USB-BlasterII on localhost (1-5)"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
at java.lang.Integer.decode(Unknown Source)
at com.altera.bts.systemconsole.client.CommandShell.getUsbIndex(CommandShell.java:102)
at com.altera.bts.systemconsole.client.CommandShell.getUsbIndexString(CommandShell.java:109)
at com.altera.bts.systemconsole.client.CommandShell.getCableIndex(CommandShell.java:117)
at com.altera.bts.Programmer.lambda$getBoardInfo$0(Programmer.java:110)
at com.altera.bts.Programmer$$Lambda$4/481600106.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
... 3 more
Nov 25, 2019 9:46:58 AM com.altera.bts.Programmer startProgramming
SEVERE: java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "USB-BlasterII on localhost (1-5)"
Nov 25, 2019 9:47:00 AM com.altera.bts.Programmer startProgramming
SEVERE: java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "USB-BlasterII on localhost (1-5)"
Nov 25, 2019 9:47:05 AM com.altera.bts.systemconsole.client.SysConService closeService
INFO: close_service master "/channels/remote1/(lib)/master_1"
Nov 25, 2019 9:47:05 AM com.altera.bts.systemconsole.client.SysConService closeService
INFO: close_service master "/channels/remote1/(lib)/master_2"I have a feeling the Java errors are due to the host java code and not the board. Perhaps you have a newer version of bts.jar that runs on openjdk 1.8?