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


Embedded Web demo code on AT91SAM7A1

Posted by Nobody/Anonymous on January 3, 2006

Your demo code using AT91SAM7X evaluation board is wonderful. Unfortunately, I'm using AT91SAM7A1 chip and SMSC's Lan9115 MAC chip. I would like to try out your demo program on our board to see how freeRTOS works out. However, apparently, the EMAC driver code needs to be replaced. (Of course, the startup assembly code also need to be replaced.) What does it take to adapt the AT91SAM7X EMAC code so that it will work with SMSC's Lan9115 chip? (SMSC only provides code for Win CE and Linux. So, there is no code available for CrossStudio.)

Thanks for your help.

RE: Embedded Web demo code on AT91SAM7A1

Posted by Richard on January 3, 2006
The EMAC driver code is tightly coupled to the EMAC peripheral within the AT91SAM7X chip. The driver configures the EMAC peripheral, then processes events to pass data into and out from the peripheral - presenting the data to the demo source code. If you are wanting to use a different NIC then you will require an equivalent driver for your LAN9115 chip. The driver source code is (hopefully) well commented so you can see what it is doing. If everything were ideal you would be able to keep the same function prototypes and just change the function implementation to access your LAN9115 registers as necessary rather than the EMAC registers.

I have had a quick look on the SMSC WEB site and the following links may provide some useful information:

http://www.smsc.com/main/catalog/lan9115.html#Additional%20Information Right down the bottom of this page is a 'generic driver' source code link. I have not looked at it as I don't have an SMSC login, but normally this type of driver will do everything you require with a 'portable' interface that you have to complete for your particular hardware configuration.

Again I have not looked at it but from the title http://ftp.smsc.com/main/anpdf/an1212.pdf appears to give the register information you would require.

Also the Linux driver might provide a useful reference but would presumable require a lot of stripping.

Which board are you using?


RE: Embedded Web demo code on AT91SAM7A1

Posted by Nobody/Anonymous on January 3, 2006

Thanks for your detailed help. I appreciate it very much.

It seems that I don't have an easy way out but follow your recommendations, which is also what I would do if I have to adapt it myself.

The generic code on SMSC web site is pseudo code, I can only use it as a reference.

So, I think I just have to create an animal from several different animals, i.e., SMSC pseudo code, SMSC linux code, Atmel EMAC code and SMSC documentations.

I'm using a custom board.

Thanks again for your help.

[ 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