Let me start by saying this is my first time working with the Kinetis and the Tower system.
I'm working on my senior project and this is also the first time I have to set up my own development environment.
------------
So, I am trying to go through the Quick Start Demo lab (v1.2).
------------
Now for the software and programming (section 4)
Section 5, Task Aware Debugging, doesn't work. The MQX dropdown menu is all greyed out.
Now, at this point, I wasn't sure what was supposed to happen. At the moment, there are only power lights. I can't access the webserver. I'm assuming it is supposed to be the initial demo before I flashed it.
Has anyone else gotten this demo to work? I've been going through this quick start walkthrough for a few days now and I can't quite see what I am doing incorrectly.
解決済! 解決策の投稿を見る。
I think that I may have solved the problem.
Jumper J6 on the K60 board was set to pins 2-3, as per instructions in the Quick Start Demo.
I changed it back to the default pins 1-2 and reloaded the code. All lights lit up on quick start demo, Hello World works correctly. Hooray!
See Section A.6 Step 5 in the Kinetis Quick Reference Guide: http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf
(Sorry for all the information. I just want to make sure I'm covering all my bases. Also, please tell me if I am truely making an ass of myself. Haha.)
I was referencing the quick start lab located here (code and lab): http://cache.freescale.com/files/32bit/doc/support_info/TWRK60N512QSDLAB.zip?fpsp=1
However, I did go through and follow the Appendix A instructions in the quick reference user guide to get to the step you suggested.
Since I have the K60, I tried the given choices from the dropdown menu:
TWR-K60N512:
• RAM_128KB (I chose this first.)
• FLASH_512KB_PFLASH
Then, I `Clean`ed, then `Make`ed.
Got some warnings.
------------------------------------
Warning[Lp012]: no sections with name .data included - special symbol .data$$Base (referenced from D:\Users\[username]\MQX3.6\demo\KINETIS512_SC\rev_1_4\build\iar\hello_world\
FLASH_512KB_PFLASH\Obj\startup.o) will be zero
Warning[Lp012]: no sections with name .data_init included - special symbol .data_init$$Base (referenced from D:\Users\[username]\MQX3.6\demo\KINETIS512_SC\rev_1_4\build\iar\hello_world\
Total number of errors: 0
Total number of warnings: 4
------------------------------------
Opened the PE Micro Terminal app and opened the serial port.
Clicked `Download and Debug`, the `Go`
------------------------------------
Nothing in the terminal, no echo of my text.
[Maybe related, but when I do the last two steps in reverse, I get an access violation error from the terminal. This was a driver issue I brought up in a PE micro service request ticket a while ago. I'm using Win7 - 64 bit, by the way.]
------------------------------------
Stepping through in both quick start examples, my code never leaves this line:
while (MCG_S & MCG_S_IREFST_MASK){}; // wait for Reference clock Status bit to clear
(mcg.c -- hello_world
init_hw.c -- quick start demo)
I think that I may have solved the problem.
Jumper J6 on the K60 board was set to pins 2-3, as per instructions in the Quick Start Demo.
I changed it back to the default pins 1-2 and reloaded the code. All lights lit up on quick start demo, Hello World works correctly. Hooray!
Make sure you open the "debug flash". With debug flash loaded, you can only run the demo when you run it in debug mode. If you can run the demo without pressing "download and debug" (or evan without IAR running) you do NOT have the debug flash on your TWR.