<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Stellaris ALWAYS has the Code starting at $0000:0000.<br><br>STM32's do something odd where the FLASH starts at $0800:0000, and the memory between $0000:0000 and $07FF:FFFF is mappable to either the FLASH or the built-in boot loader. (Which throws a kink in the works.)<br><br>But, as far as the point of catching the 90% of possible uses - one could drop down to strictly {$FLASH_SIZE} and {$SRAM_SIZE}. <br><br>The other option (unless one wants a gazzillion items on the case() statements in t_embed.pas) - is to set them extremely large so they don't get exceeded. However, the danger in that is if someone has an 8K part, and the program ends up spilling over 8K - it won't get picked up.<br><br>Also started un-commenting some parts of rtl.cfg in the embedded folder. Is there
any desire to support more of the RTL than the minimum (i.e. have a default stdin and stdout - so WriteLn, etc work via the serial port ?) Or is the intent that embedded includes on the bare minimal RTL to bring the machine up ?<br><br>Thanks,<br><br>John<br><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Florian Klämpfl <florian@freepascal.org><br><b><span style="font-weight: bold;">To:</span></b> FPC developers' list <fpc-devel@lists.freepascal.org><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, August 16, 2011 12:35:03 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [fpc-devel] Stellaris Update<br></font><br>
Am 16.08.2011 05:39, schrieb John Clymer:<br>> So, after some work, I have a compiler working for the LM3S8962 board (a<br>> successful Blinking LED :-) )<br>> <br>> However, as I was going through some of the various datasheets, I see<br>> that all the Stellaris controllers have similar memory maps. That is:<br>> <br>> A) Each type of device has a specific spot in the memory map to sit at.<br>> B) If a device has less or no device of a given type, that memory map is<br>> "Reserved"<br>> C) The SRAM and FLASH memories always start at the same address<br><br>So why would the directives be needed?<br><br>> <br>> As such, I'm leaning towards:<br>> <br>> {$FLASH_START xxxxx}<br>> {$FLASH_SIZE xxxxx }<br>> {$SRAM_START xxxxx }<br>> {$SRAM_SIZE xxxxx }<br>> <br>> By doing this, only 1 config will work for all stellaris parts (as was<br>> originally laid out in the cpuinfo
file.)<br><br>What config? Memory layout in the compiler? Even without the directives<br>mentioned above, mulitple stellaris controllers can share the same<br>memory layout config in t_embedded?<br>_______________________________________________<br>fpc-devel maillist - <a ymailto="mailto:fpc-devel@lists.freepascal.org" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br><span><a target="_blank" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a></span><br></div></div>
</div></body></html>