cancel
Showing results for 
Search instead for 
Did you mean: 

Hardfault in external library.

MM..1
Chief III

In project i use external library without source and result is hardfault . I test many combinantion optimize and other flags, nothing helps.

          _ZN2MI7Version25getVersionDetailsAsStringEPcj:
08002df0:   push    {r4, r5, r6, lr}
08002df2:   ldr     r4, [pc, #148] 
08002df4:   ldr     r2, [pc, #148] 
08002df6:   ldr     r3, [pc, #152] 
08002df8:   sub     sp, #24
08002dfa:   add     r4, pc
08002dfc:   str     r4, [sp, #4]
08002dfe:   ldr     r4, [pc, #148]  
08002e00:   add     r2, pc
08002e02:   str     r2, [sp, #12]
08002e04:   add     r3, pc
08002e06:   add     r4, pc
08002e08:   ldr     r2, [pc, #140] 
08002e0a:   str     r4, [sp, #20]
08002e0c:   ldr     r2, [r3, r2]
08002e0e:   ldr     r4, [pc, #140] 
08002e10:   ldr     r2, [r2, #0]        <<<< HARDFAULT HERE OR NEXT
08002e12:   str     r2, [sp, #0]
08002e14:   ldr     r4, [r3, r4]
08002e16:   ldr     r2, [pc, #136] 
08002e18:   ldr     r4, [r4, #0]
08002e1a:   str     r4, [sp, #8]
08002e1c:   ldr     r2, [r3, r2]

maybe allign trouble or? I need some idea. When use external .a file need ld file be changed ?

0 REPLIES 0