XDK Logger can't build
응답
18. 3. 23 오전 8:48

I downloaded the latest version of the Workbench today. I also downloaded the Demo DataLogger. When building the demo I always get this message.

09:47:53 **** Build of configuration XDK Default for project DataLogger ****
mingw32-make debug 
C:\XDK-Workbench\make\mingw32-make.exe  -C C:\XDK-Workbench\SDK/xdk110/Common -f application.mk debug
new_bootloader
mingw32-make[1]: Entering directory 'C:/XDK-Workbench/SDK/xdk110/Common'
mingw32-make[1]: Leaving directory 'C:/XDK-Workbench/SDK/xdk110/Common'
application.mk:244: *** mixed implicit and normal rules.  Stop.
Makefile:39: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2

09:47:54 Build Finished (took 139ms)

What can I do?

0 (0 투표)
RE: XDK Logger can't build
응답
18. 3. 23 오후 1:36 as a reply to Martin Scheck.
Hello Martin,

This issue is most likely caused by the build path, that should point to the location of the Data Logger demo's source code. I assume that it is not set correctly.

To fix this, I recommend navigating to the project properties and then going to C/C++ Build. In that view, you need to set the Build Directory to the location where the Data Logger demo is stored.

Afterwards, save the changes, clean the project and build it again.

However, if this did not solve your error, I recommend deleting the project and reimporting it with the option checked to copy the project into the XDK-Workbench's workspace.

Additionally, make sure that it is not installed on a path with empty spaces (such as C:\Programs\XDK-Workbench 3.3.1)

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 2 오전 4:31 as a reply to Franjo Stjepandic.

Hi Franjo,

I'm having a similar issue and was hoping you could point me in the correct direction.  I'm trying to modify the DataLogger program so it incorporates the AKU 340 acoustic sensor.  My first attempt at this was successful.  However the way I made it work, was by changing the existing code for the Max 44009 sensor.  

Now I'm trying to make a new version of my project and not change the Max 44009 sensor.  This time I'm simply adding the code to make the them all work (AKU 340, BMA 280, etc..).  I finally have been able to compile my project without any errors but the Workbench isn't creating a binary file.  I suspect it is a trivial problem, but I'm not sure.  If you have any ideas that would be great.  Thanks Franjo!

 

Adam

0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 3 오후 12:41 as a reply to Adam Rohde.
Hello Adam,

if the building process finishes without errors, then a binary should have been created as well. To analyze this further, could you please post a screenshot of the console log here? If possible, maximize the console's height, so that the screenshot shows as many lines as possible.

Kind regards,
Franjo
0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 4 오전 3:17 as a reply to Franjo Stjepandic.

Well of course now I can't recreate that exact situation...  Now I'm simply getting 3 errors.  It seems like its a path that is wrong somewhere but I can't find where.  I took the the steps that you mentioned earlier in this post,  (properites, C/C++ Build, Build Directory, etc) and that didn't seem to solve it.  As a FYI, I did change my workspace location when I updated to the latest Workbench.  Anyways, here is the Console tab and the Problems tab.  If you have any ideas I'll try anything at this point!  Thanks Franjo!

Adam

 

 

0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 4 오후 12:18 as a reply to Adam Rohde.

Hello Adam,

Unfortunately, I am not able to reproduce your new error on my end.

In regards to your new error, does this error appear while trying to build other examples from the Welcome-Screen as well?

Furthermore, you mentioned that you changed the workspace location. Where did you change it to? Could you change the location to a path without whitespace in its path name on your C hard drive and import the Data Logger demo project with the option Copy Project into Workspace checked and try to build it again?

Kind regards,
Franjo

0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 5 오전 2:06 as a reply to Franjo Stjepandic.

Hi Franjo,

Currently my Workspace is located at this location - C:\Users\Adam\XDK-Workspace.  Previously it was at  - C:\Program Files (x86).  When I installed the latest version of the Workbench (I kept all setting at defaults) and it installed at C:\Users\Adam\XDK-Workspace.  After that I noticed there were two Workspaces so I deleted the previous one after I saw there were two.

I can build the DataLogger application that is downloaded from the website.  So there is something wrong with my modified datalogger project.  I went thru and compared the properties of both projects, (Resource, Builders, C/C++ Build, C/C++ General, MCU, Project References, etc) and made sure there were the same.  Because I'm useing the acoustic sensor, I'm making the changes in the Make file documented - 

Line 19

export BCDS_XDK_INCLUDES = \
	-I$(BCDS_APP_DIR)/../../SDK/xdk110/Platform/BSP/source/

  

Could that have an affect?

 

Here is screen shots 

Picture 1 - is the console window from the default datalogger project.  (The one works)

Picture 2 - proof that it works  showing the binary

Picture 3 - shows the make file from my modified project and the errors. 

Picture 4 - the entire console after building the modified project.  

 

No matter what I do I can't get rid of these three errors.


mingw32-make: *** [debug] Error 2 

mingw32-make[1]: *** No rule to make target 'C:/Users/Adam/XDK Workspace/DataLogger/debug/objects/AKU_340_cc.o', needed by 'C:/Users/Adam/XDK-Workspace/DataLogger/debug/DDL_demoDataLogger.out'.  Stop. 

recipe for target 'debug' failed  


Do you know if there is something I need to do to make the " AKU_340_cc.o"?  Orignally the way I made it work was by hacking the MAX_44009 and implementing the acoustic sensor code into it.  The customer wasn't using the light sensor so it worked.  In that case, (different from this one) I didn't add any .c, or .h  files.  Just changed the code within existing ones.  I could go back to that project but it would be nice to make this work so all the sensors were options. 

 

Thanks Franjo,

 

Adam

 

 

    

 

0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 5 오전 10:58 as a reply to Adam Rohde.
Hello Adam,

so it seems that everything is actually in order (more or less) in regards to the code.

The lines in the makefile that you showed in your post (regarding BCDS_XDK_INCLUDES ), may cause an issue, but they should not. In any case, replacing that with the following will avoid any possible error in that regard:
 
export BCDS_XDK_INCLUDES = \ -I$(BCDS_BASE_DIR)/xdk110/Platform/BSP/source/ 

The error in screenshots 3 and 4 is most likely due to line 23 in your Makefile, where you include $(BCDS_APP_DIR)/AKU340_cc.c as a source-file. The Compiler can not find that file, since it is actually placed in the subdirectory $(BCDS_APP_DIR)/AKU340 , as seen in your Project Explorer. Therefore, the compiler throws an error.

As a matter of fact, line 32 in your Makefile adds the correct source. Deleting line 23 should suffice to solve this error.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 6 오전 4:45 as a reply to Franjo Stjepandic.

Thanks Franjo,

I got minimal time to work on this today but I did try your suggestions and unfortunately I got the same errors.  I actually tried re-installing the Workbench too.  That didn't help.  

I have been importing the projects using the method described in the documention.  (Import, Import Existing Project, etc).  For that to work do I have to do anything special to the project other then saving?  For example, after i reinstalled the Workbench I copy and pasted the folder (that contained my proect) into the workspace.  Then I imported the the project using the procedure mentioned.   It appears ok until I do a clean-->build project.  Then I get the same errors seen in the last reply.  I'm sure it's something very trivial but I'm having a heck of a time finding what that thing is. 

Hopefully tomorrrow I could work more on it.  I'll let you know how it goes.   I may just use the default project and build it up manually like I did the first time.  But I would like to figure this out because I had a customer who was having the same issue when I gave him my project (that was working) and had him try to use it on his computer.  Something didn't transfer properly correctly or a path was wrong and gave the same errors concerning the make file.  

Thanks again Franjo!

Adam   

0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 6 오전 9:06 as a reply to Adam Rohde.
Hello Adam,

Just to be clear, you removed the include $(BCDS_APP_DIR)/AKU340_cc.c \ at line 23 in the makefile of your modified Data Logger demo, saved the changes and tried a build and clean once more?

Otherwise, I can only make random guesses as to why these errors occur. Perhaps a property of the project's settings is broken.

To see if this might be the case, I would ask you to import the project with an alternative approach. For this, import it while checking the checkbox Copy Project into Workspace without copying it manually into the workspace beforehand.

Otherwise, if this issue still persists, it would be best that I take a look at the project as well. For that, I would ask you to post your email in here, so that I can contact you for the application code.

Kind regards,
Franjo
0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 10 오전 4:29 as a reply to Franjo Stjepandic.

Hi Franjo,

This application (demo) changed and now I'm using a differenet project.  This project is one I created a in 2016 I beleive that is based off the SendAccelDataOverUdpAndBle.  I made some changes but nothing drastic.  

 

I was getting the same problem when I tried to import this project.  Eventually I decided to go back to the Workbench version I was using when I originally did it.  This solved all the problems.  There must be certain libraries that were deprecated?  The version that works is - 2.0.1.  For now I'll just continue using this version unless there are problems that could manifest from it.   Thanks for the support Franjo!  

 

Adam

0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 10 오전 9:11 as a reply to Adam Rohde.
Hello Adam,

you still did not mention, whether you have followed my advice from last thursday . Did it produce another error instead of solving the issue?

In regards to the other project, which you mentioned is based off of the SendAccelDataOverUdpAndBle example from 2016, this does most likely not work since there had been numerous changes from the SDK of 2016 compared to the current SDK.

Especially from XDK-Workbench version 2.0.1 to 3.0.0, since the Platform BLE stack had been changed in favor of an event-driven implementation. The Startup module has been overhauled as well.

There are various ways to migrate an old project, but the easiest would be to take the same example from the newest project, and incorporate the custom code into that new project.

Kind regards,
Franjo
0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 10 오후 12:33 as a reply to Franjo Stjepandic.

Hi Franjo,

Yes sorry about that.  I did remove $(BCDS_APP_DIR)/AKU340_cc.c \ from line 23 like you mentioned.  I still had the same results.  I'll try again today if I get some time.  If I'm unsucesssful I'll send the project over to you.  Thanks Franjo.

0 (0 투표)
RE: XDK Logger can't build
응답
18. 4. 11 오후 3:10 as a reply to Adam Rohde.
Hello Adam,

Thank you very much for clarifying. Ich am looking forward hearing from you again soon, whether you were able to solve the issue or if further investigation is required.

Kind regards,
Franjo
0 (0 투표)