TAMS

Home | Products | Support | How to Order | Contact Us | Search  

   
Getting Started with eCos

This note is intended as an aide in getting started developing applications for eCos. Unlike most operating systems, the kernel automatically configures itself with just the facilities required for a specific application. The total size of the system can be quite small as a result. 

To build a sample program, go to: 
www.mlbassoc.com/examples/build_hello.html

Use "moab" for the target in the sample program. The eCos repository will be /opt/mlb/ecos/packages on your system. 

After working through the example, you’ll have an executable called "hello" in your working directory. Copy that to the /tftpbootdirectory. Then, you can just load the file using TFTP and Go from the RedBoot prompt. Do not try to specify an address for the load, the file must be loaded where it was linked, and that information is embedded in the file. 

RedBoot> l hello
Using default protocol (TFTP)
Entry point: 0x00080000, address range: 0x00080000-0x0008a39c
RedBoot> g
 
Bus: 0, PCI Device: 1, PCI Func: 0  
  Vendor Id: 0x100B, Device Id: 0x0020, Command: 0x0007, IRQ: 1  
  BAR[0]    0x00800001 / probed size 0x00000000 / CPU addr 0xe8800000  
  BAR[1]    0xfffff000 / probed size 0x00000000 / CPU addr 0x9ffff000 

Bus: 0, PCI Device: 2, PCI Func: 0  
  Vendor Id: 0x1033, Device Id: 0x0035, Command: 0x0006, IRQ: 1  
  BAR[0]    0xfffff000 / probed size 0x00000000 / CPU addr 0x9ffff000 

Bus: 0, PCI Device: 2, PCI Func: 1  
  Vendor Id: 0x1033, Device Id: 0x0035, Command: 0x0006, IRQ: 2  
  BAR[0]    0xfffff000 / probed size 0x00000000 / CPU addr 0x9ffff000 

Bus: 0, PCI Device: 2, PCI Func: 2  
  Vendor Id: 0x1033, Device Id: 0x00E0, Command: 0x0006, IRQ: 3  
  BAR[0]    0xffffff00 / probed size 0x00000000 / CPU addr 0x9fffff00
Hello world!

No provision was made in this program for returning to RedBoot, so the program will hang after execution.
   

 Home | Products | Distributors | Support | Company Info | How to Order | Contact Us | Search

 
All referenced prices are United States Dollars.
Copyright © 1997-2005 Test & Measurement Systems Inc.
Other products and companies referred to herein are trademarks or registered trademarks of their respective companies or mark holders.  Specifications are subject to change without notice.

Test & Measurement Systems Inc.
750 14th Street SW
Loveland, CO 80537

Tel:  + 970-669-6553
Fax: + 970-669-3090
info@tamsinc.com

 

December 16, 2005