Compile urJTAG on Windows under cygwin 

Ingredients:
urJTAG source from SVN or Git.
Cygwin: install the packagelist from here: https://dl.dropboxusercontent.com/u/4295670/packagelist with the technology described here:
http://blag.nullteilerfrei.de/2014/01/3 ... -packages/

The python binding is broken so run the ./autogen.sh with --disable-python option.

Add

#define WINAPI_FAMILY 2
#define NOUSER

befor, and

#ifdef IN
#undef IN
#endif

#ifdef OUT
#undef OUT
#endif

fter the #include <windows.h> into the sysdep.h

Run
make -j 8 CFLAGS='-Wno-char-subscripts -Wno-unused-value'




[ hozzászólás ] ( 17 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 331 )
New Freescale Codewarrior USB-TAP disassembled 

The Freeescale support was very gently, so they are provided a free replacement for my dead USB-TAP. Of course I have disassembled it to check that did they added ESD protection to the USB lines.
Yes they did:



[ hozzászólás ] ( 5 megtekintés ) [ 0 trackbackek ] permalink ( 3.2 / 368 )
Freescale CodeWarrior USB TAP disassembled 

Let's get started with two pictures of the Freescale Codewarrior USB-TAP's PCB:




Read more...
[ hozzászólás ] ( 101 megtekintés ) [ 0 trackbackek ] permalink ( 2.8 / 235 )
Lattice ispVM under Ubuntu 11.04 with USB download cable 

I have tried to use the Lattice ispVM under Ubuntu 11.04, with the Lattice USB download cable, but I have to run it as root, even after adding the udev rules mentioned in the FAQ.

After some strace analyzing I have figured out that it is trying to open the /dev/bus/usb/{roothub}/{devide} nodes. Since then the download cable's node was read only it failed.

I have written the following udev rule to the /etc/udev/rules.d/51-lattice.rules file inspired by my AVR doper's rule:


SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="1134", ATTR{idProduct}=="8001", MODE="0666"

[ hozzászólás ] ( 10 megtekintés ) [ 0 trackbackek ] permalink ( 3.1 / 332 )
Debugging UrJTAG with GDB 

The UrJTAG uses a libtool wrapper for starting, so debugging with GDB is a bit tricky.

You should debug the src/apps/jtag/.libs/lt-jtag binary.
But it does not appears right after building it, the wrapper script creates it if not exists.
So ran ./src/apps/jtag/jtag first.

Figuring out taken me some time, I hope it will helps someone.

So execute

gdb ./src/apps/jtag/.libs/lt-jtag

in the trunk and enjoy debugging ;).
[ hozzászólás ] ( 16 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 237 )

<< <Előző | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Következő> >>

 
számláló