What I checked from schematics JTAG is in PA12-PA15 (pins 21-24). JTAG is only between ARM and FPGA. There are place for 10 pin connector or cable buttom side of pcb.JTAG connection library is in Users\<User_Name>\Documents\Arduino\libraries\VidorPeripherals\src\utility and jtag_host.cpp fileSo defined numbers are PA io numbers.
Redefining #define is a very very bad practice. I'm surprised the compiler is not insulting me.All the jtag functions in jtag.c file haven't visibility with the #define in the .ino file, so they will used those presents in the "jtag.h"The correct #define for the JTAG are from 12 to 15. Even if they are the same, thanks to comment my mistake in the .ino file.
if you configure your arduino vidor 4000 as USBBLASTER SAM emulator you can generate a fpga bistream with altera quartus ( .sof file ) and upload directly from altera quartus ( and generate arduino code with ttf only at the end of fpga project development)
So I will delete them and will use the samd21g18a.h file to know the I/O pins #define.
"I uninstalled the driver and re-connect the usb plug, then unknown device was appeared."I have no driver installed. When I plug the Vidor MKR 4000 board in is appears as "Arduino MKR Vodor 4000", not "unkown device"
@tksm372:This:1. right-click the "Arduino MKR Vidor 4000" and click "Update driver software..."2. choose "Browse my computer..."3. choose "Let me pick from a list..."4. all device categories are listed, select "Show All Devices", and click "Next"5. click "Have Disk..."6. click "Browse..." and choose "C:\intelFPGA_lite\18.1\quartus\drivers\usb-blaster\usbblstr.inf". Click "OK".7. models are listed, choose "Altera USB-Blaster", and clisk "Next".8. a compatibility warning is appeared, but click "Yes".WORKS PERFECTLY - Thank you!