Jump to content
43oh

[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 ...

Link to post
Share on other sites
  • 1 month later...
  • Replies 43
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

This is a JeeLab ENC28J60 library mod for Energia StellarPad, working OK with other devices on the same SPI bus.   Library: Ethercard_v09a.zip Ethercard_v09.zip Ethercard_v08.zip EtherCard_v07a

Just tried the EtherCard examples with my ENC28j60 breakout board and it works perfectly.  Thanks for sharing this.

bump... New 0.2 version

Posted Images

  • 3 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 4 months later...
  • 2 weeks later...

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.

Link to post
Share on other sites
  • 2 months later...

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.

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!

Link to post
Share on other sites
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...