Hi David, the additional memory did not fix the problem. Obviously there is some difference between my workstation/settings and the one that you use. I use the following:
Processor: Intel Core i7-7700 CPU @ 3.60 GHz
Memory: 16.0GB
Disk: SSD with 52 GB free space.
Windows: Win 10 Pro ver 2004 OS Build 19041.450
Installed SDK: SDK_2.8.2_EVK_MIMXRT1060
MCUXpresso IDE v11.2.0 [Build 4120] [2020-07-09].
(This is the latest version of MCUXpresso, are you using the same?)
Since I can't compile the example that you sent I suggest that we look at what could be the problem with that project, since it is well-tested and should work for me also.
This is the console output I get trying to compile "evkmimxrt1060_tensorflow_lite_mnist" project in debug mode:
-------------
19:21:13 **** Incremental Build of configuration Debug for project evkmimxrt1060_tensorflow_lite_mnist ****
make -r -j8 all
Building file: ../source/mnist.cpp
Invoking: MCU C++ Compiler
arm-none-eabi-c++ -std=gnu++11 -DCPU_MIMXRT1062DVL6A -DCPU_MIMXRT1062DVL6A_cm7 -DSDK_DEBUGCONSOLE=1 -DXIP_EXTERNAL_FLASH=1 -DXIP_BOOT_HEADER_ENABLE=1 -DXIP_BOOT_HEADER_DCD_ENABLE=1 -DSKIP_SYSCLK_INIT -DSDK_DEBUGCONSOLE_UART -DFLATBUFFERS_LITTLEENDIAN -DTFLITE_MCU -DARM_MATH_CM7=0 -D__FPU_PRESENT=1 -DEW_USE_PIXEL_FORMAT_SCREEN -DEW_MAX_SURFACE_CACHE_SIZE=0x200000 -DEW_MAX_GLYPH_SURFACE_WIDTH=256 -DEW_MAX_GLYPH_SURFACE_HEIGHT=256 -DEW_USE_DOUBLE_BUFFER=1 -DEW_USE_FREE_RTOS=0 -DEW_SURFACE_ROTATION=0 -DEW_FRAME_BUFFER_COLOR_FORMAT=EW_FRAME_BUFFER_COLOR_FORMAT_RGBA8888 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -D__NEWLIB__ -I../board -I../embeddedwizard/PlatformPackage/RGBA8888 -I../embeddedwizard/PlatformPackage/RTE -I../embeddedwizard/TargetSpecific/ -I../embeddedwizard/TargetSpecific/Drivers/ -I../embeddedwizard/TLSF/ -I../embeddedwizard/ -I../source -I../ -I../tensorflow-lite/tensorflow/contrib/lite -I../tensorflow-lite/tensorflow/contrib/lite/kernels -I../tensorflow-lite/tensorflow/contrib/lite/profiling -I../tensorflow-lite/tensorflow/contrib/lite/schema -I../tensorflow-lite/third_party/flatbuffers/include/flatbuffers -I../component/lists -I../device -I../CMSIS -I../drivers -I../component/uart -I../component/serial_manager -I../xip -I../utilities -I../tensorflow-lite -I../tensorflow-lite/third_party/flatbuffers/include -O0 -fno-common -g3 -Wall -Wno-sign-compare -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fno-rtti -fno-exceptions -fmerge-constants -fmacro-prefix-map="../source/"=. -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -D__NEWLIB__ -fstack-usage -specs=nano.specs -MMD -MP -MF"source/mnist.d" -MT"source/mnist.o" -MT"source/mnist.d" -o "source/mnist.o" "../source/mnist.cpp"
cc1plus.exe: out of memory allocating 65536 bytes
make: *** [source/subdir.mk:49: source/mnist.o] Error 1
"make -r -j8 all" terminated with exit code 2. Build might be incomplete.
19:21:31 Build Failed. 1 errors, 0 warnings. (took 17s.849ms)
----------------
Looking at available RAM during compilation it shows around 7.5GB.
My suspicion now is that there is some difference in my settings for the compiler/MCUXpresso or that we use different versions.
Regards,
Lars