This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001357] New: Cortexm Bus fault


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001357

           Summary: Cortexm Bus fault
           Product: eCos
           Version: 3.0
          Platform: Custom (Customer specific)
        OS/Version: Cortex-M
            Status: UNCONFIRMED
          Severity: normal
          Priority: low
         Component: HAL
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: dimmatx@gmail.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Good afternoon!


I ask to excuse me for the bad English at once :-)

Problem in the following (no KERNEL mode)

in file "Vectors.S"

mrs r12, psp//R12 = thread's PSP
sub r0, r12, #0x20//Make space for frame
msr psp, r0//Put it back

ldr r3, =0x01000000                    //R3 = PSR = thumb bit set
ldr r2, =hal_interrupt_end             //R2 = PC = interrupt end entry point
ldr r1, =hal_interrupt_end_done        //R1 = LR = restore code
stmfd r12!, {r0-r3}                    //Save fake R12, LR, PC, PSR
stmfd r12!, {r0-r3}                    //Save fake R0-R3

bx lr                                  //Return to hal_interrupt_end

code work "hal_interrupt_end" and (lr-jump) to "hal_interrupt_end_done" 

results

generates an exception "Bus fault" with (IMPRECISERR)

For what such artful system generally is necessary?

Whether is easier so???

push {lr}
sub sp, #0x4//Realign SP to 8 bytes
bl hal_interrupt_end
add sp, #0x4//Realign SP to 8 bytes
pop {pc}

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]