Search found 5 matches

by pjohnson
Tue Jul 03, 2012 8:44 pm
Forum: Development and Feedback
Topic: [RFC] Raspberry PI
Replies: 34
Views: 35410

Re: [RFC] Raspberry PI

Don't let the naysayers dissuade you. I think that a RasberryPi Chibios port would be the coolest thing ever.
by pjohnson
Wed May 09, 2012 2:30 pm
Forum: General Support
Topic: STM32F4 discovery floating point
Replies: 5
Views: 4443

Re: STM32F4 discovery floating point

Turning on CORTEX_USE_FPU and moving to the svn version did the trick.

Now I am having problems with atan2f giving funny results, but I don't think it is Chibios related.

Thanks for your help.
by pjohnson
Tue May 08, 2012 7:13 pm
Forum: General Support
Topic: STM32F4 discovery floating point
Replies: 5
Views: 4443

Re: STM32F4 discovery floating point

I must be getting bug 3513897, my code is in main.

I will give the svn version a try.
by pjohnson
Tue May 08, 2012 6:20 pm
Forum: General Support
Topic: STM32F4 discovery floating point
Replies: 5
Views: 4443

Re: STM32F4 discovery floating point

Sorry, I should add that I am compiling using gcc 4.6 from CodeSourcery.
by pjohnson
Tue May 08, 2012 6:18 pm
Forum: General Support
Topic: STM32F4 discovery floating point
Replies: 5
Views: 4443

STM32F4 discovery floating point

I added a floating point divide to the STM32F4 discovery example from chibios 2.4.0. It throws me into the exception handler.

My code looks like this,

float xg;
short z;

z = 1000;
xg = (float)z/22.5f;

The exception happens at the divide.

Thanks in advance for your help.