Atmel Ethernet1 XPRO with SAM4S xplained pro

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have connect a Atmel Ethernet1 XPRO to the EXT1 header of the SAM4S xplained pro board. And I creat the 'THIRDPARTY_LWIP_RAW_BASIC_HTTP_EXAMPLE' example project and change the SPI selection pin of Ethernet1 XPRO to NPCS[0]. But it does not work. Should I any do anything else? What should I set for the internet on PC? Should I directly connect the board to PC with WLAN cable? I also try to set the board as a client, and send the data to the host on PC. It also does not work. I can not ping the baord. Does any one has the experience with the Ethernet1 XPRO?

 

This is the main code. I just change the SPI CS pin in the example project.

int main(void)
{
    /* Initialize the SAM system. */
    sysclk_init();
    board_init();

    /* Configure debug UART */
    configure_console();

    /* Print example information. */
    puts(STRING_HEADER);

    /* Bring up the ethernet interface & initialize timer0, channel0. */
    init_ethernet();

    /* Bring up the web server. */
    httpd_init();
  
    /* Program main loop. */
    while (1) {
        /* Check for input packet and process it. */
        ethernet_task();
        sys_check_timeouts();
    }
}

Last Edited: Wed. Jun 21, 2017 - 10:13 PM