Specifications

References
www.ti.com
The VIC port is disabled upon any CPU reset and must be enabled by the application. The VIC is enabled
by setting the VE bit in the CPUs System Control Register, as shown below.
mrc p15, #0, r0, c1, c0, #0
orr r0, r0, #0x01000000
mcr p15, #0, r0, c1, c0, #0
2.23 Enable Normal Interrupts in the Cortex-R4F CPU
The normal interrupt (IRQ) is disabled inside the Cortex-R4F CPU by default and after a CPU reset. The
normal interrupt can be enabled by clearing the "I" bit of the Current Program Status Register (CPSR)
inside the Cortex-R4F CPU. This can simply be done by executing the below instruction in a privileged
CPU mode. This can be any CPU mode other than the "user" mode.
cpsie i,f
2.24 Additional Initializations Required by Compiler
If the source program is written using C or C++, the TI compiler requires the creation of the C/C++
run-time environment. This includes:
Initialization of copy table, if required
Initialization of global and static variables defines in C/C++
Initialization of global constructors
Make a function call to branch to the main application
These requirements could be different for each compiler. The compiler reference manual must be referred
to identify the specific requirements for the compiler being used.
2.25 Call the Main Application
This is a normal function call when using C/C++. It could be a branch or branch-link to the name of the
routine that executes the application.
For example:
main();
exit();
3 References
TMS570LSxxx7 16/32-Bit Risc Flash Microcontroller Data Sheet (SPNS162)
TMS570LSxxx5 16/32-Bit Risc Flash Microcontroller Data Sheet (SPNS164)
TMS570LSxxx4 16/32-Bit Risc Flash Microcontroller Data Sheet (SPNS165)
RM48Lx50 16/32-Bit Risc Flash Microcontroller Data Sheet (SPNS174)
RM48Lx40 16/32-Bit Risc Flash Microcontroller Data Sheet (SPNS175)
RM48Lx30 16/32-Bit Risc Flash Microcontroller Data Sheet (SPNS176)
TMS570LS31/21 16/32-Bit RISC Flash Microcontroller Technical Reference Manual (SPNU499)
RM48 16/32-Bit RISC Flash Microcontroller Technical Reference Manual (SPNU503)
32
Initialization of Hercules ARM
®
Cortex-R4F Microcontrollers SPNA106 September 2011
Submit Documentation Feedback
Copyright © 2011, Texas Instruments Incorporated