Shouldn't invalid references like this fail at compile time?
Mike Franklin
slavo5150 at yahoo.com
Thu Jan 25 04:49:41 UTC 2018
On Thursday, 25 January 2018 at 04:45:34 UTC, Walter Bright wrote:
> This implies a ROM must be located there. Else how do initial
> values get there?
I'm not sure what you mean. When you upload your firmware to the
MCU, it writes the initial stack pointer to address 0x00 and the
address of the reset handler to 0x04. It is up the developer to
set these values properly in the linker script (a.k.a scatter
file).
Mike
More information about the Digitalmars-d
mailing list