AnsweredAssumed Answered

What am I missing, FRDM-KL25Z, Desire Debug and Serial comms.

Question asked by Philip Freidin on Dec 11, 2012
Latest reply on Dec 13, 2012 by Philip Freidin

Here's what I have:

 

FRDM-KL25Z

Keil MDK 4.60

CMSIS-DAP_OpenSDA.S19

DEBUG-APP_Pemicro_v102.SDA

MSD-FRDM-KL25Z_Pemicro_v107.SDA

 

What I want is to be able debug a program and have serial

communications through the same USB cable.

 

Here's what I have achieved:

A) CMSIS-DAP_OpenSDA.S19

      Can download and run/debug app, but no serial comms.

 

B) DEBUG-APP_Pemicro_v102.SDA

      Can download and run/debug app, but no serial comms.

 

C) MSD-FRDM-KL25Z_Pemicro_v107.SDA

      Can drag/drop to download and run, serial comms works,

      but no debug. Only the pre-compiled .srec files .

      Keil compiler generates HEX or AFX files that can't be

      drag/drop and since no debug, compiler download does

      not work. So can't create new apps.

 

Is there an SDA that supports debug and comms?

Am I doing something wrong?

 

On a separate note, there seems to be two totally different

ways of referring to registers:

 

The examples for this board that are part of the Keil install

(Blinky) looks like this

 

    SIM->SCGC5    |= (1UL <<  10) | (1UL <<  12);

    PORTB->PCR[18] = (1UL <<  8);

 

The Freescale KL25_Sample_Code.exe unpacks to a pile

of directories. In the klxx-sc-baremetal source files it looks

like this:

 

    SIM_SCGC5 |= (SIM_SCGC5_PORTA_MASK)

 

Why are there two styles? Which should I use.

 

On another separate note, I can't find an example directory

for a Keil version of demo program that the board is shipped with.

I did an IAR version:

    kl25_sc\klxx-sc-baremetal\build\iar\FRDM_KL25ZDemo

 


Outcomes