Getting errors while building the demo from RT Druid

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Post Reply
abhinav2003
Newbie
Posts: 5
Joined: Mon Oct 08, 2018 7:21 pm

Getting errors while building the demo from RT Druid

Post by abhinav2003 » Tue Oct 09, 2018 12:50 am

Hello

I'm having problem when I'm trying to build one of the demos that were available through the RT Druid Eclipse for Erika v3 for ATmega 328.

I was trying the full demo 2 from the provided demos ( the one with the alarms and semaphores) and whenever I'm trying to build the project I'm getting these two errors (attached image). It's not only this demo but I've tried the other 3 demos as well and I'm getting the same problem. I've rectified most of them by looking what's actually wrong so that it's giving the error but these 2 errors don't have a proper explanation about why the error is happening.
Any help would be much appreciated.

PS: I am not familiar with eclipse as I've only worked with Keil and Arduino IDE till now and it's fresh for me. So I might have made some silly mistake.

Thanks in advance
Attachments
problem.PNG
problem.PNG (84.19 KiB) Viewed 4998 times

abhinav2003
Newbie
Posts: 5
Joined: Mon Oct 08, 2018 7:21 pm

Re: Getting errors while building the demo from RT Druid

Post by abhinav2003 » Tue Oct 09, 2018 3:29 am

Update: i've finally got it working but when I'm trying to make upload the file into arduino uno using cygwin, it gives me the following error message
"No rule to make target 'upload'. Stop"

I've built everything. I got the .cpp file, .oil file, erika file, out file, .c file and the hidden .cproject, .project and . settings file

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Getting errors while building the demo from RT Druid

Post by paolo.gai » Tue Oct 09, 2018 9:36 am

when you create a project, your workspace gets initialized with the source code. Then the OIL configuration build starts.

After that, you need to build the code, and get the ELF file --> were you able to compile and get the ELF file? (your mail only cites the sources and not the objects/libraries/elf files)

Finally, create the target upload and run it to program the board?

PJ

abhinav2003
Newbie
Posts: 5
Joined: Mon Oct 08, 2018 7:21 pm

Re: Getting errors while building the demo from RT Druid

Post by abhinav2003 » Tue Oct 09, 2018 4:18 pm

Yes I built the project and it gave me zero errors but a few warnings which I ignored.
In the workspace directory I didn't find any .elf files
All I have are the .cpp, .oil, properties, .c and the .xml files
I tried to make the .cpp file and using "make code" command in cygwin and it's giving me the error that it cannot find the ee library itself.

Also I tried to import the project from your github for the erika v3 and I was able to import it but the eclipse isn't letting me build the project and giving me the same issue as the unable to find ee library


Thanks in advance

AK

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Getting errors while building the demo from RT Druid

Post by paolo.gai » Tue Oct 09, 2018 4:23 pm

Please provide the console output in eclipse (not the screenshot of the eclipse error window) after you build the project.
The console output should contain the source of the error.

PJ

abhinav2003
Newbie
Posts: 5
Joined: Mon Oct 08, 2018 7:21 pm

Re: Getting errors while building the demo from RT Druid

Post by abhinav2003 » Tue Oct 09, 2018 6:59 pm

Hello Paolo

I'm not receiving any more errors while building the project. Just a couple of warnings which I'm ignoring.

The new problem I'm facing right now is to make file the .cpp using Cygwin terminal because building the project isn't giving me the file that can be uploaded into the arduino using make upload. It says "no rule to make target upload". And also when I'm trying the make the file it isn't detecting the ee.h file.
Attachments
1-1.PNG
1-1.PNG (89.26 KiB) Viewed 4985 times

abhinav2003
Newbie
Posts: 5
Joined: Mon Oct 08, 2018 7:21 pm

Re: Getting errors while building the demo from RT Druid

Post by abhinav2003 » Tue Oct 09, 2018 11:40 pm

Update: I forgot to add these attachments
Attachments
cyg.PNG
cyg.PNG (16.38 KiB) Viewed 4983 times
1-2.PNG
1-2.PNG (87.78 KiB) Viewed 4983 times

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Getting errors while building the demo from RT Druid

Post by paolo.gai » Wed Oct 10, 2018 6:10 am

No. You cannot write "make code" expecting it to build the application...

Please follow the Wiki:
http://www.erika-enterprise.com/wiki/in ... on_Windows

PJ

Post Reply