Re: GCC for ARM
> My question is to all those who use GCC. I wrote a code in C
> and compiled it for ARM using GCC and a ".o" was created.
It sounds like you have only compiled your source files, not linked them
into a single executable.
> how do I specify where the address of registers specific to
> my microcontroller.
When linking you supply a linker script to describe the memory layout of
your device. You can also obtain header files for peripheral register
> How do I select between different ARM cores?
Using the compile switches, as per all compilers its just that some IDE's
hide this detail from you. Manuals, etc are available on http://gcc.gnu.org
that will tell you all you need to know, but you are better off just copying
an example. Examples exist in the files section of this group, you can also
obtain numerous complete examples from the FreeRTOS.org distribution, for
example: http://www.freertos.org/portlpc2106.html These will show you a
complete compile and link setup that you can then just modify to suit your
> ".o" file be converted to INTEL HEX format?
For this you need objcopy - again lookup the manual or more simply, just
copy an existing example.
14 official architecture ports, 5000 downloads per month.
Certified by T as meeting the requirements for safety related systems.