FPU - which SAM4 devices support?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I am having too much difficulty finding a table on the Atmel site that clearly states which SAM4 devices support/include a floating point unit.

Can someone please direct me to the Atmel cortex M4 processor variants list that support FPU and which are single-precision versus double-precision.

I am forced to use ATSAM4SA16BA for development due to legacy installations.

Thanks much,

Mark 

The great thing about multitasking is that several things can go wrong at once..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Appears as though the SAM4E family supports an FPU. I don't believe the SAM4S has the option at least according to the product matrix... then again: other documentation says the following about the 4S family: "4S - DSP Instructions, Floating Point Unit (FPU), Thumb®-2 instruction set Memories".

 

http://www.microchip.com/wwwprod...

 

Last Edited: Fri. Jun 30, 2017 - 04:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, I saw that webpage however it specifies a SAM4S4  .  You'd think there'd be a product matrix with a field spec'ing whether a particular Cortex 4M had the FPU...

The great thing about multitasking is that several things can go wrong at once..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have the same question. The sam4sa16c header file in cmsis states no FPU

 

#define __FPU_PRESENT          0      /**< SAM4SA16C does not provide a FPU *

While the documentation found here http://www.microchip.com/wwwprod... states:

 

DSP Instructions, Floating Point Unit (FPU), Thumb®-2 instruction set

 

 

PS: take a look at this for HW floating point enabling: https://launchpadlibrarian.net/1...

 

|----------|--------------------------------------------|----------|
|Cortex-M4 | -mthumb -mcpu=cortex-m4 -mfloat-abi=hard   | armv7e-m |
|(Hard FP) | -mfpu=fpv4-sp-d16                          | /fpu     |
|          |--------------------------------------------|          |
|          | -mthumb -march=armv7e-m -mfloat-abi=hard   |          |
|          | -mfpu=fpv4-sp-d16                          |          |
|----------|--------------------------------------------|----------|