Re: New User - Help!
"spw_lotus" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi Eric Once again thanks for your input. You are correct about the Axiom board. I have uploaded a sample application into the RAM and run it using the monitor program. I now want to compile the sample program supplied and this is where my problems start. The Axiom support CD supplies a simple 'hello world' application that it states was compilied with the Diab compiler....however when I try to compile the application as supplied I get error messages as below: ------------------------------------------------------------------ C:\diab\5.2.1.0\src\hello>hello_r C:\diab\5.2.1.0\src\hello>dcc -tPPC555EN:simple serial.c hello.c -o hello_r.elf -g -XO -Wmhello_r.dld -m2 1>hello_r.map dld: warning: Don't know where to allocate input section: dld: no matching input specification found in linker command file. dld: Section name: .ctors dld: File: ctordtor.o(C:\Diab\5.2.1.0\PPCE\libimpl.a) dld: Unable to link without .ctors or .dtors section allocation C:\diab\5.2.1.0\src\hello>ddump -R -v -o hello_r.s19 hello_r.elf ddump: warning Can't open file hello_r.elf: No error ddump: warning hello_r.elf : Unrecognized file type. Neither COFF nor ELF ------------------------------------------------------------------ It is obviously down to some linker issue. I emailed Axiom but still have received no response. Let's hope they reply soon! Best regards Steve Wiggins --- In [email protected], "Eric" <Elsbon25@u...> wrote: > > > Ok, so the PB-0555 is a somewhat limited board, in that it does not > have any externel flash or ram on it. This means you have to use the > resources on-chip. > > I'm not sure about Diab, as I never really used it much. As for > CodeWarrior, it looks like you might be able to use that to access the > internal flash (writing and running out of internal flash seems to be > pretty much your only option for how to run a program). The flash > programmer does appear to have settings that might work with that > board. (Using CodeWarrior requires a Wiggler to plug into the BDM > port on the board - do you have this?) > > I seem to recall that the Axiom boot monitor (assuming this board has > one in EEPROM like the CME-555) allows you to transfer an s19 file > into internal flash. I've found that utility to be useful in the > past. It might be easier for you (less to configure) than > CodeWarrior, but it will certainly be much slower, if I recall correctly. > > As for making a program that you can load into internal flash, um, I'm > at a bit of a loss. Doesn't Axiom give you a few sample programs? > I'd try loading those into internal flash using Axiom's utility, and > seeing what happens. They should have some documentation on their CD > (or presumably website). > > Hope that helps, > > -Eric > > > --- In [email protected], "spw_lotus" <swiggins@l...> wrote: > > > > Hi Eric > > > > Thanks for your reply. > > > > Answers to your questions. > > > > 1. I have the Axiom PB-0555 board > > 2. I have downloaded the WindRiver (Diab) and CodeWarrior Compilers > > > > The board came with an example 'hello world' C program that states it > > was compiled with the Diab compiler....however when I try to complie > > the example I get a linker error referencing the crt0.o file. I have > > contacted Axiom and await a response. > > > > Hope this info helps! > > > > Many thanks again for your response > > > > Best regards > > > > Steve Wiggins > > > > > > --- In [email protected], "Eric" <Elsbon25@u...> wrote: > > > > > > Hi Steve, > > > > > > Yes, generally this stuff takes some time to get up to speed. My > > > experience is with an open-source RTOS that is probably overkill for > > > what you want. > > > > > > In order to suggest something, how about a little more information: > > > 1) What specific board do you have? > > > 2) What software do you have at the moment? Just CodeWarrior? > > > > > > Did your board come with any documentation? Generally they have > > > examples to work from. > > > > > > -Eric > > > > > > --- In [email protected], "spw_lotus" <swiggins@l...> wrote: > > > > > > > > Hi All > > > > > > > > I am new to powerpc programming and I am currently struggling to > > > get > > > > any code running on my MPC555 processor. > > > > > > > > Would I would ideally like is an IDIOTS guide (ideally with > > > > examples/source) on how to get started. > > > > > > > > I have sample board with a MPC555 processor, it is preloaded with > > a > > > > monitor utility that enables me to upload an s19 hex file to RAM > > > and > > > > then execute it. So I would ideally like to create such a file. > > > > > > > > Firstly what are the best tools to use...I have never used > > > Unix/Linux > > > > so these options would require a long learning curve. I have > > > > downloaded the CodeWarrior package (Ver 8.1) but it is very > > > confusing. > > > > > > > > All I want to do at present is generate the simplest possible > > > > program, maybe something that toggles a port pin or writes to a > > > > register, to confirm I can generate something that works. If this > > > is > > > > done with a 'C' compiler then it would be nice to see a final > > > > assembly listing of the output so that I can see what is going on. > > > > > > > > I apologise for my ignorance in this subject matter. > > > > > > > > I have come from an 8051 microcontroller background and have > > > written > > > > in both assembler and 'C' for this processor (using Keil Tools) > > and > > > > everything was pretty straightforward. I got a Keil evaluation > > and > > > > had a 'C' program up and running in a matter of hours on my > > target > > > > microcontroller. > > > > > > > > For the MPC555 I have already spent days looking for a compiler > > or > > > > assembler with some basic examples I can use for my evaluation of > > > > this processor and I still don't have any code produced. > > > > > > > > Any help/advice from you experts to get this idiot up and running > > > > would be gratefully appreciated. > > > > > > > > Many thanks for taking the time to read to this point! > > > > > > > > Best regards > > > > Steve Wiggins ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/MPC500/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/