Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

name a device in JTAG chain by TCL script

Hello,

I have a JTAG chain with 2 devices: Cyclone IV + LPC up from NXP. I would like to program Cyclone IV by TCL script. My former script for only Cyclone IV in JTAG chain was:

puts "\n\n----------------SFL file programmation started"

exec quartus_pgm -c USB-Blaster -m JTAG -o {p;sfl_enhanced_ep4ce6.sof}

puts "----------------SFL Programmation done"

puts "----------------Start of EPC4 programmation"

exec quartus_pgm -c USB-Blaster -m JTAG -o {p;top5.1.jic}

puts "----------------EPC4 programmation done"

puts "-------------------------------------------------------------------"

puts "\n\n----------------DOWNLOAD SUCCESSFULL"

puts "----------------Please restart the generator\n\n"

puts "-------------------------------------------------------------------\n\n"

when I use script I have an error:

http://www.alteraforum.com/forum/attachment.php?attachmentid=11667&stc=1

SFL file is properly programmed by not .jic file.

Indeed, LPC is not recognize:

http://www.alteraforum.com/forum/attachment.php?attachmentid=11668&stc=1

Second device has only IDCODE 0x4F1F0F0F but no name.

My question is how can I name this device by TCL instruction ?.

Thanks for your help

Pierre.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You need to download a boundary scan definition file that describes any additional items in your JTAG chain. See the Quartus programmer documentation for instructions.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It works now thanks to jtagconfig instruction. It is possible to define user device.

    thanks for you help

    Pierre