AnsweredAssumed Answered

Kinetis K60 (mask 4N22D silicon release A) serial bootloader problem

Question asked by Luca Ognibene on Apr 29, 2015
Latest reply on May 15, 2015 by Luca Ognibene

Hello everybody!

 

I'm very stuck with making working the present release (downloaded yesterday) of the serial bootloader AN2295 for Kinetis K60 on a custom board.

I'm using CodeWarrior 10.5 and the MCU is an MK60DN256VLL10 mask 4N22D.

 

In file bootloader_cfg.h:

#include "AN2295_TWR_K60D100_cfg.h"

 

In file AN2295_TWR_K60D100_cfg.h I set:

#define KINETIS_MODEL K60D_100MHz

#define KINETIS_FLASH FLASH_256K

 

#define BOOT_UART_BASE UART2_BASE_PTR

#define BOOT_UART_BAUD_RATE  57600

#define BOOT_UART_GPIO_PORT PORTD_BASE_PTR

#define BOOT_UART_GPIO_PIN_RX   2 

#define BOOT_UART_GPIO_PIN_TX   3 

 

#define BOOT_PIN_ENABLE_PORT_BASE  PORTE_BASE_PTR  

 

#define BOOT_PIN_ENABLE_GPIO_BASE  PTE_BASE_PTR  

 

#define BOOT_PIN_ENABLE_NUM        24  

 

#define BOOT_CALIBRATION_GPIO_BASE  PTD_BASE_PTR

 

Everything else is standard.

I always go into:

void Boot_ResetMCU(void)

 

I used the original LCF linker file and a modified one (the one I should use).

I the first case I go into reset immediately, while in the second case I go back to the beginning of __main() when I reach the line:

enableBootMode = 0;

 

Any clues?

 

Thanks for any help!

     Luca O.

Outcomes