Kinetis Bootloader porting to MKL16Z64VFM4

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

Kinetis Bootloader porting to MKL16Z64VFM4

Jump to solution
1,686 Views
rutvijtrivedi
Contributor III

Hello all,

I am working with KBOOT and i want to port Kinetis Bootloader to MKL16Z64VFM4.

Now my question is how to port KBOOT to MKL16Z64VFM4 ?

It would be good if any steps are there or any one have guide for the same .

I have used the same kinities bootloader with FRDM-KL25Z and its working through IAR but it didn't need to be port.

Any help in this case would be great appreciable.

Please let me know if you require any more details.

Thank you !

Regards,

Rutvij Trivedi.

0 Kudos
1 Solution
1,077 Views
mjbcswitzerland
Specialist V

Hi

If you have a KL25 with 64k Flash you can use the KL25 Kboot SW for 128k part by adapting its linker script to suit the alternative memory (Flash/RAM) sizes.

Regards

Mark

Kinetis: µTasker Kinetis support

KL26: µTasker Kinetis FRDM-KL26Z support  / µTasker Kinetis Teensy LC support

For the complete "out-of-the-box" Kinetis experience and faster time to market

View solution in original post

0 Kudos
13 Replies
1,077 Views
sachinjoy
Contributor I

Hi,

I am using MKL16z64vlh4 and i need to do a firmware upgrade through one of  lpuart , so were do i start , you have any code for it ?

0 Kudos
1,077 Views
mjbcswitzerland
Specialist V

Hi

Note that if you prefer not to invest time in porting KBOOT, most boards and processors are supported in the uTasker Serial Loader, which included KBOOT compatibility on UART and USB. It builds from all popular IDEs (including IAR) and, on the K10s, also support SREC, SD card or the Developer's Loader protocols.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

K60: µTasker Kinetis TWR-K60N512 support  / µTasker Kinetis TWR-K60D100M support  / µTasker Kinetis TWR-K60F120M support

Serial Bootloader (Ethernet, USB, MSD, KBOOT, AN2295, SREC, SD-card): KBOOT Loader Compatibilty and extra features  / http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF 

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
1,077 Views
rutvijtrivedi
Contributor III

Hi Mark,

Thank you very much for your quick response and i followed your guidance and took a quick look at uTasker (as i m not aware of uTasker )but it seemed working with UART (serial loading) and i have to use SPI for loading application so is it possible to use uTasker with SPI support (by some how configuring ) ? Or porting is the only choice as i have configured KBOOT for working with SPI (master) for FRDM KL25Z (not for MKL16Z64VFM4).

0 Kudos
1,077 Views
mjbcswitzerland
Specialist V

Hi

I didn't realise you needed SPI interface support. How do you connect the KBOOT PC via SPI (BusPal?)?

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

K60: µTasker Kinetis TWR-K60N512 support  / µTasker Kinetis TWR-K60D100M support  / µTasker Kinetis TWR-K60F120M support

Serial Bootloader (Ethernet, USB, MSD, KBOOT, AN2295, SREC, SD-card): KBOOT Loader Compatibilty and extra features  / http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF 

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
1,077 Views
rutvijtrivedi
Contributor III

Hi Mark,

I got your point but we are not going to use PC here, we are using a slave device (EEPROM) from which we are planing to get an application and hence we need SPI protocol support to do so.

I hope i have cleared your query.

So can you please help me here. ?

Thank You !

Regards,

Rutvij Trivedi.

0 Kudos
1,077 Views
mjbcswitzerland
Specialist V

Hi Rutvij

I have understood that KBOOT supports the same protocol as UART between a PC host with SPI HW extension (BusPal). If you are reading from an EEPROM (or SPI Flash) I don't think that this has anything to do with KBOOT (??)

The uTasker "Bare-Minimum" Boot loader contains support for loading applications from SPI based memory - see http://www.utasker.com/docs/uTasker/uTasker_BM_Loader.pdf  whereby the code can be encrypted if required.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

K60: µTasker Kinetis TWR-K60N512 support  / µTasker Kinetis TWR-K60D100M support  / µTasker Kinetis TWR-K60F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
1,077 Views
rutvijtrivedi
Contributor III

Hi Mark,

I followed your suggestion and took a quick look again and got µTasker Kinetis support ​page ​and in right side of the page i found "out of the box support" and unfortunately i didn't find support for KL1X series for uTasker it self, as i found MKL16Z64VFM4 MCU is being used in KL1X series , so if i go to the uTasker "Bare-Minimum" Boot loader would it be possible to use it with KL1X series (MKL16Z64VFM4) and if yes then what should be my initial step to make it work with MKL16Z64VFM4?

And is there any possible way to port KBOOT to the MKL16Z64VFM4 MCU ? The reason why i am asking this every time is i have already worked with KBOOT and i am bit familiar with this.

Regards,

Rutvij Trivedi.

0 Kudos
1,077 Views
mjbcswitzerland
Specialist V

Hello Rutvij

The KL16 is a KL26 without USB. Therefore KL16 is supported in the KL26 (FRDM-KL26Z) configuration by simply not using USB.

When you used KBOOT together with the FRDM-KL26Z which interface did you use? As I wrote before I though that SPI was using the same protocol as UART and so I don't yet understand how loading code from an SPI EEPROM is supported by KBOOT.

Concerning porting - of course everything can be ported, it is just a question of the development effort (and associated costs). KBOOT extensions in the uTasker serial loader are quite simple since all operation can be simulated. If a basic KBOOT protocol script can be defined for the interface in question the work may take a couple of hours for all IDEs and Kinetis parts. Porting original KBOOT KL25 to KL26 (and essentially KL16) code should also not be that involved, although the concept does involve creating a completely new project for the target in question rather than being target independent as in the uTasker project. This therefore needs to be repeated for every different IDE and Kinetis target making about 500x more work - if only one IDE/target is involved it is of course not a big deal.

Regards

Mark

Kinetis: µTasker Kinetis support

KL26: µTasker Kinetis FRDM-KL26Z support  / µTasker Kinetis Teensy LC support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
1,077 Views
rutvijtrivedi
Contributor III

Hi Mark,

I found my compatible MCU of freescale MKL25Z64VFM4 , So would KBOOT be feasible with this MCU ?

And if yes then may i know what changes would be require to work with KBOOT on MKL25Z64VFM4.

KBOOT  currently supports MKL25Z128VLK4 in my current case.

Thanks & Regards,

Rutvij Trivedi.

0 Kudos
1,078 Views
mjbcswitzerland
Specialist V

Hi

If you have a KL25 with 64k Flash you can use the KL25 Kboot SW for 128k part by adapting its linker script to suit the alternative memory (Flash/RAM) sizes.

Regards

Mark

Kinetis: µTasker Kinetis support

KL26: µTasker Kinetis FRDM-KL26Z support  / µTasker Kinetis Teensy LC support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
1,077 Views
rutvijtrivedi
Contributor III

Hi Mark,

Thank you for your quick and appreciable response.

And may i know where can i find linker script for MKL25Z64VFM4 ??

Thanks & Regards,

Rutvij Trivedi.

0 Kudos
1,077 Views
mjbcswitzerland
Specialist V

Rutvij

I don't know whether there will be such a file anywhere but you can simply copy the KL25128k one and rename it - plus edit its content to match the chip that you have.

Regards

Mark

Kinetis: µTasker Kinetis support

KL26: µTasker Kinetis FRDM-KL26Z support  / µTasker Kinetis Teensy LC support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
1,077 Views
rutvijtrivedi
Contributor III

Hi Mark,

Thank you for all your support and appreciable help i will try this out and will post here my result.

Thanks & Regards,

Rutvij Trivedi.

0 Kudos