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

Can't Initialise the MAC on SAM7-EX256

Posted by Dulguun Tsendsuren on December 12, 2008
I'm using FreeRTOS 5.1.1

Here my problem is:

The following loop begins by do, couldn't initialize the MAC. Means this loop doesn't end. Here xEMACInit function is driver specific, and it uses MII interface not RMII.

void vuIP_Task( void *pvParameters ){
...
/* Initialise the MAC. */
do{
RSC_Call("xEMACSemaphore is NULL\n\r");
vTaskDelay( uipINIT_WAIT );
xEMACSemaphore = xEMACInit();
} while( xEMACSemaphore == NULL );
...
}

I would appreciate any idea on my problem.
Please help me !!!

RE: Can't Initialise the MAC on SAM7-EX256

Posted by Richard on December 12, 2008
You will have to step into the xEMACInit() function to see where and what is failing. Do you have a cable plugged in?

Regards.

RE: Can't Initialise the MAC on SAM7-EX256

Posted by Dulguun Tsendsuren on December 12, 2008
Yes, I have a cable plugged in.
For me problem seems like xEMACInit() function does not access network controller properly.
Network controller chip was Micrel KS8721BL. Is this xEMACInit() function suit for it?

And actually, I can't figure out the ports defined in AT91SAM... .h related to the network controller chip.

RE: Can't Initialise the MAC on SAM7-EX256

Posted by Dave on December 12, 2008
The demo is setup to use whichever PHY is on the AT91SAM7X-EK board, which I don't think is a Micrel part but I could be wrong.

RE: Can't Initialise the MAC on SAM7-EX256

Posted by Dulguun Tsendsuren on December 12, 2008
Thanks Davedoors.
Is there any source for SAM7EX-256 accessing Micrel KS8721BL controller?

RE: Can't Initialise the MAC on SAM7-EX256

Posted by Mikael Ostensson on December 12, 2008
I believe I ran into the same issue (seem my thread a few threads back).
I tracked it down to the code tries to identify the PHY, the ID's returned are 0x000FFFF.
It may be earlier in the process, that initialization lacks something.

I have just gotten another non-preemptive OS to run on this board and gotten the Ethernet working. So for now, I'll use that to learn ARM coding, and if it falls short of my needs, I'll look at how the PHY is initialized there and try to take some hints from there how the PHY is initialized and perhaps try to fix the demo code, but for now I believe I will try to learn the ARM programming under uTasker, a simple co-op scheduler with IP stack and a few other goodies and it's free for non commercial/ educational use.

I have their sample up and running and will try add support for a scrolling buffer on the LCD and SD/Fatfs card next.


[ 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