Skip to content

Commit a162815

Browse files
imi415Rbb666
authored andcommitted
bsp: nxp/mcx/mcxa/frdm-mcxa156: Added FPU support.
MCXA156 series supports FPU and DSP, adding corresponding compiler flags. Signed-off-by: Yilin Sun <[email protected]>
1 parent ea31985 commit a162815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsp/nxp/mcx/mcxa/frdm-mcxa156/rtconfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
OBJCPY = PREFIX + 'objcopy'
4545
STRIP = PREFIX + 'strip'
4646

47-
DEVICE = ' -mcpu=' + CPU + '+nodsp' + ' -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections'
48-
CFLAGS = DEVICE + ' -Wall'
47+
DEVICE = ' -mcpu=' + CPU + ' -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
48+
CFLAGS = DEVICE + ' -Wall -D__FPU_PRESENT'
4949
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -D__START=entry -D__STARTUP_CLEAR_BSS'
5050
LFLAGS = DEVICE + ' -specs=nano.specs -specs=nosys.specs -Wl,--defsym=__heap_size__=0x2000,--gc-sections,-Map=rtthread.map,--print-memory-usage -Tboard/linker_scripts/MCXA156_flash.ld'
5151

0 commit comments

Comments
 (0)