EmbeddedRelated.com
Forums
Memfault State of IoT Report

Code location, boot loader and CrossWorks

Started by vt_snapshot January 30, 2006
Hello group,

I have an application where I need to force a section of code to a
specific address for custom boot-loader purposes but can't seem to
find out how  this assignment is done using the CrossWorks compiler.
There's examples out there for IAR but the two compilers seem to
handle code location assignment differently.

I'm trying to do this for both a SAM7S64 as well as for an Atmel AVR
ATmega168 chip.

Anyone familiar with this compiler?

- Jim
	
Hi, 

> I have an application where I need to force a
section of code to a
> specific address for custom boot-loader purposes but can't seem to
> find out how  this assignment is done using the CrossWorks compiler.
> There's examples out there for IAR but the two compilers seem to
> handle code location assignment differently.
> 
> I'm trying to do this for both a SAM7S64 as well as for an Atmel AVR
> ATmega168 chip.
> 
> Anyone familiar with this compiler?

Sort of.  I wrote the AVR compiler, but the ARM compiler is (currently)
based on GCC.  They both, however, share the memory map format that
defines how memory is arranged and how sections map to memory areas.

The easiest way is to right click on the memory map file in the project
explorer and select Import to get a local copy of the system memory map
file.  You can then double click the memory map file and place the flash
start wherever you want.  You can do this for AVR and ARM.

As for AVR, I believe there are bootloader project wizards in the
distribution.

--
Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
CrossWorks for MSP430, ARM, AVR and now MAXQ processors

Hi Jim,

For CrossWorks for AVR we support Bootloader project types that should 
fit your requirements. For section placement using CrossWorks for ARM 
see the ARM FAQ in the online documentation.

Regards
Michael

> Hello group,
>
> I have an application where I need to force a section of code to a
> specific address for custom boot-loader purposes but can't seem to
> find out how  this assignment is done using the CrossWorks compiler.
> There's examples out there for IAR but the two compilers seem to
> handle code location assignment differently.
>
> I'm trying to do this for both a SAM7S64 as well as for an Atmel AVR
> ATmega168 chip.
>
> Anyone familiar with this compiler?
>
> - Jim
>
>
>
>
>
> 
> >.
>
>
> 
>
	

Memfault State of IoT Report