• SAM7.s branch to main() causes SWI. Why ?
    Hello. In my SAM7.s startup file for AT91SAM7X256, the following instructions are executed: . . . ; Enter the C code IMPORT __main LDR R0, =__main BX R0 . . . Disassembled as follows: 0x0010011C...
  • SWI Handler - Parameters
    If I use the swi_handler.s file that is included in NXP's example programs, does it automatically have the ability to handle passed 'C' parameters? Are the parameters passed on the stack? Note, I...
  • Hard fault when branching to main
    Hi, I am working in a C++ project for STM3210C-Eval Board (Cortex-M3). I wrote some classes and got the project working perfectly. Then I designed other classes to increment project functionalities...
  • Branching to main form assembly error
    Note: This was originally posted on 25th August 2012 at http://forums.arm.com Hey guys, do you know why a simple branch to main from the reset handler causes an hard fault? Heres an example where I try...
  • SWI
    I am trying to execute the following SWI program. It doesnt execute the SWI function body. I have 0 errors and 0 warnings. Any help as to why? CODE: #include <LPC21xx.H> void __swi(8) Call1...