I have inherited a KL25Z design and I am looking into using the KL27 ROM part instead to make it so that we can download and update inside the product. In looking through the 32 Pin version I see the UART0 can be brought out on many pins.
- How do I find which UART pins the ROM boot loader initializes to?
- Is there source code for the ROM or is the KL25Z bootloader source the same thing?
I have tried to get the FRDM-KL27Z to talk to the KinetisUpdater by holding down the NMI while resetting with no luck. From the KL25Z Bootloader 1.2.0 source below it appears as if the incorrect pins for ROM boot were selected in designing the FRDM-KL27Z.
#define UART0_RX_GPIO_PIN_NUM 1 // PIN 1 in the PTA group
#define UART0_RX_ALT_MODE 2 // ALT mode for UART0 functionality for pin 1
#define UART0_RX_GPIO_ALT_MODE 1 // ALT mode for GPIO functionality for pin 1
#define UART0_TX_GPIO_PIN_NUM 2 // PIN 2 in the PTA group
#define UART0_TX_ALT_MODE 2 // ALT mode for UART0 TX functionality for pin 2
#define UART0_RX_GPIO_PIN_NUM 15 // PIN 15 in the PTA group
#define UART0_RX_ALT_MODE 3 // ALT mode for UART0 functionality for pin 15
#define UART0_RX_GPIO_ALT_MODE 1 // ALT mdoe for GPIO functionality for pin 15
#define UART0_TX_GPIO_PIN_NUM 14 // PIN 14 in the PTA group
#define UART0_TX_ALT_MODE 3 // ALT mode for UART0 TX functionality for pin 14
#define PORT_IRQC_INTERRUPT_FALLING_EDGE 0xA
#define PORT_IRQC_INTERRUPT_DISABLE 0
#define BOOT_PIN_NUMBER 3
#define BOOT_PIN_PORT PORTC
#define BOOT_PIN_GPIO PTC
#define BOOT_PIN_ALT_MODE 1
#define BOOT_PIN_DEBOUNCE_READ_COUNT 500
Thanks in advance,