r/shittyprogramming • • Jun 28 '15

Embedded developer adventures

Post image
297 Upvotes

55 comments sorted by

View all comments

Show parent comments

21

u/kosairox Jun 28 '15

I'm actually considering trying to become an embedded systems programmer, is it worth it? I do hobby projects using uC's in my spare time and I don't want to be a "normal" programmer. Aside from programming, I enjoy electronics etc. Why did you leave embedded? How's it like?

16

u/barrows_arctic Jun 28 '15 edited Jun 28 '15

I've spent the last 7 years as an "embedded programmer". It's really not a programming job in the typical sense. You spend most of your time getting hardware to work properly, which means you need to have a good understanding of circuitry, schematics, RTL, digital logic, lab work (logic analyzers, protocol analyzers, oscilloscopes, etc.), serial timing protocols, CPU and pipeline architecture, and so on. Most embedded software guys that I've encountered have an EE-type education in their past, not CS. But if you enjoy electronics and are comfortable getting your hands dirty with it, and aren't afraid of bare-metal debugging, you've certainly got enough of a start to join the game. Getting a job writing drivers and low-level communications protocols for new components might be a good way to get oriented and get started.

You must know and be comfortable in C. You should probably know some assembly (preferably something RISC like PowerPC, MIPS, or ARM, but x86 does show up here and there, too). In terms of software architectures, it can and will range everywhere from raw, bare-metal programming (think free-standing single-threaded boot loaders), to RTOS land, to linux. Nowadays linux is very common in many of the larger embedded applications and devices.

Now, is it worth yet? I personally love it. You get exposure to the hardware development process, get to work with people in a whole range of development "functions" (e.g. silicon design, board design, thermal design, manufacturing, compliance, etc), and get to solve a lot of really complex and challenging problems. And there do seem to be A LOT of people who hate it and they try and go do something else, meaning the job market right now (at least in California) is excellent for embedded guys.

2

u/[deleted] Jun 30 '15

Nowadays linux is very common in many of the larger embedded applications and devices.

Do you see Linux becoming standard? What has been a reason that you've seen where Linux wasn't used?

What's least interesting part of your job? Are you fighting with other tools often?

IF YOU ANSWER I WILL LOVE YOU as a friend.

2

u/barrows_arctic Jul 01 '15

What has been a reason that you've seen where Linux wasn't used?

Lack of determinism in interrupt response times is one very big reason. Linux cannot be truly Real Time, or anything close to it, but it does have a number of mechanisms these days that make it more than "good enough" for a large number of embedded applications. Ten years ago, that wasn't really the case. But that factor alone makes Linux completely unusable in certain embedded applications (safety critical stuff comes to mind).

Size and boot time are other things holding Linux back a bit, but they are also getting better.

What's least interesting part of your job? Are you fighting with other tools often?

Hmm...that's a tough one. Design document review maybe (for components, new processors, and so on), 'cause it can get boring during those phases of a project. But that's probably not something that's specific to the embedded space. As for tools, like any job, you love some and you hate some. The more you spend, chances get better that you'll be happy with it (e.g. an ARM DSTREAM or a Lauterbach debugger == amazing). That what you mean?