Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - rjordan

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / USB-MSD with K20FX512
« on: January 04, 2016, 07:43:06 PM »
I’m trying to get the USB-MSD device serial loader working on a custom board with a MK20FX512VLQ12 processor with an 8 MHz external clock.  I’m having a problem getting the serial loader to operate.
I read through the ?Tasker – Serial Loader User’s Guide and made the following changes.

In config.h:
Defined USB_INTERFACE and USB_MSD_DEVICE_LOADER
Added #define K20F120M to KINETIS_K20

In app_hw_kinetis.h added:
#define EXTERNAL_CLOCK  8000000
#define _EXTERNAL_CLOCK  EXTERNAL_CLOCK
#define CLOCK_DIV  2
#define CLOCK_MUL 30
#define FLEX_CLOCK_DIVIDE 3
#define FLASH_CLOCK_DIVIDE 5
#define USB_CLOCK_SOURCE_MCGPLL0CLK
#define USB_CLOCK_GENERATED_INTERNALLY
and changed PIN_COUNT and PACKAGE_TYPE to match processor

After building and flashing the software on the processor, plugging the USB into a PC, no new mass storage device is displayed.  I figure that I have missed something with the clock settings.  Has anyone had any experience setting up the USB-MSD serial loader on an MK20FX512?

Thank you for your time.

Pages: [1]