Forum Discussion

ashbinbabu's avatar
ashbinbabu
Icon for New Contributor rankNew Contributor
1 year ago

MAX 10 - Not Able to run TCL Scripts

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

5 Replies

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    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.

  • ashbinbabu's avatar
    ashbinbabu
    Icon for New Contributor rankNew Contributor

    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

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    What happens when you enter the commands manually?

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

    • ashbinbabu's avatar
      ashbinbabu
      Icon for New Contributor rankNew Contributor

      Hi @sstrell ,

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

      Kindly assist.

      Regards,

      Ashbin