Thursday, February 26, 2009

Software Breakpoints

in the IAR Kickstart Edition for ARM you can set Software Breakpoints only in RAM code. For Software Breakpoints in Flash you have to buy an additional licence from Segger.
But you can define a Breakpoint instruction and insert it into assertions:


/* this is only for THUMB code */
#define BREAK() __asm(" dc16 0xdeee")
#define ASSERT(x) if (!(x)) then BREAK();

void some_function(char *data)
{
ASSERT(data != NULL);
.
.
.
}


The gnu GDB uses 0xbebe as software Breakpoint for thumb code.

Sunday, November 05, 2006

Calculate the calories per day

http://gin.uibk.ac.at/thema/sportundernaehrung/energieumsatz.html

Monday, October 30, 2006

Performance Blog Editor Plugin for Firefox

endlich habe ich einen offline Blog Editor gefunden als Firefox Plugin:

https://addons.mozilla.org/firefox/1730
( http://performancing.com/firefox )



powered by performancing firefox

Sunday, October 29, 2006

reconnect my adsl connection

sometimes I loose my adsl connection

#this one kill the instances
ps -A | grep pptp | while read a b c; do sudo kill -sigkill $a; done

# and this tries to relogin
/etc/ppp/ip-up

all on my (k)ubuntu notebook

Thursday, October 26, 2006

undo a tar eXtraction

if you ever accidentaly untar'ed in the wrong place, here is a method for undoing the extraction.
it tries to remove all files and the enclosing directories.

known bugs: filenames with spaces

tar tzf tarfile.tar.gz | sort -r | remove.sh

#!/bin/bash
# remove.sh
# reads from stdin and removes given file or directory
while read a b; do
if [ -d $a ]; then rmdir $a; else rm -f $a; fi
done