Submissions by Harley tagged launchpad

I'm going to cheat a little because I didn't get home from work until about 20 minutes ago. This is a place-holder until I have a bit of time to write about something. I'll likely be doing a bit of MSP430 assembly again tonight since I have my MSP-EXPFR5969's firmware up-to-date now.

Ok, I really did end up doing a bit of MSP430 assembly. Energia on Linux was still complaining about the programmer firmware still being out of date, so I went through and more thoroughly tried updating it. I then went back and started stepping through my attempted port of JonesForth to the MSP430.

I got stuck mostly in setting up environments last night. I thought I hadn't really done much with my FIGnition yet, so I'd plug that in and go. It didn't take long to realize why I had been slow to really get full swing with it, QWERTY default. FIGkeys seems to allow most keys to be remapped, but requires a number pad. I decided to wait until tomorrow to get a PS2 or USB keyboard with a number pad.

Then I decided to get my BeagleBone Black setup. I tried Cloud9 a bit, but then decided to install Go. I forgot there weren't pre-built Go ARM/Linux packages. I pulled down Go from git, checked out the 1.4.1 tag, and started the build. When I realized it was going to take some time, I went on to the next thing.

Next thing was playing with the Launchpad some more trying to load mspforth, CamelForth, & Mecrisp, all without much luck of getting a serial connection. One thing that stuck out to me was that newer Launchpad boards potentially changed the USB serial pins. As a last ditch, even though none of the Forths seemed to support it, I fired up my new MSP430F5969 Launchpad, but Energia said I needed to update the drivers, which failed on Linux. Had to download a tool from TI that appeared to repair it. Tried again, and the update failed again. After repairing a second time, I decided to call it a night.

Overall, I didn't touch much code, but I did a bit with MSP430 assembly with naken_asm => msp430-gcc conversion, but nothing really worth posting.

This is an MSP430 assembly reimplementation of my day #1. One of the things that I really like about the MSP430 instruction set is that there are 52 instructions & 7 addressing modes. Because of this, I think the assembly tends to be very easy to follow. I did, however, get a bit lazy when writing this. The 6 local labels likely make this code a bit odd to read (especially without looking at the equivalent C code.) It's about 10 bytes larger than the C code compiled with -O

speaker.S702 bytes
2 downloads

While simple, this was my first try at getting physical sound output with a microcontroller (MSP430 Launchpad) and an 8Ω speaker. This does a basic sweep-like sound (going from high to low.) This was a quick recreation of what I did last night since I only had 3 hours to submit for today and am still at work. However, the basic concept is still instilled in this code.

main.c498 bytes