Re: Startup code



Jack Klein wrote:
On 29 Jun 2005 01:58:33 -0700, ravikumar.n@xxxxxxxxxxxxxxxx wrote in
comp.arch.embedded:


What amazes me here, considering all the replies to the OP I see here so far, is nobody has mentioned one of the most important reasons for having boot code.

How do you do a complete memory test before calling the C start-up
code that requires at least some memory be working?  How do you test
the watchdog chip by forcing a reset?

Don't any of you do serious POST testing of your hardware?


I'd hardly call memory testing "one of the most important reasons for having boot code". While it is sometimes relevant to have a memory test pass, it's not a big thing. How often does memory actually fail in real life (outside of specialist systems in very harsh environments)? In particular, how often does a microcontroller's integral sram fail, or external sram or dram? If you know some statistics or web references, I'd be very interested to hear them. I think in most embedded systems, there are far more relevant hardware checks to make - the chances of having a minor memory error (major ones, like badly soldered pins, get "detected" pretty quickly) are fairly negligible in comparison.
.




Relevant Pages

  • Re: Memory test program
    ... dspfun wrote: ... entire sdram. ... No OS, no boot code, no other code at all should be ... 128 MB of memory with writing a bit pattern to each memory address, ...
    (comp.os.linux.misc)
  • push cs; pop ds; ds != cs ?
    ... The code gets available memory, sets up a stack, copies the ... the boot code on an pentium 4 machine it just hangs. ... Code for putnum, puts a hex num on the screen ...
    (comp.lang.asm.x86)
  • Re: Memory test program
    ... entire sdram. ... No OS, no boot code, no other code at all should be ... 128 MB of memory with writing a bit pattern to each memory address, ... ThinFlash: Linux thin-client on USB key drive ...
    (comp.os.linux.misc)
  • Re: push cs; pop ds; ds != cs ?
    ... The code gets available memory, sets up a stack, copies the ... > the boot code on an pentium 4 machine it just hangs. ... I've even tried mov ax,cs; move ds,ax but that doesn't work ...
    (comp.lang.asm.x86)