FRDM-KE02Z
==========

The serial boot loader mode is forced by grounding pin J9-13 at reset.
The watchdog can be disabled by grounding pin J9-15 when the board is reset.

The application is linked to the start address 0x2800.

For further details of the serial loader and its modes of operation see the user's guide at
http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF



The following files are included:

- uTaskerSerialBoot_FRDM-KE02Z.bin - This is the serial boot loader, which can be programmed to the board using CW Flash utility of the USB-MSD loader
When the serial loader is running the green LED flashes at 5Hz and the serial download menu is seen at the board's virtual COM port connection (8400Baud N 8).

- uTasker_BM_V1.4.7_FRDM-KE02Z.srec is a test application that can be loaded via the serial interface at 38400Baud N 8.
When the application has been loaded it flashes the green LED at 2.5Hz. There is a command line menu on the UART allowing various tests to be performed (eg. accelerometer, controlling the RGB LED's colour via port control)



Note that the application size is limited to 22k. To enable larger applications the uTasker project can be built with adjusted settings.
Get full details, source code and support for your own project at www.uTasker.com.

See the boot loader in operation at http://youtu.be/XVlCisUmJMI

Good luck with your use of the flexibly serial loader!


HELP: when something goes wrong here are a few tips:
====================================================
- If building the serial loader yourself with CodeWarrior 10.x select the target uTaskerSerialLoader and ensure that the processor core M0 and
linker script file KE_64_4.ld is configured.

- In the project code make sure that #define FRDM_KE02Z is active in config.h and make any of your own changes here or in either app_hw_kinetis.h or Loader.h

- If you have loaded "uTaskerSerialBoot_FRDM-KE02Z.bin" but the board doesn't seem to run please check the following
-- It may be that there is some code already loaded to the board which means that the address 0x2800 is not deleted (0xffffffff).
This will cause the serial loader to try to start it and fail. Ground pin J9-13 at reset to force the boot loader to be sure - when the loader is running the green LED flashes at 2.5Hz

- If you load your own application make sure that it has its reset code linked to be at 0x2800. Interrupt vectors should be run from RAM or set to a location in the code (not left at 0x00000000)
- Also note that the serial loader starts the watchdog and retriggers it every 200ms (with 2s timeout). Your application should do this otherwise it will reset after 2s. The watchdog can also be disabled in the serial loader by setting 
#define WATCHDOG_DISABLE()   1
in app_hw_kinetis.h
To test a disabled watchdog ground pin J9-15 reset.




