SCM IAR startup files and program entry

TI MCU TM4C123GE6PZ recently doing the BootLoader, need to be made to modify the startup file, toss half the night, which makes the fact that instead.

IAR provides a single-chip default startup file, cstart.s or other cstartxxx.s, and have been compiled into library files inside, just started trying to install files under the modified IAR / arm / scr, found that does not work, IAR will not be recompiled this file but a direct link has compiled a library file. You can find the program entry which is provided by the file by reading the .map file. Finally we found that only need to own startup files in the project directory and included in the project inside the line. IAR's first look at link time project directory, when the interface is not found then need to find the library catalog.

Specify the entire program can be provided by modifying the IAR entry, e.g.

option-> linker-> override defualt program enty this place specified program entry, for example, is designated as main, which compiled code will not contain the main part of the program before the start of single-chip, direct re-start the application.

Guess you like

Origin www.cnblogs.com/llxbl/p/10967268.html
Recommended