Part Number: MSP432P401R
1. Is there a description of what the compiler options are in Code Composer Studio for choosing the Floating Point Processor on an MSP432?
I could not find the descriptions in the Code Composer Studio manuals.
In particular a description of what the options are under the CCS menu CCS Build >> MSP432 Compiler >> Processor Options "Specify floating point support"
2. To use the floating point processor in a MSP432P401R program
Does the field in the startup file "system_msp432p401r.c" have to be set to use the FPU?
So adding a line
#define __FPU_USED 1
to the file "system_msp432p401r.c" forces the FPU to be used or is the
__FPU_USED already selected in the header file "core_cm4.h" based on the
specific chip used, in this case and MSP432P401R, which does contain a FPU inside?
void SystemInit(void)
{
// Enable FPU if used
#if (__FPU_USED == 1) // __FPU_USED is defined in core_cm4.h
SCB->CPACR |= ((3UL << 10 * 2) | // Set CP10 Full Access
(3UL << 11 * 2)); // Set CP11 Full Access
#endif