Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 1 of 1

Thread: Compiler warning from ethernet library together with vMicro in MS Visual Studio 2017

  1. #1

    Compiler warning from ethernet library together with vMicro in MS Visual Studio 2017

    Hi,

    with the above combination i am getting compiler warnings:

    Compiling debug version of 'TestProjekt' for 'Teensy 3.6'
    w5100.cpp: In static member function static uint8_t W5100Class::init()
    w5100.cpp: 86:39: warning: 'void SPIFIFOclass::begin(uint8_t, uint32_t, uint32_t)' is deprecated [-Wdeprecated-declarations]
    SPIFIFO.begin(ss_pin, SPI_CLOCK_12MHz); \\ W5100 is 14 MHz max

    w5100.cpp:13: In file included from
    SPIFIFO.h:231: note declared here
    inline void begin(uint8_t pin, uint32_t speed, uint32_t mode=SPI_MODE0) __attribute__((always_inline, deprecated)) {
    Program size: 14.340 bytes (used 1% of a 1.048.576 byte maximum) (11,17 secs)
    Minimum Memory Usage: 5040 bytes (2% of a 262144 byte maximum)

    from this:

    uint8_t W5100Class::init(void)
    {
    uint16_t TXBUF_BASE, RXBUF_BASE;
    uint8_t i;

    // Many Ethernet shields have a CAT811 or similar reset chip
    // connected to W5100 or W5200 chips. The W5200 will not work at
    // all, and may even drive its MISO pin, until given an active low
    // reset pulse! The CAT811 has a 240 ms typical pulse length, and
    // a 400 ms worst case maximum pulse length. MAX811 has a worst
    // case maximum 560 ms pulse length. This delay is meant to wait
    // until the reset pulse is ended. If your hardware has a shorter
    // reset time, this can be edited or removed.
    delay(560);
    //Serial.println("w5100 init");

    #ifdef USE_SPIFIFO
    SPI.begin();
    SPIFIFO.begin(ss_pin, SPI_CLOCK_12MHz); // W5100 is 14 MHz max
    #else
    SPI.begin();
    initSS();
    resetSS();
    #endif

    Mysterious is that this comes from the section #ifdef USE_SPIFIFO which is marked from the IDE as not active.

    Is there someone who can help me here..

    Thank you

    Torsten
    Last edited by Spyy; 02-15-2018 at 05:27 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •