I originally posted this on PE Micro's forum but received a reply from another engineer here that it works fine on our K60 board. He cannot get it to work on the K64 TWR board either. We keep getting the error, "Cannot enter background mode" (See original post below):
Thanks,
John Baker
AVG
Hello John:
Check that J16 is set to (1-2). See the next article:
First Steps with the Freescale TWR-K64F120M | MCU on Eclipse
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello John:
I just tested with a TWR-K64 using Multilink Universal and I got the same results.
How are you powering the board? It seems that USB Debug Port cannot be connected at the same time as the external Multilink.
So if using Multilink you need to power the board from another source, but this involves adjusting J18 and J29. Here are two ways that worked for me:
1- Power from the USB connector in a Primary Elevator:
J18: [Removed].
J29: [5-6].
2- Power from Micro-USB connector in TWR-K64:
J18: [5-6].
J29: [3-4] or [5-6]
With either of these options I was able to enter a debug session.
I hope this works for you.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jorge,
Thanks for your responses.
Our actual new development board with the K64 chip arrived two days ago. We were able to get the Multilink to work by changing the ‘Debug Shift Freq (Khz)’ to 2000. Not sure why yet. I think it has something to do with how the board was developed and its external oscillators as we also had to make temporary changes to the clock setup code in system_MK64F12.c and .h just to get the code to run.
I have not had a chance to try the tower board again.
Thanks,
John