I/O error while opening /de/ttyS0 on Dell D630 

I have recently tried to breathe life to the serial port of my DELL D630 notebook under Ubuntu Natty, but the opening always failed with I/O error.

I have tried the relevant acpi=off, pnpacpi=off kernel parameters, updated the BIOS, but these thigns did not lead to succes. As final trying I have switched the port from COM1 to COM2 int the BIOS and finally it became available as /dev/ttyS1


[ hozzászólás ] ( 3 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 175 )
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 / 300 )
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 / 208 )
Using Microchip MCC18 compiler using GNU make 

Recently I had a project which was based on a 18F series PIC.
According to the "The well known ecosystem improves the productivity" motto I have decided to do the development on my Linux box.

After a while I have noticed that there are not any usable enviroment for 18F development on Linux. I have tried the MPLAB on windows too, but the "ignore all well known gui actions (doubleclick on code makes breakpoint for e.g.)" idiot behaviour driven me crazy. The Piklab is an unstable stuff, the MPLAB X is a java based slow bullshit, which does not supports ICD2, Piklab2.

I have decided to setup an enviroment using GNU make. The Makefile below can be used with the Linux version of MCC18 compiler.

Read more...
[ hozzászólás ] ( 85 megtekintés ) [ 0 trackbackek ] permalink ( 3.1 / 347 )
UrJTAG new bus HOWTO 

Preface: I will call new bus "foo" in this example, so replace the foo with your bus name in the examples case sensitive.

1. Write the bus code. (Implement the necessary functions, and members for the URJ_BUS_DRIVER structure. see. include/urjtag/bus_driver.h)

2. Add the bus to the URJ_DRIVER_SET([bus], []) array in the urjtag/configure.ac

3. Add the following code the urjtag/src/bus/buses_list.h:

#ifdef ENABLE_BUS_FOO
_URJ_BUS(foo)
#endif

Please keep this list sorted alphabetically as it noted in the header.

4. Add the following snipplet to the urjtag/src/bus/Makefile.am:

if ENABLE_BUS_FOO
libbus_la_SOURCES += foo.c
endif

5. Now you are ready to make the UrJTAG with the new bus. Run ./autogen.sh && make in the source directory.
[ hozzászólás ] ( 24 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 271 )

<< <Előző | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Következő> >>

 
számláló