Why will my K64F code only start with OpenSDA cable connected?

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

Why will my K64F code only start with OpenSDA cable connected?

600 Views
eengineer
Contributor I

I am trying to move my K64F board code so it will start at power up. At present, the only way I can get it to run is to plug a USB cable into the OpenSDA port (even if the other end of the cable goes to a non-debug PC). Once the program is running, I can unplug it and the program continues to run.

The target MCU reset signal seems to be negated with the cable disconnected, so I don't think it is being held in reset. My power is via the 5-9V input on J3, and 3.3Vdc seems to be present even without the USB cable connected. I'm not clear on what connecting the OpenSDA cable does that starts the code...?

I have tried cutting the J7 copper trace on one board to completely disable OpenSDA. Seems to make no difference.

Code compiled with the debug configuration should run even without the debugger connected, shouldn't it?

I am using the latest releases of tools, KDS 3.2, SDK 2.0, OpenSDA 0226.

The little discussion I find of release vs. debug has to do with much older tools. The way information is presented on this site, it doesn't seem anything is ever updated to reflect changes to tools, even though there have been some immense changes. For example, there is a discussion of start up problems due to capacitor C75 on early versions of the K64F board; all of my boards are rev E3, yet the discussion has never been updated to reflect that problem should be resolved because that cap went away.

Where, in fact, is there any documentation for use of the release/debug configurations in KDS 3.2? There are many settings under the debugger and startup tabs of debug configurations which seem to have no documentation beyond some pop up tips obtained by pointing at them. That hardly counts as documentation!

I would appreciate suggestions, but I also suggest some useful applications information should be created and kept up to date on this topic, since it seems everyone starting with the K64F is going to get to this point sooner or later.

Thanks.

0 Kudos
3 Replies

469 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

I also do a same test add 5.9V power to J3-16 pin, the FRDM-K64F J25 need short 2-3 as below picture shows:

pastedImage_1.png

After that, the board should works as expected.


Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

469 Views
eengineer
Contributor I

Thank you for your suggestion. The board came with a 3 pin jumper in position J25. If I move the shunt to pins 2-3 and open J7 to remove OpenSDA power, my code will never start. Even if I press the reset button SW1, my code never sends the ethernet packet it should.

I assume I have something wrong in my debug configuration or initialization, but I can find no useful tips on how to transition from debug to release code that apply to current tools. I feel the K64F user guide should include much more information than it does!

Thanks again.

0 Kudos

469 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

I do a lwip http server test based on KSDK V2.0 demo, and I could visit the HTTP server as below picture shows:

pastedImage_1.png

pastedImage_2.png

I would recommend customer try with the KSDK V2.0 demo for FRDM-K64F board, the related software could be downloaded from here.


Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos