Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

SAM7X256 and IwIP connot connect to WinPC

Posted by Nobody/Anonymous on October 17, 2006
I tried to build FreeRTOS v4.1.0 and IwIP 1.1.0 on an ARM7X256 using Crossworks 1.6. Everything went fine till I downloaded the code on the ARM. The WinPC I used as a client for the demo refuses to connect properly. It just kept switching from connected to unplunged. I think that there's something wrong with the EMAC routines since I've placed some initial messagges at the begging of the FreeRTOS initialisations and they only appear once(while the Ethernet keeps switching). Has anyone any suggestions on this?

RE: SAM7X256 and IwIP connot connect to WinPC

Posted by Nobody/Anonymous on October 17, 2006
With the cable unplugged the ethernet on the sam7 will attempt to connect every few seconds until it successfully connects. You will see the link LED go on an off every few seconds during this period.

Once the cable is plugged in the next time it attempts to connect should be successful and the LED will stay on.

If it is repeatedly connecting then disconnecting it sounds like the software is running, but not detecting the connection so disconnecting again.

Is the rest of the software running OK? Leds flashing, etc?

Have you got the MII/RMII setup correct for your board.

Are you using the correct cable type?

RE: SAM7X256 and IwIP connot connect to WinPC

Posted by Nobody/Anonymous on October 17, 2006
The leds are flashing allright, meaning that the physical layer is trying to connect to the other end(I suppose...). The cable I'm using is a crossover but I'm not sure about the MII/RMII. What do you mean by saying "correctly"? I thought that every MII chip whould be O.K with the SAM7X's MII. Isn't that right? Anyway I'm using Olimex's SAM7X board with a KS8721BL. Do you think this might be the problem? The thing is that there're no other leds on it so I suppose I have to play a bit with the USART just to be sure that the other tasks are running.

RE: SAM7X256 and IwIP connot connect to WinPC

Posted by Nobody/Anonymous on October 17, 2006
In the EMAC code there is a constant something like

#define USE_RMII

which must be set to 1 for RMII mode and 0 for MII mode. I don't think RMII is reliable on sam7x.

RE: SAM7X256 and IwIP connot connect to WinPC

Posted by Nobody/Anonymous on October 17, 2006
I think the SAM7X's MII interface as it's implemented in FreeRTOS, is based on the existance of DP83840 on the board. So you have (probably) to adjust the way ESAC is communicating over MII with your PHY ethernet chip.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists