EasyManuals Logo

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #64 background imageLoading...
Page #64 background image
Reset
4 - 8 C2000 Microcontroller Workshop - Reset and Interrupts
Getting to main()
After reset how do we get to main() ?
At the code entry point, branch to _c_int00()
Part of compiler runtime support library
Sets up compiler environment
Calls main()
.sect “codestart
LB _c_int00
CodeStartBranch.asm
MEMORY
{
PAGE 0:
BEGIN_M0 : origin = 0x000000, length = 0x000002
}
SECTIONS
{
codestart : > BEGIN_M0, PAGE = 0
}
Linker .cmd
Note: the above example is for boot mode set to M0 SARAM; to run out of Flash, the
codestartsection would be linked to the entry point of the Flash memory block
After reset how do we get to main? When the bootloader process is completed, a branch to the
compiler runtime support library is located at the code entry point. This branch to _c_int00 is
executed, then the compiler environment is set up, and finally main is called.

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals