AnsweredAssumed Answered

TWR-K21F120M USB host with FAT32 IAR env

Question asked by Christer Johansson on Nov 19, 2015
Latest reply on Feb 16, 2016 by Christer Johansson

Hello!
I am new to this community and wat to as a couple of questions regarding the readymade sw for TWR-K21F120M.
I don't know if this is the place to put this question, but feel free to guide me to the rignt place.

 

I am using IAR environment and want to experiment with USB host for memory stick inclusing FAT32 before the real hardware is ready.
I downloaded Freescale code for MQX 4.2 and found interesting project in folder
Freescale_MQX_4_2\usb_v2\example\host\msd\msd_fatfs\mqx\iar\host_msd_fatfs_twrk22f120m

 

First of all it lacks the paths needed to be able to compile.

I tried to add paths myself byt failed to compile eventually.

I asked tech support in IAR to check it and they gave me paths but they say it still won't link correctly.

 

Have anyone used this project and got it running?

Best regards

Christer Johansson

Sweden

 

IAR path settings fron tech support:

$PROJ_DIR$/../../../../../../../usb_core/host/include/twrk22f120m

$PROJ_DIR$/../../../../../../../usb_core/host/include

$PROJ_DIR$/../../../../../../../usb_core/include

$PROJ_DIR$/../../../../../../../adapter/sources

$PROJ_DIR$/../../../../../../../adapter/sources/mqx

$PROJ_DIR$/../../../../../../../../mqx/source/include

$PROJ_DIR$/../../../../../../../../config/twrk22f120m

$PROJ_DIR$/../../../../../../../../config/common

$PROJ_DIR$/../../../../../../../../mqx/source/psp/cortex_m

$PROJ_DIR$/../../../../../../../../mqx/source/psp/cortex_m/compiler/iar

$PROJ_DIR$/../../../../../../../../mqx/source/psp/cortex_m/cpu

$PROJ_DIR$/../../../../../../../../mqx/source/bsp/twrk22f120m

$PROJ_DIR$/../../../../../../../../mqx/source/io/io_mem

$PROJ_DIR$/../../../../../../../../mqx/source/io/io_null

$PROJ_DIR$/../../../../../../../../mqx/source/io/cm

$PROJ_DIR$/../../../../../../../../mqx/source/io/lpm

$PROJ_DIR$/../../../../../../../../mqx/source/io/hwtimer

$PROJ_DIR$/../../../../../../../../mqx/source/io/flashx

$PROJ_DIR$/../../../../../../../../mqx/source/io/flashx/freescale

$PROJ_DIR$/../../../../../../../../mqx/source/io/adc/kadc

$PROJ_DIR$/../../../../../../../../mqx/source/io/adc

$PROJ_DIR$/../../../../../../../../mqx/source/io/lwadc

$PROJ_DIR$/../../../../../../../../mqx/source/io/rtc

$PROJ_DIR$/../../../../../../../../mqx/source/io/serial

$PROJ_DIR$/../../../../../../../../mqx/source/io/dma

$PROJ_DIR$/../../../../../../../../mqx/source/io/i2c

$PROJ_DIR$/../../../../../../../../mqx/source/io/spi

$PROJ_DIR$/../../../../../../../../mqx/source/io/lwgpio

$PROJ_DIR$/../../../../../../../../mqx/source/io/gpio

$PROJ_DIR$/../../../../../../../../mqx/source/io/gpio/kgpio

$PROJ_DIR$/../../../../../../../../mqx/source/io/debug

$PROJ_DIR$/../../../../../../../../mqx/source/io/sai

$PROJ_DIR$/../../../../../../../../mqx/source/io/pccard

$PROJ_DIR$/../../../../../../../../mqx/source/io/pcflash

$PROJ_DIR$/../../../../../../../../mqx/source/io/sdcard

$PROJ_DIR$/../../../../../../../../mqx/source/io/sdcard/sdcard_spi

$PROJ_DIR$/../../../../../../../../mqx/source/io/usb

$PROJ_DIR$/../../../../../../../../mqx/source/io/timer

$PROJ_DIR$/../../../../../../../../mqx/source/io/rnga

$PROJ_DIR$/../../../../../../../../mqx/source/io/enet

$PROJ_DIR$/../../../../../../../../mfs/source/include

$PROJ_DIR$/../../../../../../../usb_core/host/sources/classes/hub

$PROJ_DIR$/../../../../../../../usb_core/host/sources/classes/msd

$PROJ_DIR$/../../../../../../../../shell/source/include

$PROJ_DIR$/../../mfs

$PROJ_DIR$/../../

Outcomes