Hello,
I have problems with USB device application on MK20 board, could you tell me how
to port the application code from MK40 which exists in USB Stack v4.1.1 to MK20?
What I have done is as follows, but it doesn't work.
Host USB: PC with Windows 7 OS
Slave USB: MK20
IDE: IAR Embedded Workbench for ARM V6.60.1.5104
Based Project: Freescale USB Stack v4.1.1/Source/Device/app_composite/msd_and_cdc/jar_ew/kinetis_40/USB_MSD_CDC.ewp
I changed very little from based projected for my board, which is:
1. Changed Processor variant setting to MK20DN512Zxxx10 which is used on my board in General Options of IAR.
2. Changed #include <MK40N512VMD100.h> to #include <MK20N512VMD100.h> in derivative.h file
3. Removed GPIO_Init().
4. Removed #ifdef MCU_MK40N512VMD100 pair in pll_init() function in main_kinetis.c
5. Modified #if (defined MCU_MK40N512VMD100) || (defined MCU_MK53N512CMD100) || (defined MCU_MK60N512VMD100) || (defined MCU_MK70F12)
to #if (defined MCU_MK40N512VMD100) || (defined MCU_MK53N512CMD100) || (defined MCU_MK60N512VMD100) || (defined MCU_MK70F12)
|| (defined MCU_MK20N512VMD100) in usb_devapi.h file
6. kept the same Linker configuration file, which is MK40N512VMD100_Flash.icf
What else needed to do?
Need your help. Thank you!