Motherboard Forums


Reply
Thread Tools Display Modes

Need Sample MPC860 Code

 
 





















Fahd
Guest
Posts: n/a

 
      06-26-2003, 01:54 AM


Hi, i am working with an Embedded Planet RPX MPC860 board and am
totally new to embedded programming. All i want to do is verify the
steps to compile some code and put it into the flash memory. I can
follow the steps to make the flash image but i need some sample code
to put in. If some one could just point me to the right direction
where i can find any small peice of code that can run in the MPC860 i
would greatly apretiate it. Anything will suffice, maybe somthing
small like a counter or somthing that toggles a register in the
MPC860.

I am just really new at this and am having a hard time finding the
proper libraries for c so i don't really know what sort of functions
calls are at my disposal. Anything to get me started will be nice.

Please help!! Thanks in advance.

Fahd A
 
Reply With Quote
 
rw
Guest
Posts: n/a

 
      06-26-2003, 02:54 AM
http://www.allayer.com/pdf/ab006.pdf

 
Reply With Quote
 
David J Edgar
Guest
Posts: n/a

 
      06-26-2003, 01:21 PM
"Fahd" <> wrote in message
news: om...
> Hi, i am working with an Embedded Planet RPX MPC860 board and am
> totally new to embedded programming. All i want to do is verify the
> steps to compile some code and put it into the flash memory. I can
> follow the steps to make the flash image but i need some sample code
> to put in. If some one could just point me to the right direction
> where i can find any small peice of code that can run in the MPC860 i
> would greatly apretiate it. Anything will suffice, maybe somthing
> small like a counter or somthing that toggles a register in the
> MPC860.
>
> I am just really new at this and am having a hard time finding the
> proper libraries for c so i don't really know what sort of functions
> calls are at my disposal. Anything to get me started will be nice.
>
> Please help!! Thanks in advance.
>
> Fahd A
>


There is sample code for the MBX860 - a MPC860 based board from the Motorola
Computer Group available at:

http://www.omega-environment.com/ome...tribution.html
http://www.omega-environment.com/dow...spDistribution

Download the 'Omega Environment OmegaBSP Distribution' and disregard the
references to the Omega RTOS - should serve as a good example.

Dave.

--
David J Edgar
Cedaryacht Limited
Macclesfield UK.
http://www.omega-environment.com/


 
Reply With Quote
 
Fahd
Guest
Posts: n/a

 
      06-26-2003, 01:23 PM
rw <> wrote in message news:<>...
> http://www.allayer.com/pdf/ab006.pdf


Hi, Thanks for the link, i already saw that one, unfortunatlly the
source code in there is not targetted for the MPC860, it is ABLE-HDL
targeting a PAL. I was looking for some simple source code running
inside the MPC860.

I am wondering, if i wrote a simple Hello World program using stdio as
the library but targeted it to the MPC860, exactlly what would the
printf statement write out to? Maybe i can substitute the printf for
another function that would write out to the serial port so i can
monitor it? I think i also need to make sure that the MPC860 is
already running a linux kernel. As you can tell i am a total noob.

#include <stdio.h>
int main(void)
{
printf("Hello World !\n"); // Maybe substitute this with another
function?
return(0);
}

Thank you for your help.

Fahd
 
Reply With Quote
 
Gary Kato
Guest
Posts: n/a

 
      06-26-2003, 02:38 PM
You might want to check out books on programming embedded systems. There are
plenty out there. "Programming Embedded Systems in C and C++" from O'Reilly
seems ok. It takes someone who is used to coding on desktop/workstation
computers and explains how things are different in the embedded world.
 
Reply With Quote
 
Wolfgang Denk
Guest
Posts: n/a

 
      06-26-2003, 06:05 PM
(Fahd) writes:

>Hi, i am working with an Embedded Planet RPX MPC860 board and am

....
>I am just really new at this and am having a hard time finding the
>proper libraries for c so i don't really know what sort of functions
>calls are at my disposal. Anything to get me started will be nice.


Download the U-Boot source code, study it, configure it for the RPX
board (which is supported as one of the many default configurations),
install it into flash, run it, check the example programs in the
examples/ directory, etc.

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Web: www.denx.de
Conceptual integrity in turn dictates that the design must proceed
from one mind, or from a very small number of agreeing resonant
minds. - Frederick Brooks Jr., "The Mythical Man Month"
 
Reply With Quote
 
Fahd
Guest
Posts: n/a

 
      06-27-2003, 02:01 PM
Wolfgang Denk <> wrote in message news:<>...
> (Fahd) writes:
>
> >Hi, i am working with an Embedded Planet RPX MPC860 board and am

> ...
> >I am just really new at this and am having a hard time finding the
> >proper libraries for c so i don't really know what sort of functions
> >calls are at my disposal. Anything to get me started will be nice.

>
> Download the U-Boot source code, study it, configure it for the RPX
> board (which is supported as one of the many default configurations),
> install it into flash, run it, check the example programs in the
> examples/ directory, etc.
>
> Wolfgang Denk


Thanks Denk, I will try and do a search for the U-Boot source. Does
Denx have this on their website? By the way i was already using the
ELDK 2.1.0 from denx to do the cross compilations. Thanks for all your
help guys, i might also pickup the programming book.

Oh, and i came across this place montavistasoftware.com, they offer a
linux distribution for the RPXlite board from EP, i have an app note
that describes debugging the kernel with a BDI2000 using GDB, exactlly
what i was looking for.

Thanks,

Fahd
 
Reply With Quote
 
Wolfgang Denk
Guest
Posts: n/a

 
      06-27-2003, 04:12 PM
(Fahd) writes:

>Thanks Denk, I will try and do a search for the U-Boot source. Does


google should point you directly to project page at
http://sourceforge.net/projects/u-boot

>Denx have this on their website? By the way i was already using the


Yes, we have all officialy released version on out FTP server at
ftp://ftp.denx.de/pub/u-boot/

>ELDK 2.1.0 from denx to do the cross compilations. Thanks for all your
>help guys, i might also pickup the programming book.


If you have the ELDK installed, just look in
/opt/eldk/ppc_8xx/usr/src/u-boot*


Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Web: www.denx.de
Anyone who isn't confused here doesn't really know what's going on.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tyan S2932 - Post code D5 with Opteron 2212 bosnianace@gmail.com Tyan 0 04-23-2008 11:38 PM
What means POST code 26 in GA-X38-DS5 BIOS? Petr Soucek Gigabyte 0 03-05-2008 07:17 PM
Re: Can't do scratch install of XP Home on HP Pavilion with key code on sticker Tee HP 2 03-04-2008 02:31 PM
Skybuck's Universal Code 4,Delphi Demonstration Program Skybuck Flying Asus 8 05-28-2007 11:30 PM
Skybuck's Universal Code 4 (memory efficient) Skybuck Flying Asus 21 05-28-2007 08:34 PM


All times are GMT. The time now is 01:24 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43