<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><font face="Helvetica">No go,</font><div><font face="Helvetica"><br></font></div><div><font face="Helvetica">This is actually being used with an STM32F373 with 256K of FLASH so I used:</font></div><div><font face="Helvetica"><br></font></div><div><br></div><div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;">MEMORY {</span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;"><span class="Apple-tab-span" style="white-space:pre"> </span>PARAM_INT : ORIGIN = 0x0003F800, LENGTH = 2k</span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;">}</span></font></div><div style="margin: 0px; min-height: 15px;"><font face="Courier"><span style="font-size: 11px;"><br></span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;">SECTIONS {</span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;"><span class="Apple-tab-span" style="white-space:pre"> </span>.params : {</span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;"><span class="Apple-tab-span" style="white-space:pre"> </span>*(.params)</span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;"><span class="Apple-tab-span" style="white-space:pre"> </span>} > PARAM_INT</span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;">}</span></font></div><div style="margin: 0px; min-height: 15px;"><font face="Courier"><span style="font-size: 11px;"><br></span></font></div><div style="margin: 0px;"><font face="Courier"><span style="font-size: 11px;">INCLUDE linkcmds.base</span></font></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"><br></div><div style="margin: 0px;"><font face="Helvetica">and adding this to the command line using the -T option I get</font></div><div><br></div><div><div style="margin: 0px; font-size: 11px;"><font face="Courier">/Users/andreichichak/development/rtems/4.11/bin/arm-rtems4.11-gcc -B/Users/andreichichak/development/rtems/4.11/arm-rtems4.11/stm32f37x/lib/ -specs bsp_specs -qrtems -march=armv7-m -mthumb -L/Users/andreichichak/Documents/workspace/libstm32f373/lib -T ../project.linkcmds -o “TruckSensor.exe" ./src/adc.o ./src/cantask.o ./src/errorlogger.o ./src/flash.o ./src/gpio.o ./src/init.o ./src/led.o ./src/machine.o ./src/monitor.o ./src/pressure.o ./src/system_stm32f37x.o -llibstm32f373</font></div><div style="margin: 0px; font-size: 11px;"><font face="Courier"><br></font></div><div style="margin: 0px; font-size: 11px;"><font face="Courier">/Users/andreichichak/development/rtems/4.11/lib/gcc/arm-rtems4.11/4.8.2/../../../../arm-rtems4.11/bin/ld:linkcmds.base:64: warning: redeclaration of memory region `UNEXPECTED_SECTIONS’</font></div><div style="margin: 0px; font-size: 11px;"><font face="Courier"><br></font></div><div style="margin: 0px; font-size: 11px;"><font face="Courier">linkcmds.base:295 cannot move location counter backwards (from 0000000020001188 to 0000000020000000)</font></div><div style="margin: 0px; font-size: 11px;"><font face="Courier"><br></font></div><div style="margin: 0px; font-size: 11px;"><font face="Courier">collect2: error: ld returned 1 exit status</font></div><div style="margin: 0px; font-size: 11px;"><font face="Courier">make: *** [TruckSensor.exe] Error 1</font></div><div><br></div><div><br></div><div><font face="Helvetica">It looks like the regular linkcmds.base is being executed twice.</font></div><div><font face="Helvetica"><br></font></div><div><font face="Helvetica"><br></font></div><div><font face="Helvetica">Thanks,</font></div><div><font face="Helvetica">Andrei</font></div><div><br></div><div><br></div><div><div>On 2014-July-15, at 11:29 PM, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 07/15/2014 12:53 AM, Mr. Andrei Chichak wrote:<br><blockquote type="cite">MEMORY {<br><span class="Apple-tab-span" style="white-space:pre"> </span>PARAM_INT : ORIGIN = 0x000FF800, LENGTH = 2k<br>}<br><br>SECTIONS {<br><span class="Apple-tab-span" style="white-space:pre"> </span>.params : {<br><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>*(.params)<br><span class="Apple-tab-span" style="white-space:pre"> </span>} > PARAM_INT<br>}<br></blockquote><br>Use the above and add (plus the base memory regions)<br><br>INCLUDE linkcmds.base<br><br>or<br><br>INCLUDE linkcmds.name_of_bsp<br><br>at the bottom.<br><br>-- <br>Sebastian Huber, embedded brains GmbH<br><br>Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>Phone : +49 89 189 47 41-16<br>Fax : +49 89 189 47 41-09<br>E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a><br>PGP : Public key available on request.<br><br>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br><br>_______________________________________________<br>users mailing list<br><a href="mailto:users@rtems.org">users@rtems.org</a><br><a href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a><br></blockquote></div><br><div>
--------------------<br>Andrei Chichak<br><br>'62 Morris Mini Traveller w/ 1275 'S engine<br>'97 Volvo 855 374,000 km<br>’99 VW Golf 130,000 km<br><br>Finnish: Terho Virtanen<div>Elvish: Tuor Vardamir<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>
</div>
<br></div></div></body></html>