EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Crossworks Section Definition for C code

Started by rf_equip May 3, 2008
How do you define a .text and .rodata for a c module in Crossworks?
How do you add these sections to the flash_placement.xml file? I am
trying to make a IAP boot loader code section that I can locate at the
top of the LPC2129 flash range.

I used :

#pragma section text=".code_section"
#pragma section data=".my_data"
#pragma section bss=".uninit_data"

I know how use to include this with .ld file but not sure how to
handle the XML file.

Thanks in advance,

rf_equip

An Engineer's Guide to the LPC2100 Series

Hi,

Search the FAQ on the rowley website for "Section Placement".

Regards
Michael

p.s.

If you want to use a .ld script then you can, add it to the project
and change (in Common configuration) the File Type property to be
Linker Script.

>
> How do you define a .text and .rodata for a c module in Crossworks?
> How do you add these sections to the flash_placement.xml file? I am
> trying to make a IAP boot loader code section that I can locate at the
> top of the LPC2129 flash range.
>
> I used :
>
> #pragma section text=".code_section"
> #pragma section data=".my_data"
> #pragma section bss=".uninit_data"
>
> I know how use to include this with .ld file but not sure how to
> handle the XML file.
>
> Thanks in advance,
>
> rf_equip
>


Memfault Beyond the Launch