Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 讨论

MAX 10 - Not Able to run TCL Scripts

ashbinbabu
新手
851 次查看

Hi,

 

We are using MAX 10 FPGA in our design and we are using the NIOS II processor for implementing intel PFR. Our code and FW are working as expected. The only problem we are facing is we are not able to run .tcl scripts to access the NIOS II processor and do some debugging. We have enabled JTAG debug for NIOS II in platform designer as well. We are getting the following error on running .tcl script. 

"master_read_32:com.altera.systemconsole.internal.plugin.jtag.oci.Nios2DebugException:Targt is broken and needs to be reset"

PFA TCL script being used and images showing System console windows.

Please let us know the possible cause for this error. Why tcl scripts are not working if the processor is working as expected?

 

Regards,

Ashbin

标签 (1)
0 项奖励
5 回复数
sstrell
名誉分销商 III
798 次查看

Get rid of puts in front of your master_read_32 commands.  You're sending the command directly through System Console to perform an operation, not sending a text string.

Also, you should be using claim_service instead of open_service.  open_service has been deprecated.

0 项奖励
ashbinbabu
新手
726 次查看

Hi @sstrell ,

 

We have tried removing the puts in front of master_read commands and are still getting the same error.

open_service will still work right though deprecated? 

Kindly see what could be wrong. 

Also what we are currently doing is, we are programming the .pof file to the FPGA and then opening the system console and executing the script. Let us know if this procedure is correct or not. 

 

Regards,

Ashbin

0 项奖励
sstrell
名誉分销商 III
704 次查看

What happens when you enter the commands manually?

Again, open_service is deprecated so using claim_service may fix the issue.

0 项奖励
ashbinbabu
新手
649 次查看

Hi @sstrell ,

We have tried with claim_service as well and the issue is still there. 

Kindly assist. 

 

Regards,

Ashbin

0 项奖励
KennyTan_Altera
主持人
671 次查看

case reopen


0 项奖励
回复