NAN054415 Program Upload Issue

Discussion to talk about hardware related topics only.
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

NAN054415 Program Upload Issue

Post by Mark »

Hello,

I am having an issue getting Eclipse to upload and run a program to the NANO54415 device. Eclipse has no issues seeing the device in both NBFind and NBConfig. In order to get a program uploaded to the NANO I am having to use the standalone Auto Update tool.

Any thoughts?

Thanks,
Mark
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: NAN054415 Program Upload Issue

Post by Ridgeglider »

Sounds like you need to create a Run Configuration. There are several ways to do this. One is to select your project in the Project Explorer, right click to Run As -> Run Configurations. In the 'Create, manage, and run configurations' window, type in a name for your new Run Config, usually the same name as the project. Next, be sure the project name in the next line is OK, and the same as the one you selected originally in the Project Explorer. Next, fill in the IP. Alternatively, you can click Search and find an NB target.

Next select the Debugger tab, then look for the 'Connection' tab and check for the correct IP again. Click Apply, then Run.

This should work.
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: NAN054415 Program Upload Issue

Post by Ridgeglider »

Sounds like you need to create a Run Configuration. There are several ways to do this. One is to select your project in the Project Explorer, right click to Run As -> Run Configurations. In the 'Create, manage, and run configurations' window, type in a name for your new Run Config, usually the same name as the project. Next, be sure the project name in the next line is OK, and the same as the one you selected originally in the Project Explorer. Next, fill in the IP. Alternatively, you can click Search and find an NB target.

Next select the Debugger tab, then look for the 'Connection' tab and check for the correct IP again. Click Apply, then Run.

This should work.
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: NAN054415 Program Upload Issue

Post by Mark »

Ridgeglider, thanks for getting back with me. That is what is so damn confusing to me, all of these items/settings are correct in my project/Eclipse session. I verified that all of the configuration parameters that you mentioned are correct. When I click the RUN button I get a 'nothing to build' message (even if I change code).

Now for the interesting part - ever since I installed support for the NANO54415 I have been having strange issues with Eclipse. Just today I have now observed that my recent project on the MOD5282 is now throwing errors where there were no errors previously.

UGG!!!
Attachments
Eclipse.png
Eclipse.png (183.13 KiB) Viewed 15027 times
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: NAN054415 Program Upload Issue

Post by rnixon »

If it says nothing to be done you likely did something odd when creating the project or importing files (or copied instead of importing).
A few simple tests that should take no more than a few minutes.

1. Create an app wizard project exactly per the nbeclipse getting started guide. Don't assume anything and follow the steps.

2. If this builds and loads, then create new empty project per the getting started guide, then import *only* the source files using the project import feature.

3. If the app wizard project does not build and run, rename your install dir to something else, like c:\nburn-notworking, then do a clean install with all your keycodes to c:\nburn. Once installed repeat steps 1 and 2.

One problem I have seen here a few times is copying files using a program outside of nbeclipse, and files or a previous eclipse config file gets copied along with it so the path info is wrong and eclipse can't detect source code changes.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: NAN054415 Program Upload Issue

Post by dciliske »

I'm going to go out on a limb: take a close look at the directory name for the simple wav player, or rather the 'simple_wav_player'. I believe you're getting caught by Windows' incredibly crappy command line (NBEclipse launches tools essentially via the command line). Your project has spaces in the name, hence spaces in the directory name, hence spaces in the arguments to GCC/other tools. I don't think GCC/other tools are seeing the right directory for your project and hence are screwing up. As a general rule, I'd recommend against ever using spaces in directory names in Windows for this reason. (*NIX is much better about being able to properly escape spaces in the command line.)

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: NAN054415 Program Upload Issue

Post by Ridgeglider »

Based on the project settings in your screen shot I'd totally agree w/Dan. No spaces are allowed in the entire path, or in any project names!
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: NAN054415 Program Upload Issue

Post by Mark »

All,

Thank you for your inputs and sorry for the delayed response, I had to deal with a failing power supply on my development machine!

Ok, I have uninstalled and re-installed the NB development toolset. I recreated two new projects, one titled NANO54415_SimpleWavePlaver and the other NANO54415_WavPlayer. The first, NANO54415_SimpleWavePlaver, is my previous project space that compiled but never loaded up to the device (unless I used AutoUpdate); except no space in the project name (& directory structure). This project still compiles and now uploads to the NANO device. SUCCESS, however small - I'll take it.

The second, NANO54415_WavPlayer, still does not compile, giving the same errors as before. I recreated this project from scratch (without spaces in the names/directories), and imported the files from the NB posted files. I have zipped this up and attached to this post for anyone that would like to try to recreate to problems.

FYI - the reason that I am spending so much time with these two projects is that I plan on using the NANO device as an audio player in an upcoming design.

Thanks again for all the help - Mark
Attachments
NANO54415 WAV Player.zip
(63.59 KiB) Downloaded 649 times
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: NAN054415 Program Upload Issue

Post by Ridgeglider »

Can you follow rnixon's advice a few posts ago to create, build and load a simple AppWizard project? Follow the instructions in C:\nburn\docs\DocumentationOverview.pdf which is really the Getting Started User's Guide. Something simple is not right here....
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: NAN054415 Program Upload Issue

Post by Mark »

All,

Again - thank you for all of your inputs.

I downloaded a fresh copy of the project from GitHub, I created a fresh NB project, and I imported the files into the project. SUCCESS! I am not sure what the original issue was, but as rnixon suggested I assume something got mangled in my previous attempt. I now have the full WAV player project working, allowing me to move forward.

I think I had a combination of problems, possibly a corrupted ND development kit install, along with a improper/corrupted import of the project files.

Thanks again all for the excellent support - Have a great weekend!

Mark
Post Reply