AN4370 or AN4379 on MK22

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AN4370 or AN4379 on MK22

Jump to solution
1,308 Views
joseph0577
Contributor III

I need a USB bootloader for the MK22FX512VMC12 chip. I'm very interested in either the AN4370 or AN4379 software. I was wondering which would be easier to port to the K22? Looking at the directory structure, they both have K20 versions, but the AN4379 does state that the device to run the bootloader must be supported by the USB stack with the MSD class, as well as contain a flash driver. Do these exist (or are easily portable to) the K22?

Labels (2)
Tags (1)
0 Kudos
1 Solution
691 Views
mjbcswitzerland
Specialist V

Hi

I would suggest that the AN4370 is legacy, as is the AN4764, which is another HID based one that you didn't mention but probably both have no support any more. AN4370 does the very popular USB-MSD loading but is potentially not compatible with Win8.1. You certainly should consider KBOOT if you prefer a USB-HID based loader since that is the one that Freescale looks to have moved on to for USB-HID (and generally).

The AN4370 and KBOOT methods are included in the uTasker serial boot loader and have been ported to the K22 (including crystal-less mode). It builds with CW, KDS, IAR, Keil, Atollic, Crossworks, CooCox or standalone GCC.

The K22 port is not in the present release but you can contact me in case you would like a binary to test on your board, or for the updated, pre-release code..

Regards

Mark

µTasker Kinetis support

View solution in original post

0 Kudos
4 Replies
692 Views
mjbcswitzerland
Specialist V

Hi

I would suggest that the AN4370 is legacy, as is the AN4764, which is another HID based one that you didn't mention but probably both have no support any more. AN4370 does the very popular USB-MSD loading but is potentially not compatible with Win8.1. You certainly should consider KBOOT if you prefer a USB-HID based loader since that is the one that Freescale looks to have moved on to for USB-HID (and generally).

The AN4370 and KBOOT methods are included in the uTasker serial boot loader and have been ported to the K22 (including crystal-less mode). It builds with CW, KDS, IAR, Keil, Atollic, Crossworks, CooCox or standalone GCC.

The K22 port is not in the present release but you can contact me in case you would like a binary to test on your board, or for the updated, pre-release code..

Regards

Mark

µTasker Kinetis support

0 Kudos
691 Views
joseph0577
Contributor III

Mark,

   I would appreciate a copy of the pre-release code. You can email it to me at joseph.gray@hughes.com.

   A quick question. Will using uTasker in the bootloader force the user application to use uTasker as well? I currently have most of the code for the user application written, and it is a barebones PE project in KDS. I assume that the binary and/or S19 file from this project would be compatible with the uTasker USB bootloader? Thanks!

EDIT: One more thing. This is a commercial project. What are the licensing restrictions/requirements for using the uTasker bootloader?

Joseph

0 Kudos
691 Views
mjbcswitzerland
Specialist V

Joseph

The boot loader can be used with any application - it simply has to be configured to be linked to a corresponding address (and its interrupt vectors set to either SRAM or the vector base table pointer set to correctly point to them in their (new) loaction in Flash).

The binary is usually used directly (no advantage of S19 for USB loading).

Commerical licensing conditions are here:

http://www.utasker.com/Licensing/License.txt

The code is professionally supported in return for a fee (either project license or full license for unlimited Kinetis projects - royalty free in both cases) with personal support for 6 or 12 months.

You can download the Kinetis V1.4.7 package (including USB-MSD serial loader and KBOOT 1.0.1 mode option) for a variety of processors [KINETIS Project Code]. I will then send you some K22 upgrade files. The operation has been checked on the K22 Freedom and Tower boards but there is a difference to the processor on them to the one that you use since the ones on the Freescale boards use long word programming (they have a 2k Flash granularity) whereas your device uses phrase programming (4k Flash granularity). Configuring for an K22 FX parts should however automatically adjust itself accordingly.

Regards

Mark

0 Kudos
691 Views
mjbcswitzerland
Specialist V

Hi

As reference I have attached binaries of USB-MSD boot loaders for the FRDM-K22 and TWR-K22F120M boards, including two reference applications that can be loaded.

The board appears as the well-know upload disk and the binary can be dragged-and-dropped onto it.

To force the boot loader mode a switch on the board can be held down at reset (SW1 on TWR-K22F120M and SW2 on the FRDM-K22F).

Regards

Mark

0 Kudos