hello everyone
i'm an Italian Electronic Engineer student
i'm writing code for a PIC18F4550 to use it as USB 2 JTAG converter in order to make an interface with a SPARTAN 6 FPGA (to control it and to write the bitstream in it). I've decided to start from an exisisting project by XESSCORP, that is the firmware of the uC in the XULA2 board (from GitHub:
https://github.com/xesscorp/XuLA2 ). This is a BULK trasfer USB protocol based project for a PIC18F14K50, due to the fact that the project was designed for a different microcontroller i've modified it in order to adapt it to PIC18F4550, moreover, the project was very old so it was created with the old MPLAB IDE that included the header file in its installation directory, for this reason i had to research the header files from the web and i found them in a SCILAB project that is PIC18F4550 native and this is rigth a BULK USB transfer project (
http://forge.scilab.org/index.php/p/usb-toolbox/source/tree/15/PIC18F4550/BULK). In conclusion, by including the rigth header and by adapting what is different in the two PIC version i managed to compile the project succesfully ( i've also adapted the linker file and removed the bootloader ). BUT, when i've tried to connect the PIC via USB to the PC it does not recognize it, it does not work, nothing is happening after connection both in linux and in windows. So i tried to download the Scilab project, that is native for my PIC and compile it, i load the firmware in the PIC and i tried with this one, the result is the same. Nothing happens.
I know that bulk devices needs special specific driver to work but the devic is totally ignored by the PC (in linux lsusb does not show the presence of any device)
So, i ask to you if you can help me to make the device visible by the PC, i does not know if the issue is due to the USB descriptor, or due to the absence of bootloader, or just a driver problem.
I'm not so expert, i started to study PIC programming just a few months ago trough university courses and i want to learn more in depth, thank you for your help and my apologize if my english is not perfect.
Kind regards, Cristian