Hello All,
Firstly I want to give my environment info:
Microcontroller used: K70 Controller with 1M Flash
IDE: Kinetis Design studio
RTOS: MQX
Not using USB/Ethernet/DMA/Nand flash etc etc
I am posting 2 inter-related problems here.
1) I am running out of flash for K70 controller. Do we have opportunity in BSP of K70 where we can tweak and we can reduce flash usage
2) I am trying changing in user_config.h file. But no help. I am also not able to clean BSP before building it. (But I can build it.) Getting following error when i try to clean it. complete log is also given.
Cannot run program "rm": Launching failed
Error: Program "rm" not found in PATH
Any help for optimizing/cleaning flash will be great.
22:53:13 **** Clean-only build of configuration debug for project bsp_wallController ****
rm -rf Peripheral_IO_Drivers/i2c/polled/i2c_pol.o Peripheral_IO_Drivers/i2c/polled/i2c_pol.d Peripheral_IO_Drivers/serial/int/serl_int_kuart.o Peripheral_IO_Drivers/serial/int/serl_int_kuart.d Peripheral_IO_Drivers/enet/enrecv.o Peripheral_IO_Drivers/i2c/i2c_mk70.o Peripheral_IO_Drivers/i2c/i2c_mk70.d Peripheral_IO_Drivers/dma/edma.o Peripheral_IO_Drivers/enet/enrecv.d BSP_Files/init_i2c.o Peripheral_IO_Drivers/enet/enopen.o Peripheral_IO_Drivers/usb/usb_mk70f.d BSP_Files/init_i2c.d Peripheral_IO_Drivers/dma/edma.d Peripheral_IO_Drivers/hwtimer/hwtimer_systick.o Peripheral_IO_Drivers/enet/enaddr.o Peripheral_IO_Drivers/hwtimer/hwtimer_pit.d Peripheral_IO_Drivers/enet/enaddr.d Peripheral_IO_Drivers/hwtimer/hwtimer_pit.o Peripheral_IO_Drivers/enet/enclose.o Peripheral_IO_Drivers/adc/adc_mk70.o Peripheral_IO_Drivers/adc/adc_mk70.d Peripheral_IO_Drivers/pccard/pccardflexbus.d Peripheral_IO_Drivers/pccard/pccardflexbus.o BSP_Files/init_bsp.d Generic_IO_Drivers/cm/cm.d BSP_Files/init_bsp.o Peripheral_IO_Drivers/lwgpio/lwgpio.d Generic_IO_Drivers/cm/cm.o Peripheral_IO_Drivers/flexcan/fsl_flexcan_hal.d Peripheral_IO_Drivers/enet/macnet_mk70.o Peripheral_IO_Drivers/dma/edma_kinetisf.d Peripheral_IO_Drivers/enet/macnet/macnet_rejoin.d Peripheral_IO_Drivers/flexcan/fsl_flexcan_driver.d Peripheral_IO_Drivers/hwtimer/hwtimer_kinetis.d Peripheral_IO_Drivers/serial/polled/serl_pol_kuart.d Peripheral_IO_Drivers/enet/macnet/macnet_rejoin.o Peripheral_IO_Drivers/spi/spi_dspi_dma.o Peripheral_IO_Drivers/flexcan/fsl_flexcan_hal.o Peripheral_IO_Drivers/dma/edma_kinetisf.o Peripheral_IO_Drivers/serial/polled/serl_pol_kuart.o Peripheral_IO_Drivers/enet/ensend.o Peripheral_IO_Drivers/dma/dma.o Peripheral_IO_Drivers/lwadc/lwadc_k70.o Generic_IO_Drivers/hmi/tss/TSS_SystemSetupData.o Peripheral_IO_Drivers/spi/spi_dspi.d Peripheral_IO_Drivers/spi/spi_dspi.o Peripheral_IO_Drivers/lwadc/lwadc_k70.d Peripheral_IO_Drivers/hwtimer/hwtimer_systick.d Peripheral_IO_Drivers/lwgpio/lwgpio.o Peripheral_IO_Drivers/dma/dma.d Peripheral_IO_Drivers/flexcan/fsl_flexcan_driver.o Peripheral_IO_Drivers/flashx/freescale/flash_ftfe.o Generic_IO_Drivers/debug/iodebug.d Peripheral_IO_Drivers/esdhc/esdhc_mk70.o Generic_IO_Drivers/hmi/tss/TSS_SystemSetupData.d Peripheral_IO_Drivers/flashx/freescale/flash_ftfe.d Peripheral_IO_Drivers/enet/ensend.d Peripheral_IO_Drivers/enet/enerr.o Peripheral_IO_Drivers/enet/enopen.d Peripheral_IO_Drivers/hwtimer/hwtimer_kinetis.o Peripheral_IO_Drivers/enet/enerr.d Peripheral_IO_Drivers/esdhc/esdhc_mk70.d Generic_IO_Drivers/debug/iodebug.o Peripheral_IO_Drivers/usb/usb_mk70f_device.d Peripheral_IO_Drivers/usb/usb_mk70f_device.o Peripheral_IO_Drivers/lwgpio/kgpio/lwgpio_kgpio.d Peripheral_IO_Drivers/lwgpio/kgpio/lwgpio_kgpio.o Peripheral_IO_Drivers/enet/macnet/macnet_receive.o Peripheral_IO_Drivers/flashx/flashx.d Peripheral_IO_Drivers/enet/macnet/macnet_receive.d BSP_Files/init_sci.o Peripheral_IO_Drivers/tchres/tchres.d Peripheral_IO_Drivers/hwtimer/hwtimer_lpt.d Peripheral_IO_Drivers/enet/enutil.o BSP_Files/init_sci.d Peripheral_IO_Drivers/enet/enutil.d Peripheral_IO_Drivers/gpio/knxx/io_gpio_kgpio.o Peripheral_IO_Drivers/gpio/knxx/io_gpio_kgpio.d Peripheral_IO_Drivers/flashx/flashx.o Peripheral_IO_Drivers/adc/kadc/adt_kpdb.o Peripheral_IO_Drivers/enet/enjoin.o Peripheral_IO_Drivers/lwadc/kadc/lwadc_kadc.d Peripheral_IO_Drivers/pcflash/apcflash.d Peripheral_IO_Drivers/adc/kadc/adt_kpdb.d BSP_Files/mqx_init.d Peripheral_IO_Drivers/lwadc/kadc/lwadc_kadc.o Peripheral_IO_Drivers/pcflash/apcflash.o BSP_Files/init_dma.d BSP_Files/vectors.d BSP_Files/vectors.o Peripheral_IO_Drivers/enet/enjoin.d BSP_Files/init_dma.o Peripheral_IO_Drivers/serial/int/serl_int.o BSP_Files/init_gpio.o Peripheral_IO_Drivers/serial/int/serl_int.d Generic_IO_Drivers/hmi/btnled.d BSP_Files/init_gpio.d Peripheral_IO_Drivers/enet/eninit.d Generic_IO_Drivers/debug/iodebug_asm.o BSP_Files/mqx_main.d Generic_IO_Drivers/hmi/btnled.o Peripheral_IO_Drivers/enet/eninit.o Generic_IO_Drivers/debug/iodebug_asm.d BSP_Files/mqx_init.o BSP_Files/mqx_main.o BSP_Files/init_hmi.d Peripheral_IO_Drivers/serial/dma/serl_dma_kuart.o Generic_IO_Drivers/hmi/hmi_tss_provider.d Peripheral_IO_Drivers/serial/dma/serl_dma_kuart.d Generic_IO_Drivers/hmi/hmi_tss_provider.o BSP_Files/init_spi.d Peripheral_IO_Drivers/i2c/i2c_pol_ki2c.d BSP_Files/init_hmi.o Generic_IO_Drivers/io_mem/io_mem.d Generic_IO_Drivers/io_mem/io_mem.o Peripheral_IO_Drivers/tchres/tchres.o Peripheral_IO_Drivers/hwtimer/hwtimer_lpt.o Peripheral_IO_Drivers/enet/enmediactl.d Generic_IO_Drivers/hmi/hmi_lwgpio_provider.d Peripheral_IO_Drivers/enet/enmediactl.o BSP_Files/init_spi.o Peripheral_IO_Drivers/spi/spi_mk70.d Peripheral_IO_Drivers/enet/enstop.d Peripheral_IO_Drivers/i2c/i2c_pol_ki2c.o Peripheral_IO_Drivers/spi/spi_mk70.o Generic_IO_Drivers/hmi/hmi_lwgpio_provider.o Peripheral_IO_Drivers/enet/enstop.o Peripheral_IO_Drivers/enet/macnet/macnet_1588.o Peripheral_IO_Drivers/sai/sai_mk70.d Peripheral_IO_Drivers/enet/phy/phy_ksz8041.d Peripheral_IO_Drivers/sai/sai_mk70.o Generic_IO_Drivers/hmi/tss/TSS_Sensor.d Generic_IO_Drivers/hmi/tss/TSS_Sensor.o Generic_IO_Drivers/lpm/lpm.d Peripheral_IO_Drivers/esdhc/esdhc.d Peripheral_IO_Drivers/esdhc/esdhc.o BSP_Files/init_enet.d Peripheral_IO_Drivers/enet/phy/phy_ksz8041.o Peripheral_IO_Drivers/spi/spi.d BSP_Files/init_iodebug.d BSP_Files/init_cfcard.o BSP_Files/init_iodebug.o Generic_IO_Drivers/hmi/tss/TSS_SensorTSIL.o BSP_Files/init_cfcard.d Peripheral_IO_Drivers/nandflash/nandflash.d Generic_IO_Drivers/lpm/lpm.o Generic_IO_Drivers/hmi/tss/TSS_SensorTSIL.d Peripheral_IO_Drivers/nandflash/nandflash.o Peripheral_IO_Drivers/enet/macnet/macnet_mii.o Peripheral_IO_Drivers/hwtimer/hwtimer.d Generic_IO_Drivers/hmi/tss/TSS_Freemaster.d Peripheral_IO_Drivers/gpio/io_gpio.o BSP_Files/init_sai.o Peripheral_IO_Drivers/enet/macnet/macnet_stop.o Peripheral_IO_Drivers/hwtimer/hwtimer.o BSP_Files/init_nandflash.o BSP_Files/init_sai.d Peripheral_IO_Drivers/spi/spi.o Peripheral_IO_Drivers/enet/macnet/macnet_mii.d ../../../../../lib/wallController.kds/debug/bsp/bsp.a Peripheral_IO_Drivers/gpio/io_gpio.d Generic_IO_Drivers/hmi/tss/TSS_SensorTSI.o Generic_IO_Drivers/hmi/tss/TSS_SensorTSI.d BSP_Files/init_nandflash.d Peripheral_IO_Drivers/enet/macnet/macnet_stop.d Peripheral_IO_Drivers/adc/adc.d Generic_IO_Drivers/hmi/tss/TSS_Freemaster.o Peripheral_IO_Drivers/adc/adc.o Generic_IO_Drivers/pcb/io_pcb.d Generic_IO_Drivers/pcb/pcb_mqxa.d Generic_IO_Drivers/hmi/hmi_client.o Peripheral_IO_Drivers/serial/polled/serl_pol.d BSP_Files/init_flashx.o Generic_IO_Drivers/hmi/hmi_client.d Peripheral_IO_Drivers/serial/polled/serl_pol.o Peripheral_IO_Drivers/enet/macnet/macnet_debug.d BSP_Files/init_flashx.d Peripheral_IO_Drivers/enet/macnet/macnet_debug.o Peripheral_IO_Drivers/enet/macnet/macnet_util.d Generic_IO_Drivers/io_null/io_null.o BSP_Files/init_adc.o BSP_Files/init_lwadc.o BSP_Files/init_adc.d Peripheral_IO_Drivers/enet/enleave.o Generic_IO_Drivers/io_null/io_null.d BSP_Files/init_lwadc.d Peripheral_IO_Drivers/timer/timer_kinetis.d Generic_IO_Drivers/pcb/pcb_mqxa.o Generic_IO_Drivers/tfs/tfs.o BSP_Files/init_esdhc.o Peripheral_IO_Drivers/timer/timer_kinetis.o Peripheral_IO_Drivers/flexcan/fsl_flexcan_int.d BSP_Files/init_esdhc.d Peripheral_IO_Drivers/enet/macnet/macnet_util.o Peripheral_IO_Drivers/enet/macnet/macnet_1588.d Generic_IO_Drivers/tfs/tfs.d BSP_Files/init_hw.d Peripheral_IO_Drivers/nandflash/MT29F2G16.o Peripheral_IO_Drivers/usb/usb_install.o Peripheral_IO_Drivers/sai/dma/sai_dma.o BSP_Files/init_hw.o Peripheral_IO_Drivers/enet/macnet/macnet_send.o Peripheral_IO_Drivers/nandflash/nfc_dma.d Peripheral_IO_Drivers/enet/macnet/macnet_join.d Peripheral_IO_Drivers/usb/usb_install.d Peripheral_IO_Drivers/nandflash/nfc_dma.o Peripheral_IO_Drivers/flexcan/fsl_flexcan_int.o Peripheral_IO_Drivers/enet/macnet/macnet_join.o Generic_IO_Drivers/hmi/tss/TSS_SensorGPIO.d Generic_IO_Drivers/hmi/tss/TSS_SensorGPIO.o BSP_Files/bsp_cm.d Peripheral_IO_Drivers/enet/macnet/macnet_init.d Peripheral_IO_Drivers/spi/spi_dspi_common.o Peripheral_IO_Drivers/rtc/krtc.o Peripheral_IO_Drivers/enet/enleave.d Peripheral_IO_Drivers/rtc/krtc.d Peripheral_IO_Drivers/nandflash/MT29F2G16.d Peripheral_IO_Drivers/enet/macnet/macnet_send.d Peripheral_IO_Drivers/enet/macnet/macnet_init.o BSP_Files/bsp_cm.o Peripheral_IO_Drivers/timer/timer_qpit.d Peripheral_IO_Drivers/timer/timer_qpit.o Peripheral_IO_Drivers/sdcard/sdcard_spi/sdcard_spi.d Peripheral_IO_Drivers/enet/macnet_mk70.d Peripheral_IO_Drivers/spi/spi_dspi_dma.d Peripheral_IO_Drivers/serial/io_sinit.d Peripheral_IO_Drivers/sdcard/sdcard_spi/sdcard_spi.o Peripheral_IO_Drivers/i2c/int/i2c_int.o Generic_IO_Drivers/pcb/io_pcb.o Peripheral_IO_Drivers/serial/io_sinit.o BSP_Files/init_sdcard.o Peripheral_IO_Drivers/i2c/int/i2c_int.d Peripheral_IO_Drivers/sai/dma/sai_dma.d BSP_Files/init_sdcard.d Peripheral_IO_Drivers/sdcard/sdcard_esdhc/sdcard_esdhc.o Peripheral_IO_Drivers/nandflash/nfc_k70f120m.o Generic_IO_Drivers/pcb/io_pcb2.o Generic_IO_Drivers/pcb/io_pcb2.d BSP_Files/init_usb.d Peripheral_IO_Drivers/nandflash/nfc_k70f120m.d Peripheral_IO_Drivers/i2c/i2c_int_ki2c_legacy.o Peripheral_IO_Drivers/sdcard/sdcard_esdhc/sdcard_esdhc.d Peripheral_IO_Drivers/enet/enclose.d Peripheral_IO_Drivers/flashx/flash_mk70.o Peripheral_IO_Drivers/adc/kadc/adc_kadc.d Generic_IO_Drivers/lpm/lpm_smc.d Peripheral_IO_Drivers/sdcard/sdcard.o Peripheral_IO_Drivers/adc/kadc/adc_kadc.o Peripheral_IO_Drivers/nandflash/nfc.o Peripheral_IO_Drivers/nandflash/nfc.d Generic_IO_Drivers/lpm/lpm_smc.o Peripheral_IO_Drivers/enet/enstat.d Peripheral_IO_Drivers/sdcard/sdcard.d Peripheral_IO_Drivers/sai/dma/sai_dma_ksai.o Generic_IO_Drivers/iopipe/io_pipe.o Peripheral_IO_Drivers/usb/usb_mk70f.o Peripheral_IO_Drivers/enet/enstat.o Peripheral_IO_Drivers/spi/spi_dspi_common.d Peripheral_IO_Drivers/sai/dma/sai_dma_ksai.d Generic_IO_Drivers/iopipe/io_pipe.d BSP_Files/init_lpm.o Peripheral_IO_Drivers/serial/serl_mk70.o BSP_Files/init_lpm.d BSP_Files/init_enet.o Peripheral_IO_Drivers/flashx/flash_mk70.d Peripheral_IO_Drivers/serial/serl_mk70.d Peripheral_IO_Drivers/i2c/i2c_int_ki2c_legacy.d BSP_Files/init_usb.o
Cannot run program "rm": Launching failed
Error: Program "rm" not found in PATH
PATH=["C:\Freescale\KDS_v3\eclipse\..\bin;C:\Freescale\KDS_v3\eclipse\..\toolchain\bin;C:/Freescale/KDS_v3/eclipse//features/com.somniumtech.jre.win32.win32.x86_1.7.0.76/jre/bin/client;C:/Freescale/KDS_v3/eclipse//features/com.somniumtech.jre.win32.win32.x86_1.7.0.76/jre/bin;C:/Freescale/KDS_v3/eclipse//features/com.somniumtech.jre.win32.win32.x86_1.7.0.76/jre/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\TortoiseSVN\bin;c:\MinGW\bin;C:\Users\ryork\AppData\Local\Microsoft\WindowsApps;;C:\Freescale\KDS_v3\eclipse"]
22:53:14 Build Finished (took 85ms)
22:53:14 **** Clean-only build of configuration debug for project bsp_wallController ****
22:53:14 Build Finished (took 299ms)
Looking forward for some response here
"rm" is the UNIX/Linux command rename/remove.
For some reason the standard tools are missing from your path, which should be part of the IDE.
Someone with IDE knowledge will have to answer why they are not found.
Any suggestion to clear flash doing some modification on BSP?