NANO54415 Simple WAV Player Issues

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

NANO54415 Simple WAV Player Issues

Post by Mark »

Hello,

I have searched the forums for anyone else having issues with the NANO54415 Simple WAV Player demo solution and have not found anything. I have been using the MOD5282 for many years now, but have just recently purchased the NANO. I have imported the NANO54415 Simple WAV Player solution files into a newly created project, cleaned the solution, and tried to rebuild with no luck. I keep getting lots of errors, and I assume that I am missing something specific to the NANO development. I am also getting similar issues with the NANO54415 WAV Player demo solution. Here are all of the errors, any guidance would be greatly appreciated.

Thanks - Mark

Description Resource Path Location Type
'sim1' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 143 C/C++ Problem
'sim1' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 472 C/C++ Problem
'sim1' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 580 C/C++ Problem
'sim1' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 641 C/C++ Problem
'sim1' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 671 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 66 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 97 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 123 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 204 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 473 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 643 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 667 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 703 C/C++ Problem
'sim2' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 717 C/C++ Problem
'simTimer_' was not declared in this scope NANO54415 Simple WAV Player line 117, external location: C:\nburn\NANO54415\include\HiResTimer.h C/C++ Problem
'simTimer_' was not declared in this scope NANO54415 Simple WAV Player line 128, external location: C:\nburn\NANO54415\include\HiResTimer.h C/C++ Problem
'simTimer_' was not declared in this scope NANO54415 Simple WAV Player line 140, external location: C:\nburn\NANO54415\include\HiResTimer.h C/C++ Problem
'simTimer_' was not declared in this scope NANO54415 Simple WAV Player line 151, external location: C:\nburn\NANO54415\include\HiResTimer.h C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 167 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 176 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 177 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 181 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 182 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 204 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 459 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 466 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 469 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 525 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'dac' WavPlayer.cpp /NANO54415 Simple WAV Player line 555 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'tcd' WavPlayer.cpp /NANO54415 Simple WAV Player line 168 C/C++ Problem
'struct WavPlayer::channelControl' has no member named 'tcd' WavPlayer.cpp /NANO54415 Simple WAV Player line 205 C/C++ Problem
'tcd' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 92 C/C++ Problem
'tcd' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 95 C/C++ Problem
'tcd' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 115 C/C++ Problem
'tcd' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 519 C/C++ Problem
'tcd' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 549 C/C++ Problem
'timer' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 139 C/C++ Problem
'timer' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 633 C/C++ Problem
'timerSettings' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 587 C/C++ Problem
'timerSettings' was not declared in this scope WavPlayer.cpp /NANO54415 Simple WAV Player line 633 C/C++ Problem
'timerstruct' does not name a type WavPlayer.h /NANO54415 Simple WAV Player line 226 C/C++ Problem
#error PROCESSOR_NOT_DEFINED NANO54415 Simple WAV Player line 50, external location: C:\nburn\include\sim.h C/C++ Problem
expected ';' before '*' token NANO54415 Simple WAV Player line 78, external location: C:\nburn\NANO54415\include\HiResTimer.h C/C++ Problem
expected ';' before '*' token WavPlayer.h /NANO54415 Simple WAV Player line 198 C/C++ Problem
expected ';' before '*' token WavPlayer.h /NANO54415 Simple WAV Player line 199 C/C++ Problem
expected initializer before '&' token WavPlayer.cpp /NANO54415 Simple WAV Player line 89 C/C++ Problem
expected initializer before '&' token WavPlayer.cpp /NANO54415 Simple WAV Player line 138 C/C++ Problem
expected initializer before '&' token WavPlayer.cpp /NANO54415 Simple WAV Player line 502 C/C++ Problem
expected initializer before '&' token WavPlayer.cpp /NANO54415 Simple WAV Player line 602 C/C++ Problem
ISO C++ forbids declaration of 'dacstruct' with no type WavPlayer.h /NANO54415 Simple WAV Player line 198 C/C++ Problem
ISO C++ forbids declaration of 'edma_tcdstruct' with no type WavPlayer.h /NANO54415 Simple WAV Player line 199 C/C++ Problem
ISO C++ forbids declaration of 'timerstruct' with no type NANO54415 Simple WAV Player line 78, external location: C:\nburn\NANO54415\include\HiResTimer.h C/C++ Problem
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

Re: NANO54415 Simple WAV Player Issues

Post by sulliwk06 »

I think this might be your real problem

"#error PROCESSOR_NOT_DEFINED NANO54415 Simple WAV Player line 50, external location: C:\nburn\include\sim.h C/C++ Problem"

do you have the correct target platform? I think it should be looking for sim.h in the NANO54415/include folder

edit: also, what version of the nndk are you using
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: NANO54415 Simple WAV Player Issues

Post by dciliske »

Thanks for posting the full compilation error! Yup, as sulliwk said, your issue is the directly related to the PROCESSOR_NOT_DEFINED. You don't have the right PLATFORM set for this to build. You need to make sure that your platform is set to NANO54415, clean, and rebuild. My guess is that you created the project for a MOD5282 instead (or maybe left it blank).

Also, in the interests of narrowing down the issue, can you try building one of the other examples, like say, DSPI2Serial? Make sure you set the PLATFORM to NANO54415 when you make the project. You can also try building the project directly from the command line to confirm that there's not some path problem on your machine (I'm assuming you're running NBEclipse); just cd into the example directory and run 'make'.

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: NANO54415 Simple WAV Player Issues

Post by Mark »

Thanks for the quick responses!

When I started the project I did indeed select the NANO54415 as the platform and Eclipse did create a blank project space with what looks to me as the proper headers (please see attached picture). I also checked that the sim.h was included and from the proper location.

A couple of additional data points:

-I'm running Eclipse 2.6.3
-Eclipse was installed with both the MOD 5282 and NANO54415 licenses.

I have not yet attempted to manually build the solution, but will later today.

Thanks - Mark
Attachments
NANO WAV Player Issue.png
NANO WAV Player Issue.png (41.6 KiB) Viewed 7166 times
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: NANO54415 Simple WAV Player Issues

Post by Mark »

Another interesting observation - I now just noticed that not only did the project bring in the includes from c:/nburn/NANO54415/include, but also from c:/nburn/include. Both include directories have sim.h - could this be the issue?

Could this be an underlying issue with NBEclipse installation using multiple platforms?
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: NANO54415 Simple WAV Player Issues

Post by Mark »

Guess what - my last post was indeed the issue, it was as simple as pointing to the correct sim.h.

#include <..\NANO54415\include\sim.h>

This looks to be an issue with using Eclipse development on multiple platforms, as in my case with the MOD5282 and the NANO54415.

This leads me to another question which I guess I should be starting a new post:

When purchasing a new platform (in my case the NANO54415), and having a Eclipse development environment that was first installed with another platform license (in my case the MOD5282), how does one make the development environment compatible with the new platform?
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: NANO54415 Simple WAV Player Issues

Post by Ridgeglider »

Just run the installer again. The proper tools are installed for the serial number(s) you enter. You should not have any issue switching platforms once the tools are installed. If ever you install add'l tools, or an update over an existing install, BE SURE that your workspace is NOT under the nburn/ directory or it will get erased! Although the NBeclipse defaults to a directory under nburn/ (I think at c:/nburn/NBEclispe/workspace) I never use that default location due to the potential to inadvertently overwrite.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: NANO54415 Simple WAV Player Issues

Post by dciliske »

When you reinstall, the installer moves the content of any previous install into a subdirectory 'nburn_old' (and starts adding numbers if they already exist...)

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

Re: NANO54415 Simple WAV Player Issues

Post by Ridgeglider »

Great news... Was not always so!
User avatar
Mark
Posts: 56
Joined: Mon Sep 22, 2008 6:45 pm
Location: Maryland

Re: NANO54415 Simple WAV Player Issues

Post by Mark »

Thank you everyone for helping out with this!
Post Reply