-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPLD support #2
Comments
Have you tried running it with sudo ( |
Sure: user@user: Sorry for this lines crossing texts, I don'tt know how to remove them |
Thanks! Don't worry about those crossed lines, though. |
I will do it now. In few minutes I will post the result.
`user@user: user@user:~/Xilinx/libxpc$ sudo ./xpc init user@user:~/Xilinx/libxpc$ sudo ./xpc identify user@user:~/Xilinx/libxpc$ ./xpc identify user@user:~/Xilinx/libxpc$ ./xpc init user@user: |
Looks good so far! You could try |
Hi, `user@user:~/Xilinx$ git clone https://github.com/hexalinq/libxpc.git user@user: user@user:~/Xilinx/libxpc$ sudo ./xpc identify user@user:~/Xilinx/libxpc$ sudo ./xpc reset user@user: |
Fixed. |
What is fixed? Not sure what you mean. By the way... I see your APP can program bitstream files... for FPGA, but what is about JED files (for CPLDs), in words of Xilinx it cannot be converted between JED to/from BIT. I am trying to program a Xilinx CPLD. |
I thought only the cable was unsupported, but yes, this is another problem. Bitstream files contain literally just a stream of bits, that this app sends to the programmer cable (pulls the TDO pin to GND or VCC based on whether the bit is 0 or 1), but JED files only contain the states of individual fuses, which need to be programmed in a different way. If you haven't already, you could try openocd, maybe they have support for your cable + CPLD pair. |
Thank you :) Thank you for your great work. :) |
After following your instructions:
/Xilinx/libxpc$ sudo apt-get install libusb-1.0
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Nota, seleccionando «libusb-1.0-0-dev» para la expresión regular «libusb-1.0»
Nota, seleccionando «libusb-1.0-doc» para la expresión regular «libusb-1.0»
Nota, seleccionando «libusb-1.0-0» para la expresión regular «libusb-1.0»
libusb-1.0-0 ya está en su versión más reciente (2:1.0.25-1ubuntu2).
Se instalarán los siguientes paquetes NUEVOS:
libusb-1.0-0-dev libusb-1.0-doc
0 actualizados, 2 nuevos se instalarán, 0 para eliminar y 3 no actualizados.
Se necesita descargar 259 kB de archivos.
Se utilizarán 1.940 kB de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
Des:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libusb-1.0-0-dev amd64 2:1.0.25-1ubuntu2 [76,3 kB]
Des:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libusb-1.0-doc all 2:1.0.25-1ubuntu2 [183 kB]
Descargados 259 kB en 1s (339 kB/s)
Seleccionando el paquete libusb-1.0-0-dev:amd64 previamente no seleccionado.
(Leyendo la base de datos ... 513651 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../libusb-1.0-0-dev_2%3a1.0.25-1ubuntu2_amd64.deb ...
Desempaquetando libusb-1.0-0-dev:amd64 (2:1.0.25-1ubuntu2) ...
Seleccionando el paquete libusb-1.0-doc previamente no seleccionado.
Preparando para desempaquetar .../libusb-1.0-doc_2%3a1.0.25-1ubuntu2_all.deb ...
Desempaquetando libusb-1.0-doc (2:1.0.25-1ubuntu2) ...
Configurando libusb-1.0-doc (2:1.0.25-1ubuntu2) ...
Configurando libusb-1.0-0-dev:amd64 (2:1.0.25-1ubuntu2) ...
Procesando disparadores para doc-base (0.11.1) ...
Procesando 1 archivo doc-base añadido...
user@user:
/Xilinx/libxpc$ ./xpc init/Xilinx/libxpc$ makebash: ./xpc: No existe el archivo o el directorio
user@user:
gcc -c -Wall -Wextra -fsanitize=address -g3 -D_GNU_SOURCE -oobj/main.o main.c
gcc -c -Wall -Wextra -fsanitize=address -g3 -D_GNU_SOURCE -oobj/bitfile.o bitfile.c
gcc -c -Wall -Wextra -fsanitize=address -g3 -D_GNU_SOURCE -oobj/driver.o driver.c
rm -f libxpc.a
ar rcs libxpc.a obj/bitfile.o obj/driver.o
gcc -oxpc obj/main.o libxpc.a -lusb-1.0 -fsanitize=address
user@user:
/Xilinx/libxpc$ make install/Xilinx/libxpc$ sudo make installcp -av xpc /usr/bin/
'xpc' -> '/usr/bin/xpc'
cp: no se puede crear el fichero regular '/usr/bin/xpc': Permiso denegado
make: *** [Makefile:17: install] Error 1
user@user:
cp -av xpc /usr/bin/
'xpc' -> '/usr/bin/xpc'
user@user:
/Xilinx/libxpc$ ./xpc init/Xilinx/libxpc$ ./xpc identifymain.c:81:main | EAGAIN (Resource temporarily unavailable) | Platform cable not found or already initialized
user@user:
main.c:20:main | EAGAIN (Resource temporarily unavailable) | Platform cable initialization failure
user@user:~/Xilinx/libxpc$
The text was updated successfully, but these errors were encountered: