Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

PK enc28j60


  • Please log in to reply
5 replies to this topic

#1 pascal06

pascal06

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationFrance

Posted 21 August 2010 - 04:49 PM

Hello, I'm trying to compile netduino firmware with lwIP and enc28j60, First off all, I need to remove a lot of features to have suffisant flash memory (like SD, File System, Stream ...), I just need to have a advice regarding pin definition in file enc28j60_LWIP_config_stubs.cpp : #define ENC28J60_INT MC9328MXL_GPIO::c_Port_A_06 <- #define ENC28J60_CS MC9328MXL_GPIO::c_Port_A_04 <- #define ENC28J60_CS_ACTIVE FALSE #define ENC28J60_MSK_IDLE FALSE #define ENC28J60_MSK_SAMPLE_EDGE TRUE #define ENC28J60_16BIT_OP FALSE #define ENC28J60_CLOCK_RATE_KHZ 25000 #define ENC28J60_CS_SETUP_USEC 0 #define ENC28J60_CS_HOLD_USEC 0 #define ENC28J60_MODULE MC9328MXL_SPI::c_SPI1 <- What can I define for theses three define ? My ethernet shield use PB2 (Arduino 10) for CS and PD2 (Arduino 2) for INT. Thanks in advance for your help, Pascal PS: I cannot build your std firmware with gcc without flash memory issue. I suppose that you use RDVS instead, which is more efficient, right ?

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 21 August 2010 - 06:02 PM

PS: I cannot build your std firmware with gcc without flash memory issue. I suppose that you use RDVS instead, which is more efficient, right ?


You should be able to build the standard firmware with GCC (just make sure you're building the Release build with msbuild's /p:flavor=Release switch and make sure that you're using the CodeSourcery version specified in the .NET MF release notes).

We do use RVDS to get the best results...but .NET MF fully supports GCC as well.

Chris

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 21 August 2010 - 06:06 PM

#define ENC28J60_INT MC9328MXL_GPIO::c_Port_A_06 <-
#define ENC28J60_CS MC9328MXL_GPIO::c_Port_A_04 <-
#define ENC28J60_MODULE MC9328MXL_SPI::c_SPI1 <-

What can I define for theses three define ? My ethernet shield use PB2 (Arduino 10) for CS and PD2 (Arduino 2) for INT.


From the online schematics:
D2 = Port A 00
D10 = Port B 22

You'll want to use the C++ SPI0 channel. That's the internal reference for the "SPI1" that Netduino exposes over digital pins D11-D13.

Chris

#4 LibraMan33

LibraMan33

    New Member

  • Members
  • Pip
  • 9 posts

Posted 19 March 2012 - 03:15 PM

hi there could you please show me a road map of pk thanks yours ahmed

#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 19 March 2012 - 05:53 PM

Hi ahmed,

could you please show me a road map of pk

These are linked from the Documentation page at netmf.codeplex.com:
http://netmf.codeple...m/documentation

The roadmap for .NET MF vNext hasn't been published yet, but should hopefully be collated and published soon.

Chris

#6 LibraMan33

LibraMan33

    New Member

  • Members
  • Pip
  • 9 posts

Posted 21 March 2012 - 12:20 AM

Hello,

I'm trying to compile netduino firmware with lwIP and enc28j60,

First off all, I need to remove a lot of features to have suffisant flash memory (like SD, File System, Stream ...),

I just need to have a advice regarding pin definition in file enc28j60_LWIP_config_stubs.cpp :

#define ENC28J60_INT MC9328MXL_GPIO::c_Port_A_06 <-
#define ENC28J60_CS MC9328MXL_GPIO::c_Port_A_04 <-
#define ENC28J60_CS_ACTIVE FALSE
#define ENC28J60_MSK_IDLE FALSE
#define ENC28J60_MSK_SAMPLE_EDGE TRUE
#define ENC28J60_16BIT_OP FALSE
#define ENC28J60_CLOCK_RATE_KHZ 25000
#define ENC28J60_CS_SETUP_USEC 0
#define ENC28J60_CS_HOLD_USEC 0
#define ENC28J60_MODULE MC9328MXL_SPI::c_SPI1 <-

What can I define for theses three define ? My ethernet shield use PB2 (Arduino 10) for CS and PD2 (Arduino 2) for INT.

Thanks in advance for your help,
Pascal

PS: I cannot build your std firmware with gcc without flash memory issue. I suppose that you use RDVS instead, which is more efficient, right ?



hi pascal

could you plz tell me how to do so

thanks alot




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.