New KL25Z sample reset pin has 125KHz output

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

New KL25Z sample reset pin has 125KHz output

Jump to solution
1,703 Views
kai_liu
Senior Contributor I

Because I can not connect my CMSIS-DAP to custom KL25Z boards, (Check this thread: https://community.freescale.com/message/380989#380989) which has brand new sample ordered via element14.com. I probes the reset pin after getting suggestions from pgo

According to KL25P80M48SF0RM.pdf, $6.2.2.1 External pin reset

This pin is open drain and has an internal pullup device. Asserting RESET wakes the device from any mode.

The RESET pin can be disabled by programming RESET_PIN_CFG option bit to 0. When this option selected, there could be a short period of contention during a POR ramp where the device drives the pin out low prior to establishing the setting of this option and releasing the RESET function on the pin.

KL25Z_RST_Saleae_Screenshot.PNG.png

I got the a wave from reset pin, about 125KHz, That means the KL25Z is always in reset pin.

Here come my questions:

  • Is it normal to a new sample?
  • Does it apply to KL only or all Kinetis (K+KL)?
  • How to solve it and download my code?


UPDATE

As a cross check, I post some screenshots from my LogicScope.

screenshot_new_kl25z_empty_without_debugger.png

Fig 1: New KL25Z samples without connecting to SWD debugger


screenshot_new_kl25z_empty_with_debugger.png

Fig 2: New KL25Z sample connecting to SWD debugger


screenshot_new_kl25z_load_with_debugger_001.png

Fig 3. New KL25Z trying to connect to SWD (There are three attepts to talk to the KL25Z on DIO/CLK, which keeps LOW for a while on DIO)

screenshot_new_kl25z_load_with_debugger_002.png

Fig 4. Zoom in A (CLK pulses)

screenshot_new_kl25z_load_with_debugger_003.png

Fig 5. Zoom in B

screenshot_new_kl25z_load_with_debugger_004.png

Fig 6. Zoom in C

screenshot_new_kl25z_load_with_debugger_005.png

Fig 7. Zoom in D

screenshot_ob_kl25z_empty_without_debugger.png

Fig 8. FRDM on board KL25Z erased disconnected to OpenSDA

screenshot_ob_kl25z_empty_with_debugger.png

Fig 9. FRDM on board KL25Z erased connected to OpenSDA

screenshot_ob_kl25z_load_with_debugger.png

Fig 10. FRDM on board KL25Z programmed by OpenSDA


Tags (1)
0 Kudos
1 Solution
779 Views
kai_liu
Senior Contributor I

Well. Good news for this thread. It has nothing to do with RESET pin.

I added a series resistor (220R) to SWD_CLK, then most of the debuggers can talk to KL25Z now.

Yes, it is a hardware issue caused by PCB layout as well as IC pin layout, maybe.

Now I can move on to my next project.

What's the minimum circuit requirement for KL/K mcu programming?

View solution in original post

0 Kudos
4 Replies
780 Views
kai_liu
Senior Contributor I

Well. Good news for this thread. It has nothing to do with RESET pin.

I added a series resistor (220R) to SWD_CLK, then most of the debuggers can talk to KL25Z now.

Yes, it is a hardware issue caused by PCB layout as well as IC pin layout, maybe.

Now I can move on to my next project.

What's the minimum circuit requirement for KL/K mcu programming?

0 Kudos
779 Views
kai_liu
Senior Contributor I

The 125KHz output is not a question anymore. However I will not close that since I am share of picking "correct answer" option to close it.

Any comments are still welcome.

0 Kudos
779 Views
pgo
Senior Contributor V

Hi Kai,

As described in the quoted thread - This is to be expected with a blank (new) chip.

I have observed this with a range of Kinetis devices including newly purchased chips.

I am unsure why none of the programmers you have tried can cope with this or even if this is the cause of your problems.

Since this tends to be the usual case with a blank chip, and usually the programmers cope with it, the problem may lie somewhere else.

bye

779 Views
kai_liu
Senior Contributor I

According to the screenshot, at least the connections are correct: SWD_DIO is internally pull high, SWD_CLK is internally pull low, and RST pin is connected as well. And obviously power and ground are connected well.

Sorry, I used to think that is unexpected performance of a blank chip. Since FTFA_FOPT should be 0xFF, and RESET_PIN_CFG should be "1", which means a dedicated reset pin.

I will probe on board KL25Z in FRDM and the one on our board as cross checking.

0 Kudos