Community
cancel
Showing results for 
Search instead for 
Did you mean: 
okramer
New Contributor I
243 Views

Arria10GX development kit BTS throws java exception

I'm getting an exception running BoardTestSystem.sh soon after launch, and everytime I perform an action on the GUI:

SEVERE: null java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "USB-BlasterII on localhost (1-5)" at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:206) 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(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NumberFormatException: For input string: "USB-BlasterII on localhost (1-5)" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:740) at java.lang.Integer.decode(Integer.java:1197) 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 java.util.concurrent.FutureTask.run(FutureTask.java:266) ... 3 more

 

I'm running with the board out of the computer, using the DC power supply, USB cable to host, and ethernet cable to router/LAN. There is some communication because the UI is displaying info from the board. I just can't perform any config actions. Anything I try pops up the message "Failed to detect this device."

 

`jtagconfig` returns the seemingly correct info:

$ jtagconfig 1) USB-BlasterII [1-5] 02E660DD 10AX115H1(.|E2|ES)/10AX115H2/.. 020A40DD 5M(1270ZF324|2210Z)/EPM2210

 

The BTS GUI is showing: "Detected bup_webserver.sof on FPGA."

 

I've posted similar issues associated with getting this board tested out, but I would be happy just getting past this fundamental problem.

 

0 Kudos
4 Replies
ShafiqY_Intel
Employee
56 Views

Hi OKram2,

 

Can you kindly try to reduce your TCK frequency to 6 MHz?

Below link is the command to change TCK frequency (on page 14= 2.8. Changing the TCK Frequency)

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_usb_blstr_ii_cable.pd...

 

Kindly try it out and let me know the result.

 

Thanks

okramer
New Contributor I
56 Views

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.sh

I 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?

ShafiqY_Intel
Employee
56 Views

Hi OKram2,

 

There are couple of thing you need bear in mind.

 

First:

The BTS relies on the Quartus Prime software's specific library. Before running the BTS, open the

Quartus Prime software. It sets the environment variable $QUARTUS_ROOTDIR automatically. The Board

Test System uses this environment variable to locate the Quartus Prime library.

The BTS will pick up the Quartus programmer to configure the FPGA device on the development kit,

please make sure the Quartus Prime software is the version supporting the specific FPGA device.

The reference design is built by Quartus Version 15.1.2.193

 

 

 

Second:

You can check your log file in order for you to analyse the error.

you can check it using your bts_log.txt.

This file is locate here : <YOUR DIRECTORY>\Arria 10GX\arria10GX_10ax115sf45_fpga_v15.1.2\examples\board_test_system>

 

 

Third:

Make sure you are using the support OS for Quartus 15.1.2

You can check the supported here:

https://www.intel.com/content/www/us/en/programmable/support/support-resources/download/os-support.h...

 

These are support OS for Quartus 15.1:

System Requirements

===================

Operating system support

------------------------

* Windows 7 SP1(64 bit)

* Windows 8.1 (64 bit)*

* Windows Server 2008 R2 SP1 (64 bit)**

* Red Hat Enterprise Linux 5.10 (64 bit)***

* Red Hat Enterprise Linux 6.5 (64 bit)

 

 

I hope this will help you.

 

Thanks

okramer
New Contributor I
56 Views

Just to close this out... Since my ultimate goal is to use the dev board for OpenCL programming, I stopped trying to use BTS suppied with the board for now. Other field application engineers indicated that I am able to use the latest Quartus (19.3) for building OpenCL apps and kernels. So I'll just skip trying to get BTS v.15.1 and other examples in that board support package working. Thanks for the help.