Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16882 Discussions

Quartus 23.3 transceiver toolkit fails to load using TCL

Ranjith21
Employee
2,220 Views
Hi, 
 
1) I loaded the FPGA with the .rbf file
2) Next, I am trying to open the transceiver toolkit using TCL script.
3) When I click on "device_initialization.tcl", I get the following error: 
 
Dec 26, 2023 4:26:57 PM com.altera.debug.core
SEVERE: java.lang.Exception: can't read "device_path": no such variable
    while executing
"string length $device_path"
    invoked from within
"if { [string length $device_path] == 0 } {
  error "Specified $device_name device name, $device_die_name is not found. Please make sure the board is..."
 
Please see attached screenshot for more info
Please let me know how to fix this error
 
 
Labels (1)
0 Kudos
1 Solution
Ranjith21
Employee
1,649 Views

Hi @Kshitij_Intel , 

 

I was able to fix this issue.

In "device_initialization" file, I replaced the string "AGFB027R24C2E2V" with the short version of itself i.e the string "AGFB027R24C" 

This fixed the issue

 

Thanks, 

Ranjith

View solution in original post

0 Kudos
12 Replies
BoonBengT_Intel
Moderator
2,191 Views

Hi @Ranjith21


Thank you for posting in Intel community forum and hope all is well.

May I know what are the operating system that is used here?

Is there any references design that you are referring to on getting the "device_initialization.tcl" file?

Hope to hear from you soon.


Best Wishes

BB


0 Kudos
Ranjith21
Employee
2,164 Views

Thanks for replying @BoonBengT_Intel . Here are the details:

1) OS used is Windows 10 Enterprise x64

2) Yes, the reference design is a .sof file for the FPGA. The path to the .sof file is specified by me in the "device_initialization.tcl" file

 

Thanks, 

Ranjith

 

 

0 Kudos
Kshitij_Intel
Employee
2,096 Views

Hi Ranjith,


Can you please check the Windows environment variable "IP_ROOTDIR" is set to the ip sub-directory in the Intel Quartus Prime Pro Edition software installation. 


An example for the Windows* version is: IP_ROOTDIR = C:\intelFPGApro\21.1\ip


If the issue still exists, please share your design to replicate the issue at my end.


Thank you,

Kshitij Goel


0 Kudos
Ranjith21
Employee
2,063 Views

Hi Kshitij,

 

I do not see a variable called IP_ROOTDIR in my env variables 

 

Should I add this? Where do I add it? User variables or system variables?

 

Thanks, 

Ranjith

0 Kudos
Kshitij_Intel
Employee
2,013 Views

Hi,


Can you please try to add it into the system variable.


Please let me know if you still face any issues.


Thank you,

Kshitij Goel


0 Kudos
Ranjith21
Employee
1,960 Views

@Kshitij_Intel ,

 

I updated to Q23.4. I added the variable IP_ROOTDIR to my system variable.

Ranjith21_1-1705010665434.png

 

I have still the same error popping up: 

Jan 11, 2024 2:43:13 PM com.altera.debug.core
INFO: Executing C:\Users\SysC\system_console\scripts\device_initialization.tcl
 
Jan 11, 2024 2:43:13 PM com.altera.debug.core
SEVERE: java.lang.Exception: can't read "device_path": no such variable
    while executing
"string length $device_path"
    invoked from within
"if { [string length $device_path] == 0 } {
  error "Specified $device_name device name, $device_die_name is not found. Please make sure the board is..."
 

Ranjith21_0-1705010256872.png

Please advise 

Thanks, 

Ranjith

0 Kudos
Kshitij_Intel
Employee
1,884 Views

Hi Ranjith,


As per user guide you need to update the script.


Tcl File NameDescription

device_initialization.tcl

You must update this script with which device is on the JTAG chain and what .sof is programmed into the device. When you run this script, it auto-loads the toolkit and automatically link the design information to the connected device.
PlatformPath
Windows<drive>:\intelFPGA_pro\23.2\ip\altera\alt_xcvr\toolkit\ftile_transceiver_toolkit\scripts\

For more info please refer 7.5.1. Supported Transceiver Toolkit Scripts (intel.com)


Thank you,

Kshitij Goel


0 Kudos
Kshitij_Intel
Employee
1,883 Views

Hi Ranjith,

 

Below are the example steps for modifying the scripts.

 

7.5.2. Modifying the Scripts (intel.com)

 

Thank you,

Kshitij Goel


0 Kudos
Ranjith21
Employee
1,841 Views

Hi @Kshitij_Intel,

 

Yes. I did modify the TCL script and added it to the path shown in screenshot

Also, attaching the TCL script here as a .txt file (unable to upload .tcl files here)

 

Still the same error exists: 

Jan 17, 2024 1:28:43 PM com.altera.debug.core
SEVERE: java.lang.Exception: can't read "device_path": no such variable
    while executing
"string length $device_path"
    invoked from within
"if { [string length $device_path] == 0 } {
  error "Specified $device_name device name, $device_die_name is not found. Please make sure the board is..."

 

Thanks, 

Ranjith

0 Kudos
Kshitij_Intel
Employee
1,730 Views

Hi Ranjith,

Can you please share your project to debug further. Also, share the detailed steps to follow to recreate the issue you are facing.


Thank you,

Kshitij Goel


0 Kudos
Ranjith21
Employee
1,650 Views

Hi @Kshitij_Intel , 

 

I was able to fix this issue.

In "device_initialization" file, I replaced the string "AGFB027R24C2E2V" with the short version of itself i.e the string "AGFB027R24C" 

This fixed the issue

 

Thanks, 

Ranjith

0 Kudos
Kshitij_Intel
Employee
1,628 Views

Hi Ranjith,


I’m glad that your issue has been resolved, 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 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.


Thank you,

Kshitij Goel


0 Kudos
Reply