AN2295SW MKL04Z32VFM4 Question

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

AN2295SW MKL04Z32VFM4 Question

698 Views
dennisnguyen
Contributor II

Hi,

I downloaded AN2295SW and attempted to port the bootloader for MKL04Z32VFM4. I ran into a few problems. I used MKL05Z32LF4.h header file for MKL04Z32VFM4. There are macros that used in AN2295SW  bootloader.c that is defined in MK60DZ10.h are not available in MKL05Z32LF4.h.

. No SCB_AIRCR

. No PORT_PCR_REG

As the matter of facts, MKL05Z32LF4.h is totally different than MK60DZ10.h.

Do you have a working AN2295SW for MKL04Z32VFM4 that I can reference to?

Thanks,

Dennis Nguyen

Labels (1)
Tags (2)
4 Replies

487 Views
mjbcswitzerland
Specialist V

Hi Dennis

I think that AN2295SW is limited to a few devices and development environments and I believe that it is intended for only KL25 types in its present form. AN projects don't tend to be maintained or further developed and I wouldn't expect this one to be due to the fact that Freescale is introducing a new loader KBOOT: Kinetis Bootloader

You can however take a look at the folllowing loader which is supported and works on a large number of parts and can be build with most standard tool chains: Re: Kinetis Boot Loader for SREC UART, SD Card and USB-MSD loading

Regards

Mark

487 Views
dennisnguyen
Contributor II

Hi,

Do you have an example of memory allocation and IAR linker ICF FOR KL04Z similar to AN2295.pdf section 7?
Thanks,

Dennis

0 Kudos

487 Views
mjbcswitzerland
Specialist V

Dennis

Attached is an IAR .icf for KL parts with 32k Flash and 4k SRAM.

It is quite simple to modify them - the only thing to remember with the KL parts is that their SRAM is not symmetrical around 0x20000000 but 1/4 of the SRAM is anchored to end at 0x20000000 and 3/4 of it anchored to start at 0x20000000.

Regards

Mark

0 Kudos

487 Views
dennisnguyen
Contributor II

Hi Mark,

I just took a look at KBOOT: Kinetis Bootloader. My KL04Z is not the support list either. I know that we can get it working but might take longer time and we are kind in a time crunch for this. I will give a shot a post a question when I running into any issue.

Thanks for the quick response,

Dennis

0 Kudos