C programming for microcontroller part 2

In the application note for JN-AN-1005 Wireless UART, I was able to built the project successfully when the project is located on "C:\Jennic\Application" which is for "JN5148 Only" (page 4). But it has errors when I put the project on "C:\Jennic\cygwin\jennic\SDK\Application" which is for "JN5139/JN5121 Only" (page 5).

The errors are:
Description	Resource	Path	Location	Type
/jennic/SDK/Chip/Common/Build/config.mk: No such file or directory	Makefile	JN-AN-1005-Wireless-UART/AN1005_154_WUART_Coord/Build	line 129	C/C++ Problem
/jennic/SDK/Platform/Common/Build/Config.mk: No such file or directory	Makefile	JN-AN-1005-Wireless-UART/AN1005_154_WUART_Coord/Build	line 130	C/C++ Problem
/jennic/SDK/Stack/Common/Build/Config.mk: No such file or directory	Makefile	JN-AN-1005-Wireless-UART/AN1005_154_WUART_Coord/Build	line 131	C/C++ Problem
make: *** No rule to make target `/jennic/SDK/Stack/Common/Build/Config.mk'.	JN-AN-1005-Wireless-UART		line 0	C/C++ Problem

Open in new window

I searched the C:\Jennic\cygwin and I can only find one config.mk which is on C:\Jennic\cygwin\jennic\SDK\Common\Build. What am I missing?
LVL 22
ThomasianAsked:
Who is Participating?
 
berniefitzCommented:
You can right click the project->team->apply patch.

I've tried this unsuccessfully but it may be to do with me not knowing enough Eclipse.
0
 
berniefitzCommented:
It looks as though you should have a C:\Jennic\SDK\ folder. Do you have this and if so does it contain folders Chip, Platform, and Stack?
0
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
You're not trying to use Eclipse to do that are you?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
ThomasianAuthor Commented:
berneifitz,

The full path to the SDK folder is C:\Jennic\cygwin\jennic\SDK. There is no C:\Jennic\SDK

The SDK folder contains the following folders:
Application
Chip
Common
Jenie
Platform
Zigbee


mccarl,

The error I posted was generated by eclipse. I also tried it on NetBeans with same errors
0
 
berniefitzCommented:
Try copying that SDK folder to C:\Jennic\ and see how it goes.
I just have a hunch that's where it is trying to find the SDK folder.
0
 
ThomasianAuthor Commented:
Ok. I copied the SDK folder to C:\Jennic and put the application on "C:\Jennic\SDK\Application\JN-AN-1005-Wireless-UART".

errors:
Description	Resource	Path	Location	Type
/cygdrive/c/Jennic/SDK/Chip/Common/Build/config.mk: No such file or directory	Makefile	JN-AN-1005-Wireless-UART/AN1005_154_WUART_Coord/Build	line 129	C/C++ Problem
/cygdrive/c/Jennic/SDK/Platform/Common/Build/Config.mk: No such file or directory	Makefile	JN-AN-1005-Wireless-UART/AN1005_154_WUART_Coord/Build	line 130	C/C++ Problem
/cygdrive/c/Jennic/SDK/Stack/Common/Build/Config.mk: No such file or directory	Makefile	JN-AN-1005-Wireless-UART/AN1005_154_WUART_Coord/Build	line 131	C/C++ Problem
make: *** No rule to make target `/cygdrive/c/Jennic/SDK/Stack/Common/Build/Config.mk'.	JN-AN-1005-Wireless-UART		line 0	C/C++ Problem

Open in new window

0
 
ThomasianAuthor Commented:
On page 6 of the application note it has:

For JN5139:
At the command prompt, enter:
make -f Makefile_JN5139.mk clean all

By command prompt, does it mean the windows command prompt?
0
 
ThomasianAuthor Commented:
I fixed the build issue by setting the build command to "make -f Makefile_JN5139.mk clean all"

Just 1 warning left:

Invalid project path: Duplicate path entries.      JN-AN-1005-Wireless-UART            pathentry      Path Entry Problem

Any idea what that meant?
0
 
berniefitzCommented:
Not sure why this would be happening. It could be IDE dependent.

I found by my google research the following forum thread:

http://stackoverflow.com/questions/307367/eclipse-cdt-invalid-project-path

As i'm not really across that much C/C++ in Eclipse I would give the directions given there and see how you go.

Thanks, Bernie.
0
 
ThomasianAuthor Commented:
In the forum, one of the links shows that the bug is resolved.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=206372

But I have no idea how to apply the patch..
0
 
ThomasianAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.