Monthly Archives: March 2009

Fix Yast2 unable to install package

Look in /var/run/ for stale yast.pid or zypp.pid and delete them. Advertisements

Posted in Uncategorized | Leave a comment

To Find a Square-root with miniMIPS

################################################################################ To find a square-root of an integer# (c) M. Lutfi, 2009## Platform: miniMIPS# tested on: MARS simulator## Convention:# $v0..$v1,$t0..$t9,$a0: destroyed during procedure calls# $s0..$s9: saved during procedure calls############################################################################### .textmain: la $a0, question jal print_string # print(question) addi $v0,$zero,5 syscall … Continue reading

Posted in Uncategorized | Leave a comment

LED Blink on PICKit2 Demoboard

The following code will make LED 1 on PICKit2 demoboard (attached to PICKit2 programmer) to blink for about every 500 mSec. Tools needed are: gputils and sdcc (all of them are open sources), and pk2cmd freely available at Microchip website. … Continue reading

Posted in Uncategorized | Leave a comment

PICKIT2 on OpenSUSE

First, create a new udev rules under /etc/udev/rules.d/, name it as “26-microchip.rules”.Add the following into the file: # PicKit2SUBSYSTEM==”usb_device”, ACTION==”add”, SYSFS{idVendor}==”04d8″, SYSFS{idProduct}==”0033″MODE=”660″, GROUP=”microchip”, RUN=”/usr/local/bin/pk2cmd I /PPIC16F690″, SYMLINK+=”pickit2″ (do lsusb to verify the vendor and produc id) Then, execute this on … Continue reading

Posted in Uncategorized | Leave a comment

SDCC Makefile for PIC14

OBJS=test.oPRJ=testPLATFORM=16f690LIB=-I/usr/local/share/gputils/lkr -I/usr/local/share/sdcc/lib/pic .c.o: sdcc -V -mpic14 -p$(PLATFORM) –opt-code-speed –stack-auto –main-return -c $< $(PRJ).hex: $(OBJS) gplink -m -s $(PLATFORM).lkr -o $(PRJ).hex $(OBJS) $(LIB) -f 0 libsdcc.lib pic$(PLATFORM).lib libm.lib clean: rm $(OBJS) rm $(PRJ).cod rm $(PRJ).hex

Posted in Uncategorized | Leave a comment

Small Embedded Linux board

Beagleboard Site:http://beagleboard.org/ BeagleBoard Shopping List http://code.google.com/p/beagleboard/wiki/BeagleBoardShoppingList

Posted in Uncategorized | Leave a comment