Migration of code : libc problem.
Hi,
I’am new to openSTM32 AC6... (and I am trying to import some source from my projects... compiled with a previous version of arm-none-eabi-gcc and an “home made” eclipse package very similar to openSTM32)
(First, I met a problem with the FPU configuration... I had to recompile my libraries in “soft” mode. But this looks solved.)
Now...
When I launch my program, I get a strange software execution when calling setvbuf (or others functions fromp libc)...
The disassembly listing shows me this BAD code (it is evident that this assembler listing is not right code... but maybe datas or a code for an other architecture ?)
setvbuf:
0804a6bc: stmia r1!, {r5, r6}
0804a6be: b.n 0x804a200 // Of course, this is absurd!
0804a6c0: mvns r0, r7
0804a6c2: stmdb sp!, {sp, lr}
0804a6c6: b.n 0x804a202
0804a6c8: movs r0, r0
0804a6ca: b.n 0x804ad7a
0804a6cc: ands r0, r0
0804a6ce: b.n 0x804aa12
0804a6d0: strb r1, r0, #0
0804a6d2: b.n 0x804aa16
0804a6d4: str r0, sp, #8
0804a6d6: b.n 0x804aa1a
...
Same problem for other functions of libc (puts, printf...)
I guess there is a problem in my project configuration or in the linker script...
Any idea?
Thanks,
Samuel.