BL51: ABSOLUTELY LOCATING STARTUP CODE
Information in this article applies to:
I am trying to absolutely locate the startup code that comes with the compiler (in the file STARTUP.A51) and is always included in projects.
When I try to use the segment name ?CO?STARTUP I get ERROR 110: CANNOT FIND SEGMENT.
Segment names for assembly code do not have to follow the same naming conventions as used for C code segments. The segment name you are trying to use is incorrect.
Build your project (without the linker CODE directive referencing ?CO?STARTUP) and look at the m51 file generated.
In the table titled 'Link Map of Module' you will see something like the following:
TYPE BASE LENGTH RELOCATION SEGMENT NAME ----------------------------------------------------- * * * * * * * C O D E M E M O R Y * * * * * * * CODE 057FH 000FH UNIT ?C_C51STARTUP
The correct segment name is therefore ?C_C51STARTUP.
As an alternative, review the STARTUP.A51 file and you will find the following segment definition:
?C_C51STARTUP SEGMENT CODE
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Monday, October 16, 2006
of your data.
We are pleased to inform you that on 5 September 2016, SoftBank Group Corp. acquired ARM Holdings Plc. ARM will continue to operate as an independent business within the SoftBank group.
Any current agreements between ARM Ltd (or other ARM group companies, as applicable) you / your company remain in effect as between the parties, and the parties will continue to be bound by and perform the obligations in such agreements. If you have any queries please direct these to ARMSoftbank-Notifications@arm.com.