Pages

2013-09-19

On how they killed my watch

Early on, I figured I need a watch that "Just Works (TM)". The search took me to my first "Timex Ironman Triathlon" digital watch. And, work it did. A beautiful piece of art, it is. It bore the rain, the sweat and the shower. It bore the drops and crashes. It bore it all. Until one day, three years later, the battery drained out and I had to change it at a service center. The next day, the watch died after a dip in the bay of bengal.

The service man had not fit the back cover properly after replacing the battery.

After the swearing, yelling and crying, I went over and got myself another "Timex Ironman Triathlon". Which ended with the same fate two years later. So, I went for it again the third time. This time it lasted 5 years and died because of the same reason.

Yes, my next watch is also going to be the same "Timex Ironman Trialthlon". But this time, I am gonna buy the necessary tools to fix the battery myself. I am fed of unskilled idiots ruining my happiness.

2013-09-17

Freescale Codewarrior MCU 10.2 on Debian Jessie (amd64)

These are largely notes to self. So, dont sweat. Go elsewhere for entertainment.

Freescale Codewarrior MCU 10.2 requires a 32bit environment to work. So, you need to first set that up.
$dpkg --add-architecture i386
$apt-get update
$apt-get install gcc-multilib g++-multilib
$apt-get install libexpat1:i386
$apt-get install libxt6:i386
$apt-get install libswt-gtk-3-jni:i386
$apt-get install libswt-gtk-3-java:i386
$apt-get install gnome-themes-standard:i386
Codewarrior looks for "libexpat.so.0", so we need to create a link for it.
$ln -s /lib/i386-linux-gnu/libexpat.so.1.6.0 /lib/i386-linux-gnu/libexpat.so.0
Run the installer as root and install the IDE into /opt/Freescale. After the installer is done, replace the contents of "/etc/udev/rules.d/25-pemicro.rules" with:
SUBSYSTEM!="usb", ACTION!="add", GOTO="kcontrol_rules_end"

ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0035", GROUP="plugdev", MODE="0664"
ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0042", GROUP="plugdev", MODE="0664"
ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0058", GROUP="plugdev", MODE="0664"
ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="005E", GROUP="plugdev", MODE="0664"
ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="005F", GROUP="plugdev", MODE="0664"
ATTRS{idVendor}=="1357", ATTRS{idProduct}=="0001", GROUP="plugdev", MODE="0664"
ATTRS{idVendor}=="1357", ATTRS{idProduct}=="0503", GROUP="plugdev", MODE="0664"
ATTRS{idVendor}=="1357", ATTRS{idProduct}=="0504", GROUP="plugdev", MODE="0664"

LABEL="kcontrol_rules_end
The above rules are required to make your USB-multilink programmer work. Your 'user' should be part of the 'plugdev' group. Launch "/opt/Freescale/eclipse/cwide" and all should be well :)

References:
  1. http://mcuoneclipse.com/2012/03/06/mcu10-2-on-ubuntu-12-04-64bit/
  2. https://community.freescale.com/thread/311460