himanshubdave1426459935 1 Posted August 6, 2013 Share Posted August 6, 2013 In TivaC Workshop Lab9 on the topic Floating Point, it has been shown that the compuatation time for each iteration loop which contains a sine calculation is approxly 7 microseconds. I ran essentially the same program with Timer1 running in ONE-SHOT-UP mode at 50 MHz, which was started just before the sine calculation loop and the count was read out just after the loop was over. The value recorded was consistantly 171109 which gives total loop time of 342.2 microsec and each loop of 34 microsec. The make file used -mfloat-abi=softfp -mfpu=fpv4-sp-d16 compiler flags, Sourcery CB arm-none-eabi- I am unable to reconcile the two results. Can any one please clarify what is going on? Quote Link to post Share on other sites
Lyon 3 Posted August 6, 2013 Share Posted August 6, 2013 Hi, You should use the options -mfloat-abi=hard -mfpu=fpv4-sp-d16 and link with the hardware floating point libraries m and c, to be found for instance in the following path /usr/local/gcc-arm-none-eabi-4_7-2012q4/arm-none-eabi/lib/armv7e-m/fpu/ That is my path, check yours - if using windows should be your-gcc-path\arm-none-eabi\lib\armv7e-m\fpu\ If you don't find it - it is even possible even not to exist (The Lite version does not have it, at least the last year version - did not checked a newer version). bluehash 1 Quote Link to post Share on other sites
himanshubdave1426459935 1 Posted August 7, 2013 Author Share Posted August 7, 2013 Thanks a lot. In fact I did tried with -mfloat-abi=hard -mfpu=fpv4-sp-d16 , but did not realize that a different set of libraries should be used. I have found the suggested libraries in energia distribution. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.