Mudanças entre as edições de "Configuração da USB para programação do FPGA via JTAG"

De MediaWiki do Campus São José
Ir para navegação Ir para pesquisar
(19 revisões intermediárias por 3 usuários não estão sendo mostradas)
Linha 1: Linha 1:
VER: [http://www.altera.com/download/drivers/dri-index.html Cable and Adapter Drivers Information] - site da ALTERA
+
=UBUNTU =
 +
Antes de poder programar um FPGA usando a interface JTAG é necessário Configurar a USB Blaster para a programação JTAG.
 +
 
 +
O procedimento abaixo é usado nos kits:  
 +
*DE2-115, DE0-Nano, DE0 da Altera
 +
*Mercurio IV da Macnica
 +
<!--
 +
Executar como '''root''' os seguintes comandos para criar o arquivo '''51-usbblaster.rules''' na pasta '''/etc/udev/rules.d'''
 +
cd /etc/udev/rules.d
 +
gedit 51-usbblaster.rules
 +
# Altera USB-Blaster rule to set mode to 666.  
 +
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",
 +
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="0666", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", RUN+="/bin/chmod 0666 %c"
 +
-->
 +
Executar como '''root''' os seguintes comandos para criar o arquivo '''altera-usb-blaster.rules''' na pasta '''/etc/udev/rules.d'''
 +
gedit /etc/udev/rules.d/altera-usb-blaster.rules
 +
 
 +
Com o conteúdo:
 +
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="666"
 +
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", MODE="666"
 +
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", MODE="666"
 +
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", MODE="666"
 +
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", MODE="666"
 +
 
 +
'''Reinicie o computador.'''
 +
 
 +
Para verificar se a JTAG está configurada corretamente, conecte a placa usando a USB e  ligue-a. 
 +
 
 +
cd /opt/altera/13.0sp1/quartus/bin
 +
./jtagconfig
 +
 
 +
Se estiver OK, deve aparece alguma mensagem do tipo:
  
=UBUNTU =
+
1) USB-Blaster [3-3]
Antes de poder programar nos kits da ALtera com o interface JTAG é necessário executar o seguinte comando para criar o arquivo '''51-usbblaster.rules'''
+
 
 +
Se permanecer a mensagem abaixo, desligue o kit, ou retire o cabo USB, e reconecte ou ligue novamente o kit.
 +
1) USB-Blaster variant [3-3]
 +
  Unable to lock chain (Insufficient port permissions)
 +
 
 +
Caso não esteja OK, aparecerá:
 +
 
 +
No JTAG hardware available
  
<code>
+
FONTE: http://www.altera.com/download/drivers/dri-usb_b-lnx.html
cd /etc/udev/rules.d
+
FONTE: http://www.eecg.toronto.edu/~laforest/USB-Blaster-Debian.html
cat 51-usbblaster.rules
 
# Altera USB-Blaster rule to set mode to 666.
 
SUBSYSTEM=="usb",
 
ENV{DEVTYPE}=="usb_device",
 
ATTR{idVendor}=="09fb",
 
ATTR{idProduct}=="6001",
 
MODE="0666",
 
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}",
 
RUN+="/bin/chmod 0666 %c"
 
</syntaxhighlight>
 
  
 +
<!--
 
=UBUNTU para DE0 Nano==
 
=UBUNTU para DE0 Nano==
  
Linha 113: Linha 142:
  
 
Então você configurou corretamente e o programador do quartus precisa ser configurado para:
 
Então você configurou corretamente e o programador do quartus precisa ser configurado para:
 +
-->
  
 
=WINDOWS=
 
=WINDOWS=
 
Quando alguém precisar, escrever o procedimento.
 
Quando alguém precisar, escrever o procedimento.
 +
 +
==Installing Altera usb Blaster Driver==
 +
*Plug in the power and turn on your development board
 +
*Plug in your Development board or USB Blaster device into a free USB port
 +
*In Windows 7, 8, 8.1, and 10 go to Start and search for “device manager”
 +
*Click on Device manager in the search results
 +
:*In device manager find the item list “other devices”
 +
:*Expand that list and there should be “Altera USB-Blaster”
 +
:*Right click on Altera USB-Blaster
 +
:*Choose Update Driver Software...
 +
:*In the popup choose “Browse my computer for driver software”
 +
:*Click Browse and navigate to the altera folder C:\altera
 +
:*Make sure the “Include Subfolders” is checked
 +
:*Click next
 +
*If successful windows will say “Windows has successfully updated your driver software” Click close
 +
*Back in device manager under Universal Serial Bus Controllers there should be the Altera USB-Blaster
 +
*Close out of Device manager and you are now ready to program your Development board.
 +
 +
:Note: On the DE2-115 there are two USB ports but the one closet to the edge is the USB blaster
 +
:Note: It is best to NOT use USB ports that have active power or an “always on” feature as these ports can damage your development board or USB blaster chip
 +
 +
FONTE: http://fpga.seanwrall.com/lessons/lesson4/ e [http://fpga.seanwrall.com/lessons/lesson4/downloads/Lesson4_FPGASeanWRall.pdf pdf], [https://www.youtube.com/watch?v=glk73wRVQ-c video]
  
 
VER: [http://www.altera.com/download/drivers/usb-blaster/dri-usb-blaster-vista.html USB-Blaster Driver for Windows 7 and Windows Vista]
 
VER: [http://www.altera.com/download/drivers/usb-blaster/dri-usb-blaster-vista.html USB-Blaster Driver for Windows 7 and Windows Vista]
 +
 +
[[Categoria:FPGA]]

Edição das 14h33min de 22 de setembro de 2020

UBUNTU

Antes de poder programar um FPGA usando a interface JTAG é necessário Configurar a USB Blaster para a programação JTAG.

O procedimento abaixo é usado nos kits:

  • DE2-115, DE0-Nano, DE0 da Altera
  • Mercurio IV da Macnica

Executar como root os seguintes comandos para criar o arquivo altera-usb-blaster.rules na pasta /etc/udev/rules.d

gedit /etc/udev/rules.d/altera-usb-blaster.rules 

Com o conteúdo:

ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="666"
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", MODE="666"
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", MODE="666"
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", MODE="666"
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", MODE="666"

Reinicie o computador.

Para verificar se a JTAG está configurada corretamente, conecte a placa usando a USB e ligue-a.

cd /opt/altera/13.0sp1/quartus/bin
./jtagconfig

Se estiver OK, deve aparece alguma mensagem do tipo:

1) USB-Blaster [3-3]

Se permanecer a mensagem abaixo, desligue o kit, ou retire o cabo USB, e reconecte ou ligue novamente o kit.

1) USB-Blaster variant [3-3]
 Unable to lock chain (Insufficient port permissions)

Caso não esteja OK, aparecerá:

No JTAG hardware available

FONTE: http://www.altera.com/download/drivers/dri-usb_b-lnx.html FONTE: http://www.eecg.toronto.edu/~laforest/USB-Blaster-Debian.html


WINDOWS

Quando alguém precisar, escrever o procedimento.

Installing Altera usb Blaster Driver

  • Plug in the power and turn on your development board
  • Plug in your Development board or USB Blaster device into a free USB port
  • In Windows 7, 8, 8.1, and 10 go to Start and search for “device manager”
  • Click on Device manager in the search results
  • In device manager find the item list “other devices”
  • Expand that list and there should be “Altera USB-Blaster”
  • Right click on Altera USB-Blaster
  • Choose Update Driver Software...
  • In the popup choose “Browse my computer for driver software”
  • Click Browse and navigate to the altera folder C:\altera
  • Make sure the “Include Subfolders” is checked
  • Click next
  • If successful windows will say “Windows has successfully updated your driver software” Click close
  • Back in device manager under Universal Serial Bus Controllers there should be the Altera USB-Blaster
  • Close out of Device manager and you are now ready to program your Development board.
Note: On the DE2-115 there are two USB ports but the one closet to the edge is the USB blaster
Note: It is best to NOT use USB ports that have active power or an “always on” feature as these ports can damage your development board or USB blaster chip

FONTE: http://fpga.seanwrall.com/lessons/lesson4/ e pdf, video

VER: USB-Blaster Driver for Windows 7 and Windows Vista