KL27 32-PIN UART ROM UPDATE - What pins are mapped?

cancel
Showing results for 
Search instead for 
Did you mean: 

KL27 32-PIN UART ROM UPDATE - What pins are mapped?

232 Views
Contributor II

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.

#ifdef FREEDOM
#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
#else
#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
#endif

#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,

Don

Labels (1)
0 Kudos
1 Reply

7 Views
NXP TechSupport
NXP TechSupport

Hi Donald Russ,

    KL27 have the UART ROM bootloader, so you don't need to use the flash bootloader which like the KL25.

    Please refer to the KBOOT 1.2.0​  document Getting Started with the Kinetis ROM Bootloader.pdf, which you can find in the folder:FSL_Kinetis_Bootloader_1_2_0\FSL_Kinetis_Bootloader_1_2_0\doc

  You can find the UART pins in the KL27 reference manual, chapter 13, kinetis ROM bootloader.

  KL27 is using PTA1, and PTA2 as the UART bootloader pin.

  You can try to use the blhost.exe in folder :FSL_Kinetis_Bootloader_1_2_0\FSL_Kinetis_Bootloader_1_2_0\bin\win

  This can download the application code to the KL27, the following is the successful download picture from my FRDM-KL27:

25.jpg

Wish it helps you!

If you still have question, please contact me!


Have a great day,
Jingjing

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

0 Kudos