title: Testing firmware
body: <p>This follows a couple of <a href="https://stackoverflow.com/questions/448513/starting-a-microcontroller-simulator-emulator">other</a> <a href="https://stackoverflow.com/questions/448580/interpreting-assembly-code">questions</a> (but I think I have refined my question better). </p>
  
  <p>I want to test out my firmware code before I put on the device. </p>
  
  <p>I realize that a lot of people write their code, upload, test, etc. But I really want to write and test before upload (mainly because I want to automate the many scenarios). </p>
  
  <p>So, what is the best way of doing this. If I were writing pure software, as in, no firmware at all, I would go about it by using cppunit (for example). But I'm a little lost with this firmware thing. </p>
  
  <p>Any ideas? </p>
  
  <p>Thanks</p>