MK20DX64VLH7 Custom Board - Inspect Memory or Code Fails

The build output of my project shows the following (building in release mode):

RAM: [==== ] 44.2% (used 7248 bytes from 16384 bytes)
Flash: [========= ] 87.9% (used 57588 bytes from 65536 bytes)
or for building in debug mode:

In terms of Flash, I still have a ways to go to complete the code and as shown I am already at 90%. I tried to use the Memory Inspect feature to get some ideas on how I could reduce the Flash required but it failed to give me any meaningful data. The Code Inspect feature also failed. I summarize the error reports below.

Are these tools supposed to work for a custom board even though there is a valid board file and linker script? If so, what is wrong here? ( I can post code if necessary). Are there third party tools i can use to get a memory map?

The Memory inspection (after a “Clean” and fresh build)

The Code inspection failed with this summary:

Platform:Unspecified
Error: Found a breaking defect ‘#error Endianess not declared!!’ in C:\Users\Al Testani.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\machine\ieeefp.h:428
Please note: check results might not be valid!
Try adding --skip-packages

“severity=error<&PIO&>message=#error Endianess not declared!!<&PIO&>file=C:\Users\Al Testani.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\machine\ieeefp.h<&PIO&>line=428<&PIO&>column=0<&PIO&>callstack=[C:\Users\Al Testani.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\machine\ieeefp.h:428]<&PIO&>cwe=0<&PIO&>id=preprocessorErrorDirective”

Platform:Unspecified

Error: Found a breaking defect ‘#error Endianess not declared!!’ in C:\Users\Al Testani.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\machine\ieeefp.h:428
Please note: check results might not be valid!
Try adding --skip-packages

“severity=error<&PIO&>message=#error Endianess not declared!!<&PIO&>file=C:\Users\Al Testani.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\machine\ieeefp.h<&PIO&>line=428<&PIO&>column=0<&PIO&>callstack=[C:\Users\Al Testani.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\machine\ieeefp.h:428]<&PIO&>cwe=0<&PIO&>id=preprocessorErrorDirective”

Error: cppcheck failed to perform check! Please examine tool output in verbose mode.

========================= [FAILED] Took 13.28 seconds =========================
Environment Tool Status Duration


teensy3x cppcheck FAILED 00:00:13.284
========================= [FAILED] Took 13.28 seconds =========================
Environment Tool Status Duration


teensy3x cppcheck FAILED 00:00:13.284

Pretty much Why I can not inspect my project in my custom board?