文章目录
- NXP MCUXPresso - 确定冰沙主板工程需要编译的确切文件集合
- 概述
- END
NXP MCUXPresso - 确定冰沙主板工程需要编译的确切文件集合
概述
在尝试迁移 openpnp - Smoothieware project 从gcc命令行 + MRI调试方式 到NXP MCUXpresso工程.
先搭了一个MCUXpresso C++工程, MCU选LPC1769, 然后尝试包含大部分Smoothieware project的实现, 无脑编译.
将头文件路径加全, 消除编译时的警告和语法错误. 最后出现cc1plus.exe内存超出报错停止编译.
尝试按照网上方法, 对cc1plus进行设置, 不好使啊.
尝试更换更高版本的cc1plus(for ARM), 不好使. 应该这个cc1plus是nxp家修改过的, 传的命令行参数是厂家定制过的.
现在咋整?
只能是怀疑无脑编译有问题.
如果对makefile比较熟, 可以直接看嵌套的makefile, 但是这样看的可能不大准啊(主要是对makefile不熟).
换个思路.
尝试将Smoothieware_best-for-pnp原始工程的命令行编译全部记录下来, 保存成日志.
然后从日志中, 将哪些文件参与了编译找出来, 然后在MCUXpresso中, 将不需要参与编译的文件屏蔽掉.
开始尝试LogView.exe(比较方便的可以将含有关键字的行保存成日志, 但是多个关键字就没法存成一个文件, 也有可能是高级用法我不会), 但是没我要的功能.
花了30分钟, 写了一个程序, 将日志中和编译相关的日志行另存成一个文件. 然后对照这个整理后的日志, 来调整MCUXpresso的文件屏蔽选项.
// @file src_log_proc.cpp
// @brief 日志处理 : 将冰沙主板编译的详细日志中关心的部分提取出来, 另存到文件供分析(用来弄清楚冰沙主板编译时, 到底用了那些实现文件)
// @note 需要定义预处理器宏 _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
const char* log_white_name_list[] = {
"Entering directory",
"Building ",
"Compiling ",
"Assembling ",
NULL
};
void usage();
typedef void (*PFN_proc_log_row)(FILE* pf_proc, const char* psz_buf_row);
void proc_file(const char* psz_file_name, const char* psz_file_name_after_proc, PFN_proc_log_row pfn);
void proc_log_row(FILE* pf_proc, const char* psz_buf_row);
int main(int argc, char** argv)
{
bool b_cmd_param_ok = false;
int i = 0;
char sz_buf[MAX_PATH + 32];
do {
if (2 != argc)
{
break;
}
for (i = 0; i < argc; i++)
{
printf("cmd param [%d] = [%s]\n", i, argv[i]);
}
b_cmd_param_ok = true;
memset(sz_buf, 0, sizeof(sz_buf));
strcpy(sz_buf, argv[1]);
strcat(sz_buf, "_proc.txt");
proc_file(argv[1], sz_buf, proc_log_row);
} while (false);
if (!b_cmd_param_ok)
{
usage();
}
printf("END\n");
system("pause");
return EXIT_SUCCESS;
}
void usage()
{
printf("usage:\n");
printf("THE_EXE the_log_file\n");
printf("the_log_file must be asni encode\n");
}
void proc_file(const char* psz_file_name, const char* psz_file_name_after_proc, PFN_proc_log_row pfn)
{
FILE* pf_org = NULL;
FILE* pf_proc = NULL;
char sz_buf[4096];
char* psz_rd = NULL;
do {
if (NULL == pfn)
{
break;
}
if (NULL == psz_file_name)
{
break;
}
pf_org = fopen(psz_file_name, "rb");
if (NULL == pf_org)
{
break;
}
if (NULL == psz_file_name_after_proc)
{
break;
}
printf("file after proc : [%s]\n", psz_file_name_after_proc);
pf_proc = fopen(psz_file_name_after_proc, "wb");
if (NULL == pf_proc)
{
break;
}
do {
memset(sz_buf, 0, sizeof(sz_buf));
psz_rd = fgets(sz_buf, sizeof(sz_buf), pf_org);
if (NULL == psz_rd)
{
break;
}
pfn(pf_proc, sz_buf);
} while (true);
} while (false);
if (NULL != pf_org)
{
fclose(pf_org);
pf_org = NULL;
}
if (NULL != pf_proc)
{
fclose(pf_proc);
pf_proc = NULL;
}
}
void proc_log_row(FILE* pf_proc, const char* psz_buf_row)
{
int i = 0;
const char* psz_find = NULL;
do {
if ((NULL == pf_proc) || (NULL == psz_buf_row))
{
break;
}
// printf("proc : [%s]\n", psz_buf_row);
do {
if (NULL == log_white_name_list[i])
{
break;
}
psz_find = strstr(psz_buf_row, log_white_name_list[i]);
if (NULL != psz_find)
{
fwrite(psz_buf_row, sizeof(char), strlen(psz_buf_row), pf_proc);
break;
}
i++;
} while (true);
} while (false);
}
处理之前的详细编译日志, 用如下命令:
make clean
make VERBOSE=1 all // 将这个命令编译的显示内容, 作为分析前的日志.
然后运行日志分析程序, 在处理保存后的日志中, 参与编译的文件就清楚的看出来了.
make[1]: Entering directory `D:/3rd_prj/Smoothieware_best-for-pnp/mbed'
Building src
make[2]: Entering directory `D:/3rd_prj/Smoothieware_best-for-pnp/mbed/src'
Building mbed-lpc1768.mk
make[3]: Entering directory `D:/3rd_prj/Smoothieware_best-for-pnp/mbed/src'
Compiling vendor/NXP/capi/analogin_api.c
Compiling vendor/NXP/capi/analogout_api.c
Compiling vendor/NXP/capi/board.c
Compiling vendor/NXP/capi/can_api.c
Compiling vendor/NXP/capi/ethernet_api.c
Compiling vendor/NXP/capi/gpio_api.c
Compiling vendor/NXP/capi/gpio_irq_api.c
Compiling vendor/NXP/capi/i2c_api.c
Compiling vendor/NXP/capi/pinmap.c
Compiling vendor/NXP/capi/PinNames.c
Compiling vendor/NXP/capi/port_api.c
Compiling vendor/NXP/capi/pwmout_api.c
Compiling vendor/NXP/capi/rtc_api.c
Compiling vendor/NXP/capi/semihost.c
Compiling vendor/NXP/capi/serial_api.c
Compiling vendor/NXP/capi/sleep.c
Compiling vendor/NXP/capi/spi_api.c
Compiling vendor/NXP/capi/us_ticker_api.c
Compiling vendor/NXP/cmsis/LPC1768/cmsis_nvic.c
Compiling vendor/NXP/cmsis/LPC1768/core_cm3.c
Compiling vendor/NXP/cmsis/LPC1768/system_LPC17xx.c
Compiling capi/exit.c
Compiling capi/mbed_interface.c
Compiling capi/pinmap_common.c
Compiling capi/rtc_time.c
Compiling capi/semihost_api.c
Compiling capi/wait_api.c
Assembling vendor/NXP/cmsis/LPC1768/GCC_ARM/startup_LPC17xx.s
Compiling cpp/BusIn.cpp
Compiling cpp/BusInOut.cpp
Compiling cpp/BusOut.cpp
Compiling cpp/CAN.cpp
Compiling cpp/Ethernet.cpp
Compiling cpp/FileBase.cpp
Compiling cpp/FileLike.cpp
Compiling cpp/FilePath.cpp
Compiling cpp/FileSystemLike.cpp
Compiling cpp/FunctionPointer.cpp
Compiling cpp/I2C.cpp
Compiling cpp/I2CSlave.cpp
Compiling cpp/InterruptIn.cpp
Compiling cpp/LocalFileSystem.cpp
Compiling cpp/Serial.cpp
Compiling cpp/SPI.cpp
Compiling cpp/SPISlave.cpp
Compiling cpp/stdio.cpp
Compiling cpp/Stream.cpp
Compiling cpp/Ticker.cpp
Compiling cpp/Timeout.cpp
Compiling cpp/Timer.cpp
Compiling cpp/TimerEvent.cpp
Compiling vendor/NXP/capi/analogin_api.c
Compiling vendor/NXP/capi/analogout_api.c
Compiling vendor/NXP/capi/board.c
Compiling vendor/NXP/capi/can_api.c
Compiling vendor/NXP/capi/ethernet_api.c
Compiling vendor/NXP/capi/gpio_api.c
Compiling vendor/NXP/capi/gpio_irq_api.c
Compiling vendor/NXP/capi/i2c_api.c
Compiling vendor/NXP/capi/pinmap.c
Compiling vendor/NXP/capi/PinNames.c
Compiling vendor/NXP/capi/port_api.c
Compiling vendor/NXP/capi/pwmout_api.c
Compiling vendor/NXP/capi/rtc_api.c
Compiling vendor/NXP/capi/semihost.c
Compiling vendor/NXP/capi/serial_api.c
Compiling vendor/NXP/capi/sleep.c
Compiling vendor/NXP/capi/spi_api.c
Compiling vendor/NXP/capi/us_ticker_api.c
Compiling vendor/NXP/cmsis/LPC1768/cmsis_nvic.c
Compiling vendor/NXP/cmsis/LPC1768/core_cm3.c
Compiling vendor/NXP/cmsis/LPC1768/system_LPC17xx.c
Compiling capi/exit.c
Compiling capi/mbed_interface.c
Compiling capi/pinmap_common.c
Compiling capi/rtc_time.c
Compiling capi/semihost_api.c
Compiling capi/wait_api.c
Assembling vendor/NXP/cmsis/LPC1768/GCC_ARM/startup_LPC17xx.s
Compiling cpp/BusIn.cpp
Compiling cpp/BusInOut.cpp
Compiling cpp/BusOut.cpp
Compiling cpp/CAN.cpp
Compiling cpp/Ethernet.cpp
Compiling cpp/FileBase.cpp
Compiling cpp/FileLike.cpp
Compiling cpp/FilePath.cpp
Compiling cpp/FileSystemLike.cpp
Compiling cpp/FunctionPointer.cpp
Compiling cpp/I2C.cpp
Compiling cpp/I2CSlave.cpp
Compiling cpp/InterruptIn.cpp
Compiling cpp/LocalFileSystem.cpp
Compiling cpp/Serial.cpp
Compiling cpp/SPI.cpp
Compiling cpp/SPISlave.cpp
Compiling cpp/stdio.cpp
Compiling cpp/Stream.cpp
Compiling cpp/Ticker.cpp
Compiling cpp/Timeout.cpp
Compiling cpp/Timer.cpp
Compiling cpp/TimerEvent.cpp
Building mbed-lpc11u24.mk
make[3]: Entering directory `D:/3rd_prj/Smoothieware_best-for-pnp/mbed/src'
Compiling vendor/NXP/capi/analogin_api.c
Compiling vendor/NXP/capi/analogout_api.c
Compiling vendor/NXP/capi/board.c
Compiling vendor/NXP/capi/can_api.c
Compiling vendor/NXP/capi/ethernet_api.c
Compiling vendor/NXP/capi/gpio_api.c
Compiling vendor/NXP/capi/gpio_irq_api.c
Compiling vendor/NXP/capi/i2c_api.c
Compiling vendor/NXP/capi/pinmap.c
Compiling vendor/NXP/capi/PinNames.c
Compiling vendor/NXP/capi/port_api.c
Compiling vendor/NXP/capi/pwmout_api.c
Compiling vendor/NXP/capi/rtc_api.c
Compiling vendor/NXP/capi/semihost.c
Compiling vendor/NXP/capi/serial_api.c
Compiling vendor/NXP/capi/sleep.c
Compiling vendor/NXP/capi/spi_api.c
Compiling vendor/NXP/capi/us_ticker_api.c
Compiling vendor/NXP/cmsis/LPC11U24/cmsis_nvic.c
Compiling vendor/NXP/cmsis/LPC11U24/core_cm0.c
Compiling vendor/NXP/cmsis/LPC11U24/system_LPC11Uxx.c
Compiling capi/exit.c
Compiling capi/mbed_interface.c
Compiling capi/pinmap_common.c
Compiling capi/rtc_time.c
Compiling capi/semihost_api.c
Compiling capi/wait_api.c
Assembling vendor/NXP/cmsis/LPC11U24/GCC_ARM/startup_LPC11xx.s
Compiling cpp/BusIn.cpp
Compiling cpp/BusInOut.cpp
Compiling cpp/BusOut.cpp
Compiling cpp/CAN.cpp
Compiling cpp/Ethernet.cpp
Compiling cpp/FileBase.cpp
Compiling cpp/FileLike.cpp
Compiling cpp/FilePath.cpp
Compiling cpp/FileSystemLike.cpp
Compiling cpp/FunctionPointer.cpp
Compiling cpp/I2C.cpp
Compiling cpp/I2CSlave.cpp
Compiling cpp/InterruptIn.cpp
Compiling cpp/LocalFileSystem.cpp
Compiling cpp/Serial.cpp
Compiling cpp/SPI.cpp
Compiling cpp/SPISlave.cpp
Compiling cpp/stdio.cpp
Compiling cpp/Stream.cpp
Compiling cpp/Ticker.cpp
Compiling cpp/Timeout.cpp
Compiling cpp/Timer.cpp
Compiling cpp/TimerEvent.cpp
Compiling vendor/NXP/capi/analogin_api.c
Compiling vendor/NXP/capi/analogout_api.c
Compiling vendor/NXP/capi/board.c
Compiling vendor/NXP/capi/can_api.c
Compiling vendor/NXP/capi/ethernet_api.c
Compiling vendor/NXP/capi/gpio_api.c
Compiling vendor/NXP/capi/gpio_irq_api.c
Compiling vendor/NXP/capi/i2c_api.c
Compiling vendor/NXP/capi/pinmap.c
Compiling vendor/NXP/capi/PinNames.c
Compiling vendor/NXP/capi/port_api.c
Compiling vendor/NXP/capi/pwmout_api.c
Compiling vendor/NXP/capi/rtc_api.c
Compiling vendor/NXP/capi/semihost.c
Compiling vendor/NXP/capi/serial_api.c
Compiling vendor/NXP/capi/sleep.c
Compiling vendor/NXP/capi/spi_api.c
Compiling vendor/NXP/capi/us_ticker_api.c
Compiling vendor/NXP/cmsis/LPC11U24/cmsis_nvic.c
Compiling vendor/NXP/cmsis/LPC11U24/core_cm0.c
Compiling vendor/NXP/cmsis/LPC11U24/system_LPC11Uxx.c
Compiling capi/exit.c
Compiling capi/mbed_interface.c
Compiling capi/pinmap_common.c
Compiling capi/rtc_time.c
Compiling capi/semihost_api.c
Compiling capi/wait_api.c
Assembling vendor/NXP/cmsis/LPC11U24/GCC_ARM/startup_LPC11xx.s
Compiling cpp/BusIn.cpp
Compiling cpp/BusInOut.cpp
Compiling cpp/BusOut.cpp
Compiling cpp/CAN.cpp
Compiling cpp/Ethernet.cpp
Compiling cpp/FileBase.cpp
Compiling cpp/FileLike.cpp
Compiling cpp/FilePath.cpp
Compiling cpp/FileSystemLike.cpp
Compiling cpp/FunctionPointer.cpp
Compiling cpp/I2C.cpp
Compiling cpp/I2CSlave.cpp
Compiling cpp/InterruptIn.cpp
Compiling cpp/LocalFileSystem.cpp
Compiling cpp/Serial.cpp
Compiling cpp/SPI.cpp
Compiling cpp/SPISlave.cpp
Compiling cpp/stdio.cpp
Compiling cpp/Stream.cpp
Compiling cpp/Ticker.cpp
Compiling cpp/Timeout.cpp
Compiling cpp/Timer.cpp
Compiling cpp/TimerEvent.cpp
Building Smoothie
make[1]: Entering directory `D:/3rd_prj/Smoothieware_best-for-pnp/src'
Building for device lpc1768
make[2]: Entering directory `D:/3rd_prj/Smoothieware_best-for-pnp/src'
Compiling libs/Network/uip/clock-arch.c
Compiling libs/ChaNFS/CHAN_FS/option/ccsbcs.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_adc.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_can.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_clkpwr.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_dac.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_debug_frmwrk.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_emac.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_exti.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_gpdma.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_gpio.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_i2c.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_i2s.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_libcfg_default.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_mcpwm.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_nvic.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_pinsel.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_pwm.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_qei.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_rit.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_rtc.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_spi.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_ssp.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_systick.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_timer.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_uart.c
Compiling libs/LPC17xx/LPC17xxLib/src/lpc17xx_wdt.c
Compiling libs/Network/uip/dhcpc/dhcpc.c
Compiling libs/Network/uip/lib/memb.c
Compiling libs/Network/uip/uip/psock.c
Compiling libs/Network/uip/uip/timer.c
Compiling libs/Network/uip/uip/uip-fw.c
Compiling libs/Network/uip/uip/uip-neighbor.c
Compiling libs/Network/uip/uip/uip-split.c
Compiling libs/Network/uip/uip/uip.c
Compiling libs/Network/uip/uip/uip_arp.c
Compiling libs/Network/uip/uip/uiplib.c
Compiling libs/Network/uip/webserver/http-strings.c
Compiling libs/Network/uip/webserver/httpd-fs.c
Compiling libs/Network/uip/webserver/httpd.c
Compiling main.cpp
Compiling version.cpp
Compiling libs/Adc.cpp
Compiling libs/ahbmalloc.cpp
Compiling libs/AppendFileStream.cpp
Compiling libs/Config.cpp
Compiling libs/ConfigCache.cpp
Compiling libs/ConfigSource.cpp
Compiling libs/ConfigValue.cpp
Compiling libs/gpio.cpp
Compiling libs/Hook.cpp
Compiling libs/Kernel.cpp
Compiling libs/md5.cpp
Compiling libs/MemoryPool.cpp
Compiling libs/Module.cpp
Compiling libs/MRI_Hooks.cpp
Compiling libs/Pin.cpp
Compiling libs/platform_memory.cpp
Compiling libs/PublicData.cpp
Compiling libs/Pwm.cpp
Compiling libs/SDFAT.cpp
Compiling libs/SlowTicker.cpp
Compiling libs/SoftPWM.cpp
Compiling libs/StepperMotor.cpp
Compiling libs/StepTicker.cpp
Compiling libs/StreamOutput.cpp
Compiling libs/utils.cpp
Compiling libs/Vector3.cpp
Compiling libs/Watchdog.cpp
Compiling libs/ADC/adc.cpp
Compiling libs/ChaNFS/FATDirHandle.cpp
Compiling libs/ChaNFS/FATFileHandle.cpp
Compiling libs/ChaNFS/FATFileSystem.cpp
Compiling libs/ConfigSources/FileConfigSource.cpp
Compiling libs/ConfigSources/FirmConfigSource.cpp
Compiling libs/Network/net_util.cpp
Compiling libs/USBDevice/DFU.cpp
Compiling libs/USBDevice/USB.cpp
Compiling modules/communication/GcodeDispatch.cpp
Compiling modules/communication/SerialConsole.cpp
Compiling modules/robot/Block.cpp
Compiling modules/robot/BlockQueue.cpp
Compiling modules/robot/Conveyor.cpp
Compiling modules/robot/Planner.cpp
Compiling modules/robot/Robot.cpp
Compiling libs/ChaNFS/CHAN_FS/diskio.cpp
Compiling libs/ChaNFS/CHAN_FS/ff.cpp
Compiling libs/Network/Drivers/LPC17XX_Ethernet.cpp
Compiling libs/Network/uip/CallbackStream.cpp
Compiling libs/Network/uip/CommandQueue.cpp
Compiling libs/Network/uip/fifo.cpp
Compiling libs/Network/uip/Network.cpp
Compiling libs/USBDevice/USBDevice/USBDevice.cpp
Compiling libs/USBDevice/USBDevice/USBHAL_LPC11U.cpp
Compiling libs/USBDevice/USBDevice/USBHAL_LPC17.cpp
Compiling libs/USBDevice/USBMSD/SDCard.cpp
Compiling libs/USBDevice/USBMSD/USBMSD.cpp
Compiling libs/USBDevice/USBSerial/USBCDC.cpp
Compiling libs/USBDevice/USBSerial/USBSerial.cpp
Compiling modules/communication/utils/Gcode.cpp
Compiling modules/robot/arm_solutions/CartesianSolution.cpp
Compiling modules/robot/arm_solutions/CoreXZSolution.cpp
Compiling modules/robot/arm_solutions/ExperimentalDeltaSolution.cpp
Compiling modules/robot/arm_solutions/HBotSolution.cpp
Compiling modules/robot/arm_solutions/LinearDeltaSolution.cpp
Compiling modules/robot/arm_solutions/MorganSCARASolution.cpp
Compiling modules/robot/arm_solutions/RotaryDeltaSolution.cpp
Compiling modules/robot/arm_solutions/RotatableCartesianSolution.cpp
Compiling modules/tools/endstops/Endstops.cpp
Compiling modules/tools/extruder/Extruder.cpp
Compiling modules/tools/extruder/ExtruderMaker.cpp
Compiling modules/tools/filamentdetector/FilamentDetector.cpp
Compiling modules/tools/laser/Laser.cpp
Compiling modules/tools/rotarydeltacalibration/RotaryDeltaCalibration.cpp
Compiling modules/tools/scaracal/SCARAcal.cpp
Compiling modules/tools/switch/Switch.cpp
Compiling modules/tools/switch/SwitchPool.cpp
Compiling modules/tools/temperaturecontrol/AD8495.cpp
Compiling modules/tools/temperaturecontrol/max31855.cpp
Compiling modules/tools/temperaturecontrol/PID_Autotuner.cpp
Compiling modules/tools/temperaturecontrol/PT100_E3D.cpp
Compiling modules/tools/temperaturecontrol/TemperatureControl.cpp
Compiling modules/tools/temperaturecontrol/TemperatureControlPool.cpp
Compiling modules/tools/temperaturecontrol/Thermistor.cpp
Compiling modules/tools/temperatureswitch/TemperatureSwitch.cpp
Compiling modules/tools/toolmanager/ToolManager.cpp
Compiling modules/tools/zprobe/CartGridStrategy.cpp
Compiling modules/tools/zprobe/DeltaCalibrationStrategy.cpp
Compiling modules/tools/zprobe/DeltaGridStrategy.cpp
Compiling modules/tools/zprobe/Plane3D.cpp
Compiling modules/tools/zprobe/ThreePointStrategy.cpp
Compiling modules/tools/zprobe/ZProbe.cpp
Compiling modules/utils/configurator/Configurator.cpp
Compiling modules/utils/currentcontrol/CurrentControl.cpp
Compiling modules/utils/killbutton/KillButton.cpp
Compiling modules/utils/motordrivercontrol/MotorDriverControl.cpp
Compiling modules/utils/panel/Button.cpp
Compiling modules/utils/panel/Panel.cpp
Compiling modules/utils/panel/PanelScreen.cpp
Compiling modules/utils/player/Player.cpp
Compiling modules/utils/PlayLed/PlayLed.cpp
Compiling modules/utils/simpleshell/SimpleShell.cpp
Compiling libs/Network/uip/sftp/sftpd.cpp
Compiling libs/Network/uip/telnetd/shell.cpp
Compiling libs/Network/uip/telnetd/telnetd.cpp
Compiling modules/utils/panel/panels/LcdBase.cpp
Compiling modules/utils/panel/panels/ReprapDiscountGLCD.cpp
Compiling modules/utils/panel/panels/ST7565.cpp
Compiling modules/utils/panel/panels/UniversalAdapter.cpp
Compiling modules/utils/panel/screens/ControlScreen.cpp
Compiling modules/utils/panel/screens/CustomScreen.cpp
Compiling modules/utils/panel/screens/DynMenuScreen.cpp
Compiling modules/utils/panel/screens/FileScreen.cpp
Compiling modules/utils/panel/screens/ModifyValuesScreen.cpp
Compiling modules/utils/motordrivercontrol/drivers/DRV8711/drv8711.cpp
Compiling modules/utils/motordrivercontrol/drivers/TMC26X/TMC26X.cpp
Compiling modules/utils/panel/panels/rrdglcd/RrdGlcd.cpp
Compiling modules/utils/panel/screens/3dprinter/ExtruderScreen.cpp
Compiling modules/utils/panel/screens/3dprinter/JogScreen.cpp
Compiling modules/utils/panel/screens/3dprinter/MainMenuScreen.cpp
Compiling modules/utils/panel/screens/3dprinter/PrepareScreen.cpp
Compiling modules/utils/panel/screens/3dprinter/ProbeScreen.cpp
Compiling modules/utils/panel/screens/3dprinter/WatchScreen.cpp
Compiling ../build/mbed_custom.cpp
参照上面得到的参与编译的文件, 重新建立一个MCUXPresso C++工程, 包含整个原始实现, 在MCUXPresso中调整需要屏蔽的文件, 然后再编译试试.