<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"><div>Sorry, missed the second set of questions....<br><br>I was able to get the stellaris part setup in t_embed.pas and cpuinfo.pas, then I got build errors when I build an executable - it was missing the Controller's startup file - these are in rtl\embedded\arm. Once FPC finishes compiling the program, it wants to link with a unit with the same name as the Controller. So, if each controller gets supported separately, then that folder is going to be chock full of controller specific startup files - most of which will be duplicates inside the same family.<br><br>Unless I'm missing something, in order to get a binary for the LM3S8962, using that specific controller as the target, I had to have a file in that folder with that same name - and with the unit inside named the same as the
microcontroller.<br><br>John<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>_______________________________________________<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>