Interacting with the linker scripts in the STM32F4 BSP

Mr. Andrei Chichak groups at chichak.ca
Wed Jul 16 19:58:57 UTC 2014


No go,

This is actually being used with an STM32F373 with 256K of FLASH so I used:


MEMORY {
	PARAM_INT : ORIGIN = 0x0003F800, LENGTH = 2k
}

SECTIONS {
	.params : {
		*(.params)
	} > PARAM_INT
}

INCLUDE linkcmds.base


and adding this to the command line using the -T option I get

/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

/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’

linkcmds.base:295 cannot move location counter backwards (from 0000000020001188 to 0000000020000000)

collect2: error: ld returned 1 exit status
make: *** [TruckSensor.exe] Error 1


It looks like the regular linkcmds.base is being executed twice.


Thanks,
Andrei


On 2014-July-15, at 11:29 PM, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:

> On 07/15/2014 12:53 AM, Mr. Andrei Chichak wrote:
>> MEMORY {
>> 	PARAM_INT : ORIGIN = 0x000FF800, LENGTH = 2k
>> }
>> 
>> SECTIONS {
>> 	.params : {
>> 		*(.params)
>> 	} > PARAM_INT
>> }
> 
> Use the above and add (plus the base memory regions)
> 
> INCLUDE linkcmds.base
> 
> or
> 
> INCLUDE linkcmds.name_of_bsp
> 
> at the bottom.
> 
> -- 
> Sebastian Huber, embedded brains GmbH
> 
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax     : +49 89 189 47 41-09
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
> 
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
> 
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users

--------------------
Andrei Chichak

'62 Morris Mini Traveller w/ 1275 'S engine
'97 Volvo 855 374,000 km
’99 VW Golf 130,000 km

Finnish: Terho Virtanen
Elvish: Tuor Vardamir




















-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140716/e954f828/attachment-0002.html>


More information about the users mailing list