Re: Coldfire development on Linux host



Jim Adamthwaite wrote:
This is a copy of a post which I have already sent to comp.os.linux.m68K and
alt.os.linux.suse.
..............................

I need to develop a smallish (10KB asm & maybe 10K of C & lots of fast
trigonometry) embeddeded controller application for a design job coming up.

My preferred development host is a i586 PC running SUSE 10.0.

The target CPU is (at this stage) a Coldfire MCF5407 or similar running raw
code, with no formal operating system.

The customer is already using Linux for all his work & office admin tasks
and would prefer to be able to continue development on same after I finish.

My question is: what combinations of software & hardware have you folks
found to work reasonably painlessly for a development chain which covers
1. assembly,
2. download,
3. flash program,
4. single-step debug?

Hardware:
I have examined the BDM pod article by W. Mohat from the Freescale Coldfire
forum & I am considering building it. BTW, I could make the boards
available very cheaply if anyone was interested. I would probably replace
the GAL chip with 74ACTxx or similar logic just to avoid the need for an
expensive upgrade to my PAL programmer. Discussion invited.

The decision on whether to go that path would rest on the availability of
Linux-based host tools to complete the development chain mentioned above.

Software:
I downloaded the CodeWarrior Linux Platform Evaluation suite from Freescale
to see what I thought of it, but have not been able to get past the
registration/authorisation phase before it crashes with segment violation
access errors. I am sure it is a fine thing but I may wait a little longer
before forking out the 1500+ dollars for the real thing.

In the meantime, this project is coming up & I have to prepare on a low
budget. Any suggestions please?


The obvious choice is to use gcc and gdb. Some of the high budget commercial tools may work under Linux - they often have useful extra features, but the price can be very high. I think Metrowerks CodeWarrior is free for small code sizes (it certainly is for other targets), but I don't know about running it under linux.

As for gcc, you can simply download the latest gcc source and compile it for cross development. There are plenty of tutorials out there showing how to do that. For debugging, you can get a P&E Micro parallel port debugger (speed is not too important for small programs) and code from the sourceforge "bdm" project. Cybertec also makes bdm debuggers.

For a middle ground, you could go for a commercially supported gcc package, such as from Cybertec or Redhat gnupro.


By the way, has anyone succeeded in getting Protel '98 PCB software to work
with Wine? My local (Australian) PCB maufacturer likes Protel files,
otherwise I would go for Eagle. I can joyously snip the last connection to
uSoft Windows once I solve this.

Jim Adamthwaite.


.



Relevant Pages

  • Re: 1] UNIX/LINUX Compilation 2] IDE
    ... headers, libraries, etc from the target linux system. ... Rebuilding GCC and BinUtils isn't really for the faint of heart. ... should be compatible with Linux ...
    (comp.os.msdos.djgpp)
  • Re: linux app to windows
    ... what a Linux compiler would have defined if the target OS is Linux. ... GCC? ...
    (microsoft.public.vc.language)
  • Re: MicroMonopoly aids Terrorism?
    ... > Riiiight, Linux, Unix and OpenBSD have zero vulnerabilities. ... Linux web servers are hacked less frequently than Windows web ... it comes down to having only one Desktop OS target. ... rather that having multiple OS platforms are intinsically more ...
    (microsoft.public.security)
  • Re: MicroMonopoly aids Terrorism?
    ... > Riiiight, Linux, Unix and OpenBSD have zero vulnerabilities. ... Linux web servers are hacked less frequently than Windows web ... it comes down to having only one Desktop OS target. ... rather that having multiple OS platforms are intinsically more ...
    (microsoft.public.windowsxp.security_admin)
  • RE: [RFC PATCH 0/19] A kernel-level configfs enabled generic target engine for Linux v2.6.32
    ... A kernel-level configfs enabled generic target ... engine for Linux v2.6.32 ... With TCM v3.2, the two major SPC-4 SCSI target mode fabric ...
    (Linux-Kernel)