Part Number: TM4C123GH6PM
Still a newbie.
Last week I reported a problem with code generated in the data area with the following simple assembly program:
;Test.s
THUMB
AREA CODE, READONLY
Start
mov r0, #1
ALIGN
END
I then added |.text| and EXPORT directives.
;Test.s
THUMB
AREA |.text|,CODE, READONLY
EXPORT Start
Start
mov r0, #1
ALIGN
END
This test program builds and loads correctly.
Without the |.text| directive, the program generates code in the data area and without the EXPORT directive
the assembler reports:
.\Objects\LED_IO.axf: Error: L6218E: Undefined symbol Start (referred from startup.o).
I can understand the EXPORT explanation but what exactly is happening with the |.text| directive?
