MK22F51212: Bootloader using LPUART

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

MK22F51212: Bootloader using LPUART

722 Views
s_l_
Contributor II


Hi guys,

just read the "Kinetis Bootloader v1.2.0 Reference Manual" and was exploring the corresponding software package.

Now I want to implement a bootloader on my device but I have several questions:

- As my application uses LPUART for communication, I want to use the LPUART for bootloader communication too. In the sources I only found that the SCUARTs are used. Are there already sources, where the LPUART was implemented?

- I want to have a flash-resident bootloader. For that I have to allocate some memory for the bootloader exclusively. I guess thats already done within the linker file of the bootloader project. Can I just copy that linker file to my application and everything's fine?

Thanks for your help in advance!

0 Kudos
Reply
1 Reply

533 Views
mjbcswitzerland
Specialist V

Hi

See http://www.utasker.com/kinetis/FRDM-K22F.html

and http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

Supports UART and/or LPUART - just set

#define LOADER_UART           3 to use the K22's LPUART (UART counting described in http://www.utasker.com/kinetis/UART_LPUART.html)

Works with KDS, CW, IAR, Keil, Rowley Crossworks, Atollic, Green Hills, Coo Cox, GCC and VS.

Kboot UART mode is about 7k (depending on compiler) and supports any available UART/LPUARTs in interrupt or DMA driven modes. Fully set up so you can have a complete, proven solution operating and tested by this evening if required.

See http://www.utasker.com/kinetis.html for reference binaries available for most boards.

This would avoid any need for extra development/porting/optimisation for your project and can be used in the future on almost any Kinetis parts without any extra effort (including mixing with SD card, memory-stick, USB-MSD loaders etc.).

Regards

Mark

0 Kudos
Reply