Emesh Building Error

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Emesh Building Error

Postby adeshpande » Fri Jul 18, 2014 2:39 pm

Hi,

I was wondering if anyone knows this error is and how to fix it? I am trying to build the emesh_traffic function.

https://fbcdn-sphotos-h-a.akamaihd.net/ ... b31610f38c

Thanks
adeshpande
 
Posts: 40
Joined: Wed Jul 02, 2014 7:20 pm

Re: Emesh Building Error

Postby greytery » Fri Jul 18, 2014 3:27 pm

I believe this is similar to epiphany-hal.c fails to compile #12.

It's where the ESDK manual and the esdk seem to have drifted apart.

The e-lib/include/e.regs.h defines E_REG_MESHCFG.
epiphany_sdk_reference.pdf Rev 5.13.09.10 (p119) says E_REG_MESH_CONFIG.

I also raised e-regs.h inconsistent #13 which perhaps mistakenly ;) was downgraded to an 'enhancement'.

Cheers,
tery
User avatar
greytery
 
Posts: 205
Joined: Sat Dec 07, 2013 12:19 pm
Location: ^Wycombe, UK

Re: Emesh Building Error

Postby adeshpande » Fri Jul 18, 2014 5:48 pm

Sorry, so how would I fix this?
adeshpande
 
Posts: 40
Joined: Wed Jul 02, 2014 7:20 pm

Re: Emesh Building Error

Postby notzed » Sat Jul 19, 2014 4:00 am

as a hack/workground add this to the file before it is used:

#define E_REG_MESH_CONFIG E_REG_MESHCFG // value 0xf0700

In future i suggest just pasting text into the message and using a [code] block around it. Photos have a habit of vanishing in the future and breaking forums. On gnu/linux you should normally be able to just highlight the text witht he left button and paste with the middle button.
notzed
 
Posts: 331
Joined: Mon Dec 17, 2012 12:28 am
Location: Australia

Re: Emesh Building Error

Postby greytery » Sat Jul 19, 2014 9:52 am

adeshpande wrote:Sorry, so how would I fix this?


Apologies, the hack should suffice for now.

TAKE CARE: there are other #defines for the register names in the current Github e-lib.h ( e.regs.h) and e-hal.h (epiphany-hal-data.h) files that are inconsistent between the manual and the esdk. Chances are there could be further errors of this type - and maybe even with the published Epiphany examples like this one.

Hack#2 : Short term, if you get a similar compilation error, look for the 'missing' name in the manual and check the list in e-regs.h or epiphany-hal-data.h; apply the same type of double name trick as per notzed's Hack#1 above.

The 'enhancement' needs to be treated as a bug (with a little urgency).

Cheers
tery
User avatar
greytery
 
Posts: 205
Joined: Sat Dec 07, 2013 12:19 pm
Location: ^Wycombe, UK

Re: Emesh Building Error

Postby adeshpande » Sat Jul 19, 2014 1:02 pm

Do I add it to the mesh_traffic.c file?
adeshpande
 
Posts: 40
Joined: Wed Jul 02, 2014 7:20 pm

Re: Emesh Building Error

Postby greytery » Sat Jul 19, 2014 4:30 pm

notzed wrote:as a hack/workground add this to the file before it is used:

#define E_REG_MESH_CONFIG E_REG_MESHCFG // value 0xf0700


That is, add it to the file where the error happened; from your screen picture that's: e_mesh_transmitter.c

However, I've just looked at the emesh example code and that constant is used in two files!!
You could edit e-regs.h, but it's easier at this stage to add the line to both e_mesh_transmitter.c and e_mesh_receiver.c.
Add the line just after: #include "e_lib.h"

{You may need to remove this when the epiphany-libs get updated to remove the bug}.

This is a view from my desk - I cannot verify at the moment because my sdk is broken. Please fly this and see if it crashes.

Cheers,
tery
User avatar
greytery
 
Posts: 205
Joined: Sat Dec 07, 2013 12:19 pm
Location: ^Wycombe, UK


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 10 guests

cron