Hi,
It's the same effect I'm getting just 0.000
Regards,
Robert
Floating point issue on Raspberry PI
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
Re: Floating point issue on Raspberry PI
Are you sure the object file for chprintf got recompiled? Did you "make clean"? I tripped over that when I was trying to get fp output last week.
Re: Floating point issue on Raspberry PI
If I don't set the CHPRINTF_USE_FLOAT flag than insted of the number it will print out only a f
-
- Posts: 417
- Joined: Tue Dec 21, 2010 10:19 am
- Location: Karlsruhe, Germany
- Been thanked: 1 time
- Contact:
Re: Floating point issue on Raspberry PI
Wasn't there once an issue with varargs and floating point? Which also never got solved and the "toolchain" got the blame? I'd wager this is the same case.
What is the status of the raspberry Pi Port? I guess it needs a recommended toolchain and working debugging. OpenOCD should support it, right?
What is the status of the raspberry Pi Port? I guess it needs a recommended toolchain and working debugging. OpenOCD should support it, right?
Re: Floating point issue on Raspberry PI
mabl wrote:Wasn't there once an issue with varargs and floating point? Which also never got solved and the "toolchain" got the blame? I'd wager this is the same case
I've experienced the same issues with STM32. I never found the time to get to the bottom of it, I just printed a scaled integer instead. There's some more info here.
Re: Floating point issue on Raspberry PI
Hi,
Finally I figure it out the problem.
There was the stack initialization problem, I added
to the vector.s and now it is working
Robert
Finally I figure it out the problem.
There was the stack initialization problem, I added
Code: Select all
mov sp,#0x8000
to the vector.s and now it is working
Robert
Who is online
Users browsing this forum: No registered users and 21 guests