<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Pramode C.E - The GnuVision Blog</title>
 <link href="http://radiantbytes.com/atom.xml" rel="self"/>
 <link href="http://radiantbytes.com/"/>
 <updated>2012-01-23T16:35:37+00:00</updated>
 <id>http://pramode.net/</id>
 <author>
   <name>Pramode C.E</name>
   <email>pramode@radiantbytes.com</email>
 </author>

 
 <entry>
   <title>Play! framework + BeagleBone workshop at NSS Engineering College</title>
   <link href="http://pramode.net/2011/12/21/beaglebone-play-workshop-nss-palakkad/"/>
   <updated>2011-12-21T00:00:00+00:00</updated>
   <id>http://pramode.net/2011/12/21/beaglebone-play-workshop-nss-palakkad</id>
   <content type="html">&lt;h2&gt;Play! framework + BeagleBone workshop at NSS Engineering College&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Dec 21, 2011&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;
&lt;img src=&quot;https://lh6.googleusercontent.com/-A2jfQkxAQT8/TvC97cGsn-I/AAAAAAAAB2w/ang42LDikZ4/s400/IMG_3680.JPG&quot;&gt;
&lt;p&gt;
I was at the NSS Engineering College, Palakkad on the 20th (at the invitation of &quot;ABACUS&quot;, the association
of CS tudents of the college) to conduct a workshop on the broad topic of &quot;do something fun with GNU/Linux&quot;. The audience was a bunch of 6th semester CS students with very little exposure to GNU/Linux. My plan was to show them how to develop a small web-app which will interact with some Python code running on the BeagleBone. This was going to be my first public demonstration of the amazing &lt;a href=&quot;http://www.playframework.org/&quot;&gt;Play!&lt;/a&gt; framework as well as the lovely &lt;a href=&quot;http://beagleboard.org/bone&quot;&gt;BeagleBone&lt;/a&gt;.

&lt;p&gt;
As there were students in the audience who did not even have exposure to HTML, I started with a quick intro to HTML and then explained the basics of the HTTP protocol, how does a web client interact with a web server and stuff like that. This was followed by  an introduction to Play. I didn't get enough time to explain the working of some Python code I had written for the BeagleBone (the code simply turns LED's ON/OFF) - so, I had to be content with just giving a demo of the final program which lets you turn ON/OFF the LED's on the BeagleBone through a web interface.

&lt;p&gt;
The surprising thing for me was the very low level of awareness about GNU/Linux among the students. The college
CS labs still seem to be using primitive stuff like Turbo-C and the only notion students have of an &quot;IDE&quot; is the Windows Notepad!!
Hopefully, things will now change for the better, as there are some students who are taking the initiative to bring more
FOSS awareness.









</content>
 </entry>
 
 <entry>
   <title>Python workshop at ASIET</title>
   <link href="http://pramode.net/2011/09/23/python-workshop-adishankara-institute/"/>
   <updated>2011-09-23T00:00:00+00:00</updated>
   <id>http://pramode.net/2011/09/23/python-workshop-adishankara-institute</id>
   <content type="html">&lt;h2&gt;Python workshop at ASIET, Kaladi&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Sep 23, 2011&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;
Conducted a Python workshop yesterday for the IEEE student branch of ASIET (Adishankara Institute of 
Engineering and Technology, Kaladi). I had  a chance to demonstrate a simple LED &quot;magic trick&quot;
using the EzChronos and MSP Launchpad! 
&lt;p&gt;
&lt;img src=&quot;https://lh5.googleusercontent.com/-vmoM-cA1qcQ/TnuASFIFh6I/AAAAAAAAByY/X8gEsq2Raow/s400/2011-09-22%25252012.52.02.jpg&quot; height=&quot;400&quot; width=&quot;300&quot; /&gt;

&lt;img src=&quot;https://lh6.googleusercontent.com/-Fwg0aXuGy28/TnuACT8ZuSI/AAAAAAAAByU/oeOh8chU4SE/s400/2011-09-22%25252012.52.09.jpg&quot; height=&quot;400&quot; width=&quot;300&quot; /&gt;








</content>
 </entry>
 
 <entry>
   <title>Getting started with MSP430 Launchpad on Debian</title>
   <link href="http://pramode.net/2011/09/18/MSP430-launchpad-debian/"/>
   <updated>2011-09-18T00:00:00+00:00</updated>
   <id>http://pramode.net/2011/09/18/MSP430-launchpad-debian</id>
   <content type="html">&lt;h2&gt;Getting started with MSP430 Launchpad on Debian&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Sep 18, 2011&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;
I am trying to get some demos running with an EzChronos and a couple of MSP430 Launchpad's. Here is
a brief outline of the steps required to get your first &quot;hello,world&quot; running.
&lt;p&gt;
I had installed the MSP430 toolchain on a few machines sometimes back. The procedure was simple - pull out
a set of scripts/patches from &lt;a href=&quot;http://mspgcc4.sourceforge.net/&quot;&gt;here&lt;/a&gt; and run one of the supplied scripts - this takes care of getting the core components - binutils, libc and gcc, applying the patches and
building them. The procedure was painless. But it seems that the developers have abandoned this approach - the
procedure to build the latest version (msp430-gcc version 4.5.3) is to download all the core 
components, apply the patches and do the build manually. This takes a bit more effort. Here is a 
document &lt;a href=&quot;https://github.com/sergiocampama/Launchpad/blob/master/README.md&quot;&gt;describing the process&lt;/a&gt;.
&lt;p&gt;
I was doing the build on Debian Squeeze - everything worked fine except when it came to building gcc. The version
of GCC that was being compiled required newer versions of three libraries - gmp, mpfr, and mpc. The sources for
these three libraries had to be downloaded and built following the 
&lt;a href=&quot;http://www.acsu.buffalo.edu/~charngda/cc_build.html&quot;&gt;instructions given here&lt;/a&gt;. Also, gdb ver 7.2 was
not avaible - but ver 7.2a worked fine.
&lt;p&gt;
There is an excellent tool called &lt;a href=&quot;http://mspdebug.sourceforge.net/&quot;&gt;mspdebug&lt;/a&gt; which can be used for
flashing the MSP430G2231 on the launchpad and also for debugging.
&lt;p&gt;
Once the toolchain and &quot;mspdebug&quot; are built properly, we can write our &quot;hello,world&quot; program - lighting up an LED 
connected to P1.0 of the processor:
&lt;pre&gt;
#include &lt;msp430.h&gt;
main() 
{
   WDTCTL = WDTPW + WDTHOLD;
   P1DIR = 1; P1OUT = 1;
}
&lt;/pre&gt;
&lt;p&gt;
The first line is for disabling the watchdog - a compile time option, &quot;-mdisable-watchdog&quot; can be used
to do this in the C library startup code itself.
&lt;p&gt;
Compile the code with:
&lt;pre&gt;
msp430-gcc -mmcu=msp430g2231 led.c
&lt;/pre&gt;
&lt;p&gt;
Flashing is done by invoking &quot;mspdebug rf2500&quot; and executing the commands:
&lt;pre&gt;
erase
prog a.out
&lt;/pre&gt;









</content>
 </entry>
 
 
</feed>

