Jump to content


  • Content Count

  • Joined

  • Last visited

About AdamUK

  • Rank
    Noob Class

Profile Information

  • Location
  1. That sounds more like it. I guess it is just a matter of figuring out how to compile code for the FPU through Energia now.
  2. Would be nice to get to the bottom of it and get the benefit of the FPU
  3. So what can I do to ensure that relevant code is being run on the FPU? Looking at what opcodes there are for the M4F FPU and I see that there is VSQRT.F32 which is basically sqrtf() in 14 cycles, what is clear is that my code is not running sqrtf() on the FPU because it is far too slow. Am I missing an additional #include or something else? Perhaps as a sanity check someone would like to put a few lines of code together to time running 50k x sqrtf(float) and see what results they get.
  4. I have done a bit more digging around and found a similar question on here, I had just been using the wrong search terms http://forum.43oh.com/topic/7431-noob-question-floating-point/ So using the sqrtf() function this is down to 500ms, this still doesn't seem very fast when it takes 1654ms on an 8 bit processor at a third of the clock speed having to emulate floating point in software. My guess is that the compiled code from Energia is still producing instructions to emulate floating path math in software rather than producing code to execute floating point instructions on the FPU.
  5. Got my MSP432 a couple of days and have been playing around with it, mainly just porting across simple stuff I have previously done on the Arduino. I am getting a bit confused by the FPU and how it operates, I can from commands I see in the status window when I compile and upload that it appears the FPU is being enabled but I do not seem to be getting any benefit from it. For example the following code actually runs faster on an Arduino (an 8 bit based 16 MHz atmega328 Arduino) than on my 32 bit 48 Mhz M4F based MSP432. 1750ms v 1654ms:- for (int i=1;i<50000;i++) { result=sqr
  • Create New...