why the voltage of RESET pin of KE02Z MCU is unstable?

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

why the voltage of RESET pin of KE02Z MCU is unstable?

Jump to solution
1,913 Views
maqindong
Contributor II

I have a minimum system with the Freescale KE02Z64 MCU,and there are just three parts--power supply circuit, reset circuit and crystal oscillator  in this system. then i try to load code to the MCU with the JTAG interface using PE multilink universal. but I failed. the problem is that the signal of restet pin is as follow,TEK00000.PNG

P.S. the power is +5V.

p.p.s. the MCU is newly-welded,no codes in it. it's the first time to use the MCU.

p.p.p.s.the reset circuit and clock circuit are as follow.

捕获.PNG

how should i deal with this problem? i am needling your help?

Tags (2)
0 Kudos
1 Solution
1,245 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello MA QINDONG:

Your last comment:

only the USB LED the on PE  multilink universal illumines ,the TGTPWR LED on PE did not illumine

That is not good. Both LEDs have to be ON. Check that the TVCC pin of the JTAG/SWD connector is connected to VCC. And in general check that the MCU is properly powered (VCC and GND pins connected).


Regards!,
Jorge Gonzalez

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

View solution in original post

0 Kudos
7 Replies
1,245 Views
adriancano
NXP Employee
NXP Employee

Hi,

On a blank device, all of the flash memory sits at the erased state 0xFF (except address 0x0000_040C FSEC which is 0xFE).

You fit the device to your board, and apply power, then core goes to 0x0000_0000 to fetch the initial stack pointer and 0x0000_0004 to fetch the reset vector. Both of these read 0xFFFF-FFFF and so these are illegal addresses. This causes the chip resets, and starts all over again.

The symptom is that the reset line oscillates as the chip runs (reset high) then resets (reset low). It's not unexpected.

You will find useful the information on this post and the answers on a thread:

PE multilink JTAG/BDM Kinetis programming issue | Freescale Community

How To Sucessfully Program a Custom made Kinetis Microcontroller Board.

:smileyinfo: Please consider posting your questions into the right community place for better visibility, for example Kinetis Microcontrollers.

I hope this information can help you.

Regards,

Adrian

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. It would be nice!

-----------------------------------------------------------------------------------------------------------------------

1,245 Views
maqindong
Contributor II

thank you for your response. i have followed the references you give. but there still exists a trouble, my CW10.6 can not connect to the P&E device(this error exists all the time ). the error i get was:

捕获.PNG

the debug configuration i set was shown as follows:

捕获.PNG

and the JTAG connector i adopted was:

捕获.PNG

p.s. there is no pull-up resister in SWD_DIO pin. Actually, i have tried to add one, but it didn't work.

p.p.s. the pull-up resister in RESET pin has been replaced by a 10kΩ one, and the capacitor has been taken off.

p.p.p.s.  the codes can been loaded to another board(freesacle's FRDM-KE02Z) with the same P&E multilink universal.

0 Kudos
1,244 Views
Rick_Li
NXP Employee
NXP Employee

Hi, the enclosed is the schematic of FRDM-KE02Z, could you please refer to it and double check your own schematic?

0 Kudos
1,245 Views
maqindong
Contributor II

Yong Li,thank you for your advice. i have referred to the material you send me. and i have checked my custom board carefully. but i have not found any solutions. here i list my board's routing.

1.PNG

1, all the VDDs including Pin 6 of the MCU(U2) have connected to VCC(+5V) .  all VSSes including Pin 7 &Pin 8 have connected to GND. all of these pins have tested.

2, SWD_CLK and SWD_DIO connect directly to P1. p.s. the Temp4 which share with SWD_CLK has been taken off.  both SWD_CLK and SWD_DIO  connect no external pull-up/down resistors.   actually,  i have tried to add a 10kΩ pull-up resistor to SWD_DIO and a 10kΩ pull-down  resistor to SWD_CLK, but i didn't work.

2.PNG

3, the reset pin of U2 connects to a 10kΩ pull-up resistor without capacitor.

4, other pins except for mentioned above were suspended.

in this condition, i got the signal of MCU's reset pin was:

TEK00003.PNG

is it reasonable? it seems to be different from https://community.freescale.com/docs/DOC-99609 .

and if i connect my board to CW10.6 by P&E multilink universal ,  the CW report disconnecting error,

3.PNG

of course, only the USB LED the on PE  multilink universal illumines ,the TGTPWR LED on PE did not illumine.

how can i do to handle with my trouble?

0 Kudos
1,246 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello MA QINDONG:

Your last comment:

only the USB LED the on PE  multilink universal illumines ,the TGTPWR LED on PE did not illumine

That is not good. Both LEDs have to be ON. Check that the TVCC pin of the JTAG/SWD connector is connected to VCC. And in general check that the MCU is properly powered (VCC and GND pins connected).


Regards!,
Jorge Gonzalez

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

0 Kudos
1,245 Views
maqindong
Contributor II

DONE!!!  thank you for your advice! i checked my board carefully, yes, it's empty solder. after amending this mistake, i succeeded to erase the virgin MCU.

p.s. i succeeded with no pull-up in SWD_DIO and no pull-down in SWD_CLK. if i added these two resistors, i failed. i didn't know the reason. anyhow, i can program the MCU now.

at last, i am very grateful to all those helped me!

best regards.

0 Kudos
1,245 Views
adriancano
NXP Employee
NXP Employee

Hi,

Good to know that now it is working!

Best regards,

Adrian

0 Kudos