blx instruction on cortex-m3
I would like to use float library in cortex-m3 cible.
When i compile and link a blx immediate instruction is generated.
This instruction generates a hardware fault.
Here is a beggining of my function
30014: b570 push {r4, r5, r6, lr}
30016: 4d0f ldr r5, [pc, #60] ; (30054 <cycle_
30018: f04f 517e mov.w r1, #1065353216 ; 0x3f800000
3001c: 682c ldr r4, [r5, #0]
3001e: 4606 mov r6, r0
30020: 4620 mov r0, r4
30022: f000 ebf6 blx 30810 <__addsf3>
30026: 6028 str r0, [r5, #0]
30028: 4620 mov r0, r4
3002a: f000 ed42 blx 30ab0 <__aeabi_f2uiz>
3002e: 07c3 lsls r3, r0, #31
...
chip = LPC1768
CFLAGS = -c -fno-common -mcpu=cortex-m3 -march=armv7-m -mthumb-interwork -mthumb -msoft-float -mfpu=vfp -mfloat-abi=soft
LDFLAGS =-T$(LINKER_SCRIPT) -nostartfiles -Wl,-Map=
I need help ...
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Terry Guo
- Solved:
- Last query:
- Last reply: