Jump to content
Forum sending old emails Read more... ×
reaper7

[Energia Library] StellarPad EtherCard (enc28j60) library

Recommended Posts

So I made the modifications. In fact I realize that some commands are doubled but that's not a problem so I let it for a later job. 

 

Unfortunaly my ENC seems dead : still not working so I checked with my oscilloscope and no movement on MISO even if SCK, CS and MOSI seem to send commands.

 

So I wait my replacement ENCs ...

Share this post


Link to post
Share on other sites

Hi,

I am able to get the testDHCP example working, but on others I get the following error:

 In function `abort':
abort.c:(.text.abort+0xa): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status

How do I fix that?

I have tried different versions of Energia, I have replaced the 'cores' lm4f library, I have replaced spi.cpp and spi.h.

 

EDIT: I figured it out, there is a commented section in startup_gcc.c

__attribute__((weak))
extern void _exit (void)
{

}

I uncommented and it is working fine now.

Share this post


Link to post
Share on other sites

Hi,

I am able to get the testDHCP example working, but on others I get the following error:

 In function `abort':
abort.c:(.text.abort+0xa): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status

How do I fix that?

I have tried different versions of Energia, I have replaced the 'cores' lm4f library, I have replaced spi.cpp and spi.h.

 

EDIT: I figured it out, there is a commented section in startup_gcc.c

__attribute__((weak))
extern void _exit (void)
{

}

I uncommented and it is working fine now.

Thank you!

I was looking for anything wrong within the browseUrl() method (with no luck) when I saw your new EDIT.

Share this post


Link to post
Share on other sites

I'd like to compile the Ethercard library using IAR workbench and see if the performance is any different than that of the Energia platform.  We have an evaluation version of IAR so hoping this could yield an interesting comparison between the commercial and free tool for the MSP430.

 

I'm not an expert in the MSP430, but I do have it connected to an enc28j60 board and the backsoon/ping works fine.  On my todo list is to create an example that pushes a lot of data back and forth.

 

In any case, my first crack at the port gives me compile errors that I'm not sure what they mean or how to solve:

 

In the Print class:

     'class Print' has virtual functions but non-virtual destructor  : class Print

     error: expected ',' or '...' before '&' token    :  size_t print(const String &);

     ISO C++ forbids declaration of 'String' with no type  :  size_t print(const String &);

 

Perhaps related to the above Print errors, the BufferFiller class (which inherits from Print) has the error:   'class BufferFiller' has virtual functions but non-virtual destructor

 

So I understand Print.cpp has it's roots in the Wiring/Arduino world, and the the guts seem to call 'write'... but would would be the bare minimum functions in the Print Class that I would need to implement?  Assuming that's the issue?

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×