I can understand why stuff like this happens. Programmers who have only ever worked in full systems don't always have a good understanding of how embedded is different. You've got very limited resources, and often you need to get creative to ensure that your work is done fast enough.
Say you've built a data acquisition system. Your main() function is going to have two parts: the configuration section (setting all the registers), and the main while(1) loop. yes, while(1). No, I don't want to leave the loop, this processor is going to sit in place doing its thing until the head death of the universe.
My ADC is sampling at 200 samples/second. I pull this into a 16 sample dedicated ADC buffer, then pull those 16 samples into my program for work. I need to have completely finished with processing those 16 samples by the time the next 16 samples are ready, so I probably don't have time to pissfart around with fancy floats, so a library that pretends an int is a 16.16 fixed-point number is going to have to do.
Also, there's no OS. You want to dynamically allocate memory? From who? The RAM is yours. You either declare everything at compile time, or you keep careful track of what memory you have addressed (and how much of the memory will be used by the program stack). remember, I've got to finish what I'm doing in (1/200,000)*16 seconds, or I'm going to lose data. If I have to hard-cap the size of a buffer in order to make my code run at a reliable speed, you'd best believe I'm going to do it.
And yes, I have used an oscilloscope to measure the duty cycle of my microprocessor in order to make sure I won't drop any samples.
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?
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.
I'm doing EE and I want to land a job that has a) analog design and b) digital design and c) programming. I really like analog design and programming, and I'm not sure what to go into. I like the idea of embedded engineering but I'm guessing there won't be much analog design.
I was actually in a similar boat about 8 years ago. My experience in college and even in grad school was split between analog work and DSP embedded work, with some CPU architecture and digital design work, and I liked all three quite a bit. Around graduation time, I ended up just picking one over the others, based on comparing job offers...but the embedded space gets you exposure to at least two of the three. I just left all the analog stuff behind, which probably isn't what you want to hear :)
There's plenty of work out there in the signal integrity space that certainly has some analog work to it, and there might be some way to do some some embedded systems programming that interfaces directly with the SI stuff, but a job that does design for all three (analog/digital/embedded software) is not something I've had the pleasure of doing. A jack-of-all-trades job of that nature seems to me like something you might find at a smaller company like a startup. I've only ever worked at the big companies, so I don't really have any personal pointers for you there.
Understanding of analog and digital design, in additional to basic programming skills, is certainly something that would make you an attractive candidate for an embedded systems job, but yeah...at least in the jobs I've had, there's no direct analog work.
Perhaps working with someone like TI or Linear Tech or Maxim doing component work, or Marvell or Broadcom on the wireless and RF side? These are wild guesses. Sorry I can't help more. Two out of the three is certainly easy to find, but I don't have any personal experience that has shown me any jobs that get you all three...
Yeah, there seems to be a lot more jobs around the digital/software domain (no pun intended) so I might go for embedded. I'll be sad to leave analog behind, but I guess you have to leave something behind, so maybe I'll tinker around with analog stuff in my spare time.
There's plenty of work out there in the signal integrity space that certainly has some analog work to it
I read a book about signal integrity, and most of it just went over my head. I'll have to read it again when I have more experience in the respective areas.
Perhaps working with someone like TI or Linear Tech or Maxim doing component work, or Marvell or Broadcom
I live in Australia so sadly most of that is out of the question. :/
Control systems is something else I could look into I guess.
107
u/thorium220 Jun 28 '15
I can understand why stuff like this happens. Programmers who have only ever worked in full systems don't always have a good understanding of how embedded is different. You've got very limited resources, and often you need to get creative to ensure that your work is done fast enough.
Say you've built a data acquisition system. Your main() function is going to have two parts: the configuration section (setting all the registers), and the main while(1) loop. yes, while(1). No, I don't want to leave the loop, this processor is going to sit in place doing its thing until the head death of the universe.
My ADC is sampling at 200 samples/second. I pull this into a 16 sample dedicated ADC buffer, then pull those 16 samples into my program for work. I need to have completely finished with processing those 16 samples by the time the next 16 samples are ready, so I probably don't have time to pissfart around with fancy floats, so a library that pretends an int is a 16.16 fixed-point number is going to have to do.
Also, there's no OS. You want to dynamically allocate memory? From who? The RAM is yours. You either declare everything at compile time, or you keep careful track of what memory you have addressed (and how much of the memory will be used by the program stack). remember, I've got to finish what I'm doing in (1/200,000)*16 seconds, or I'm going to lose data. If I have to hard-cap the size of a buffer in order to make my code run at a reliable speed, you'd best believe I'm going to do it.
And yes, I have used an oscilloscope to measure the duty cycle of my microprocessor in order to make sure I won't drop any samples.
Maaaan, I miss embedded work.