Download Presentation Title Here
Transcript
No Assembly Required! • Cortex-M3 has complete hardware support for interrupts • • Interrupt Service Routines (ISRs) are purely written in C/C++ Interrupt setup is easily done in C/C++ • • • ASM No boot code ASM, no system configuration ASM • • ARM7 compilers normally comes with a ASM boot routine (in object form) that does setup. For Cortex-M3, no boot routine is needed • • • C/C++ array which contains the vectors (pointers to the C/C++ functions) Pointer to the stack (a C/C++ array) Cortex-M3 hardware loads the stack pointer from memory and the initial PC from memory and enters as a normal C function. User C/C++ code is all that is required. Entire software code base can be written in C/C++ • • • ISRs RTOS Application code C/C++ PP090329