Hi
I am trying to program K20 custom board but it is showing an error.
after clicking yes, the same msg appear and again I click yes then following error comes
these two error msg comes after one another and it doesn't program. Kindly look into the matter initially I had the same issue for K10 board. I tried everything but It didn't worked. PE multilink universal not detecting K10 uc I thought that there might be some soldering issue as it was a QFN package. so I changed my design and added MK20DX128VLF5(LQFP) we bought 100 pcs of this uc and 100 pc of KL05 , 30 pc of K10. we checked for K10 and K20 uc it doesn't work. I checked PE multilink by programming FRDM-KL46Z board through SWD connecter J6, it is programming the board without any issue. I went through the KQRUG user guide which I found out from my previous query regarding K10 board through the community. and I also went through the PE4576-Technical summary. and tried resolving the issue but didn't resolve then after bashing my head I somehow managed to find an app note on programming kinetis uc i.e AN4835 which I think is supposed to be mention in the datasheet as no user will get to know that there exist an app note for how to program the Kinetis uc. There are many engineers who will be working on ARM cortex uc but if there is not much resources then why will they choose freescale. Kindly look into the matter and make the programmer work as I fear all the above controller i.e (100 K20, 100 Kl05, 30 K10) uc will be collecting dust. Already we have 100 k20 boards ready. The following diagram shows the connections I have tried for different modes(JTAG/SWD) for programming K20 board.
it didn't worked then i tried SWD config
In both the cases I connected VCC(3.3V) ----->TVCC(PIN 1)
and GND----> GND(PIN 4) of PE multilink universal. I am using the following port from PE multilink universal.
I probed RESET_b pin in normal condition it is logic high(3.3V) and while programming it becomes logic low(0V).
The above is the testing breakout board(dual side).
I hope The community will help me to resolve this issue ASAP. Our expected target is 100,000 kinetis units this year In our line of products.
Thanks and Regards
Amit Kumar
Hello Amit:
Thanks for considering my suggestions. About your comments and some more inputs:
5) This should not be critical, but try replacing that 1K resistor with one of 4.7K - 10K. Also confirm that you have the R2 10K pull - up resistor connected to pin 21, and measure voltage in that pin to verify that it is always in high level.
Now, the 1.64 V is definitely not correct, the value should be near the 3.3 V when not asserted. This seems to indicate that the MCU is constantly resetting. You need to watch that pin with an oscilloscope.
If the device is resetting, this may solve the issue:
- Make sure to select "Always mass erase on connect", and select a not so high debug frequency (e.g. 0.10 MHz).
Then follow the next steps:
1) Disconnect the board from your 3.3 V source.
2) With a jumper force the reset pin to a low level (GND) and hold it.
3) Power on the board (connect the 3.3 V source). Do not release reset yet.
4) Start a debug session and as soon as it is starting release the reset button.
Try this more than once.
Additionally, you could also try mass erasing the K20 device from the Flash programmer. Just open the programmer, select proper connection and specific flash configuration file and then click on "Erase Whole Device".
If the Erase is successful, then you should be able to debug.
Let me know what you find.
Regards!
Jorge Gonzalez