<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>Also, just peeked at current line up of STM32 controllers, there are 150 different controllers available, consisting of 33 possible combinations of FLASH memory and SRAM size. <br><br>I will try to get the controller specific parts boiled up into record structures this weekend, and get some added controllers installed into cpuinfo.pas. (And fix any compiler breakages from the change.) I have the SVN download - so generated diffs should be a bit easier (still learning SVN though...)<br><br>Also, I read through the ARM docs regarding the "standard" library - and can setup registers based on the each vendors published "C" library so they match the ARM/vendor docs. However, as each controller in the line-up has only certain peripherals, is it the intention that EACH
controller gets it's own controller file with memory definitions for peripherals ? That's 300+ unit files between STM32 and TI's Stellaris line-ups. <br><br>OR - does one try to merge as many controllers into 1 memory definition as possible. i.e. ALL of stellaris could be defined for the maximal configuration of peripherals (as they have a standard mapping layout for peripherals i.e. ALL LM3 devices have UART0 at the exact same location - and all have the same register layout.) The caveat to this that one could compile code that won't actually run on a given device.<br><br>OR - we could leave the peripheral definitions to the user. (Which I'm assuming is not the preferred route.)<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> Fri, August 19, 2011 12:19:05 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [fpc-devel] Arm Thumb2 - Stellaris status<br></font><br>
Am 19.08.2011 05:28, schrieb John Clymer:<br>> Currently, everything is in a handful of giant arrays. Just wondering<br>> if it would be better to switch to a record structure for the controller<br>> entries - rather than individual arrays. (Add in a variety of STM parts<br>> and the other manufacturers, and there could easily be over 100 memory<br>> configurations in the table.)<br><br>Maybe it's indeed better to have an array of records, each record<br>describing one controller.<br><br>> <br>> My suggestion would be that the register definitions come in an UNIT<br>> file that only defines registers. The controller unit in the compiler<br>> source would only provide the bare minimum necessary to bring the system<br>> up and call PASCALMAIN. However, if it is deemed better to have the<br>> entire register set defined inside the RTL - that would be fine too.<br><br>Well, isn't it for a user easier
just to pass the controller he uses on<br>the command line and the compiler does the rest? Why bother with<br>addional uses etc. if the compiler knows already anything?<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>