HI Nitin
I don't use the FSL 1.0.2 code but instead use the uTasker serial loader since it supports the KBOOT USB-HID and UART modes on all KL and K devices, and also allows building with all typical compiler chains (i.e. IAR, Keil, CW10.x, KDS, Crossworks, Atollic, CooCox, GCC standalone and VisualStudio simulation). It is also easier to maintain and the simulation allows full testing and debugging without HW/embedded IDE complications. It allows mixing KBOOT modes with others, such as SD card loading or USB-MSD, and produces smaller code. Therefore I can't help with and FSL 1.0.2 coding problems - if you have it runnin in teh debugger you can probabyl see better why it is not behaving as expected.
The UART KBOOT support is not actually included in the present uTasker release: of today (1.4.7 KINETIS Project Code) but will be in the next (1.4.8).
However I have attached the loader file that adds the KBOOT UART mode so that it can be used already if anyone is interested (just replace the original one with it).
To select the KBOOT UART mode (rather than SREC UART mode) simply add
#define KBOOT_LOADER to the configuration file (config.h)
In the same file select the board to be built for, eg. FRDM_K64F and in app_hw_kinetis.h select UART details.
This board will use UART0 by default but any UART can be selected by modifying
accordingly.
The exact UART pin mapping can be controlled by setting the defines accordingly ):
| | #define UART0_A_LOW | // alternative UART0 pin mapping |
| | //#define UART0_ON_B | // alternative UART0 pin mapping |
| | //#define UART0_ON_D | // alternative UART0 pin mapping |
| | //#define UART1_ON_C | // alternative UART1 pin mapping (default is on port E) |
| | //#define UART2_ON_E | // alternative UART2 pin mapping on port E (default is on port D) |
| | //#define UART2_ON_F | // alternative UART2 pin mapping on port F (default is on port D) |
| | //#define UART3_ON_B | // alternative UART3 pin mapping |
| | //#define UART3_ON_F | // alternative UART2 pin mapping on port F |
| | //#define UART3_ON_C | // alternative UART3 pin mapping |
| | //#define UART4_ON_C | // alternative UART4 pin mapping |
| | //#define UART5_ON_D | // alternative UART5 pin mapping |
Regards
Mark