Embedded Systems Programming Education?

Status
Not open for further replies.

MongoMania

Ars Legatus Legionis
12,478
Just a question: Where does one go to get an education that easily applies to embedded systems? Seems that most universities and colleges focus on Win-based environments, but that seems to be a waste considering the *huge* embedded market. I'd like to learn how to code "lean and mean" rather than build 500k "hello world" executables... :)

I.E., from the research I've done, I'll need a thorough grounding in C (easy enough) and ASM (not easily said.. :) ), but I want to add to that some background on understanding platforms, optimization issues, etc.

Any pointers would be appreciated.
 

technophile

Ars Legatus Legionis
23,768
At the college I went to (University of Louisville Speed School of Engineering) the "CS" (actually Computer Science and Computer Engineering, it's a single major) students were required to take a number of courses taught in the Electrical Engineering department that concerned embedded systems -- the 68HC11 and 68000 processors were the ones we used. You might try looking in an EE program for similar classes. (Names are not necessarily representative either -- the latter of those two classes was called Microcomputer Design).

:sigh: Ah, the heady days of rewriting your OS from scratch because you had run out of space in the 4k of ROM (or rewriting your app because it was trying to use more than the 4k of RAM) you were alloted. :D

Incidentally, the hardest part about that class was not writing the OS from scratch in assembly (68000 ASM is actually pretty friendly). The hardest part was wiring the damn thing up (since our group was the only one that had no EE majors in it) and especially debugging (since our ASM debuggers SUCKED ROCKS).
 
by technophile

Incidentally, the hardest part about that class was not writing the OS from scratch in assembly (68000 ASM is actually pretty friendly). The hardest part was wiring the damn thing up (since our group was the only one that had no EE majors in it) and especially debugging (since our ASM debuggers SUCKED ROCKS).

Hmmm. Something's not right here...

Three questions:

1) You wrote your OS *entirely* in assembly? I'm curious to know some characteristics of that OS, or was it just a monitor? Im sure you know how to describe an OS.

2) What do you mean by "wiring the thing up"?

3) You say you wrote the OS from scratch, right? How then did you debug the assembly, especially since 2) implies you did not have *any* firmware running, not even a monitor.
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
Most embedded programming nowadays (well, embedded programming targetting generic processors, as opposed to extremely simple single-purpose systems), is done in C. Assembly is just too much of a development hassle, and doesn't yield much benefit over compiled C. It's nonportability is also a big issue.

There's nothing too significant about embedded systems programming, unless you're looking at the hardware side of things. From the software side, it's essentially normal development, but with a different set of constraints.

-EB
 

technophile

Ars Legatus Legionis
23,768
Originally posted by Level_7:
1) You wrote your OS *entirely* in assembly? I'm curious to know some characteristics of that OS, or was it just a monitor? Im sure you know how to describe an OS.
Well, it wasn't much of an OS. :p We did have a monitor, but you could completely disconnect the breadboard from the monitor and it would still run. The "OS" handled basic comms with the various components, including a serial port, as well as handling interrupts etc. It wasn't like you could just turn it on and get a command prompt (unless the app you had loaded provided one). The memory footprint was small enough that in most cases the OS and the app were nearly indistinguishable (obviously there was no memory protection or anything, the "OS" was just a set of functions we used from project to project).

Basically, at the beginning of the semester we got a Motorola 68000, 4k of ROM (in ICs), 4k of RAM, a couple of other chips (er, notably a clock chip, there were several other "utility" chips as well), and some wires to connect them all. Everything plugged into the breadboard (the 68000 had a ZIF socket that plugged in). You were required to implement a memory translation hub (e.g. figure out that when the 68k requested memory address x, it was asking for something off the ROM, but when it asked for address y, it wanted the RAM, and address z was the serial port, etc) as part of the first lab. Essentially, build a computer from ICs and wires.

2) What do you mean by "wiring the thing up"?
See above -- plug everything into the breadboard and use standard wires to build the address bus, data bus, etc. The groups who had EEs had nice neat, well-planned boards. Our group (3 CECS majors) looked like we had dumped a bowl of spaghetti on the breadboard. But the software was fantastic. ;)

3) You say you wrote the OS from scratch, right? How then did you debug the assembly, especially since 2) implies you did not have *any* firmware running, not even a monitor.
We had a monitor running for debug purposes, but the projects were disconnected from the monitors when you demonstrated the labs. For communications we had a serial connection to a Windows PC running Hyperterm.

Actually the monitors were used for debugging while developing -- once you went to demonstrate (since you couldn't demo with a monitor attached) you burned your code into the ROMs and plugged em in. The monitor simulated the ROM and RAM while it was plugged in, which was what allowed you to inspect memory, "pause" the execution of the processor (since it could arbitrarily delay the memory read for the next instruction), etc.

As an example of a project, the first lab was to implement a game (IIRC it was a variation on Connect Four). For extra credit you could provide the capability to play against the computer, with a programmed AI making the computer's moves. Do you have any idea how hard it is to write a game AI that fits, along with OS functions and the game code itself, in no more than 4k of ROM and uses no more than 4k of RAM? :)

Oh, I nearly forgot. We actually were allowed to write in C, as apparently there was a newly acquired cross-compiler available, but nobody bothered to try it. :)

[This message was edited by technophile on February 27, 2002 at 18:33.]
 
Status
Not open for further replies.