AN2295 kinetis with mk60f15.h

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

AN2295 kinetis with mk60f15.h

1,491 Views
feraro
Contributor IV

Hello.

Someone could tell me how to configure the serial bootloader (AN2295) to work with the head mk60f15.h, of kinetis?

Currently I have:

   #define KINETIS_MODEL K60_100MHz

I am working with MK60FX512

What value should I put?

Thanks.

5 Replies

1,266 Views
feraro
Contributor IV

Thanks for the help and for the suggestion.

I have already managed to get my an2295 to work. I have used the FLASH_ProgramSectionByPhrases function instead of the FLASH_ProgramSectionByLongs and changed the headers as jeremyzhou suggested.

Best regards.

0 Kudos
Reply

1,266 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Fernando Ramon ,

Please the following steps to add the MK60f15.h.

  1. In the AN2295_TWR_K60_cfg.h file, using the  #define KINETIS_MODEL K60_150MHz instead of the KINETIS_MODEL K60_100MHz;
  2. In the kinetis_params.h, add the #define K60_150MHz 0x6015
  3. In the main.h file, add
    #elif KINETIS_MODEL== K60_150MHz
      #include "MK60f15.h"‍‍


Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,266 Views
feraro
Contributor IV

Thank you for your help.

I've done what you tell me, but flash memory management is different. I have to redo the FLASH_FlashCommandSequenceStart () function to adapt it to this micro.

Regards.

0 Kudos
Reply

1,266 Views
mjbcswitzerland
Specialist V

Hi

If you don't solve your problem you can get loaders [USB-MSD Host/Device, SD card, KBOOT, AN2295
Developer's Serial Bootloader and Ethernet Web Server] for almost all Kinetis boards/parts at
http://www.utasker.com/kinetis.html

Builds with KDS, CS, S32, IAR, Keil, Atollic, Rowley, Greenhills, CooCox, GCC and VS and allows real-time simulation for testing, debugging, analysing etc.

Regards

Mark

1,266 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Fernando Ramon,

Thanks for your reply.

However I'd highly recommend you to use the KBOOT instead of the AN2295, as the KBOOT is the newest bootloader solution.

Kinetis Bootloader|NXP 


Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------