Author Topic: anyone with ColdFire® M5282EVB? (support for Student Learning Kit)  (Read 3950 times)

0 Members and 1 Guest are viewing this topic.

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
let me know  :D
« Last Edit: November 14, 2016, 07:22:20 am by legacy »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire M5282EVB?
« Reply #1 on: November 12, 2016, 04:44:54 pm »
just a note

Code: [Select]
m68k-unknown-linux-gnu-gcc -mcpu=5282 -c hAllo.c -o hAllo.o
cc1: error: unrecognized command line option "-mcpu=5282"

mmm, is there a difference between

Code: [Select]
target=m68k-unknown-linux-gnu

and

Code: [Select]
target=m68k-elf

?!?

because, if so, I have to modify the crossdev script  :-//


Code: [Select]
m68k-unknown-linux-gnu-gcc -v

Using built-in specs.
Target: m68k-unknown-linux-gnu
Configured with: /var/tmp/portage/cross-m68k-unknown-linux-gnu/gcc-4.1.2/work/gcc-4.1.2/configure
--host=i686-pc-linux-gnu
--target=m68k-unknown-linux-gnu
--build=i686-pc-linux-gnu
--prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/m68k-unknown-linux-gnu/gcc-bin/4.1.2
--includedir=/usr/lib/gcc/m68k-unknown-linux-gnu/4.1.2/include
--datadir=/usr/share/gcc-data/m68k-unknown-linux-gnu/4.1.2
--mandir=/usr/share/gcc-data/m68k-unknown-linux-gnu/4.1.2/man
--infodir=/usr/share/gcc-data/m68k-unknown-linux-gnu/4.1.2/info
--with-gxx-include-dir=/usr/lib/gcc/m68k-unknown-linux-gnu/4.1.2/include/g++-v4
--enable-languages=c
--enable-obsolete
--enable-secureplt
--disable-werror
--with-system-zlib
--enable-nls
--without-included-gettext
--enable-checking=release
--enable-poison-system-directories
--disable-shared
--disable-threads
--without-headers
--enable-__cxa_atexit
--enable-clocale=gnu
--disable-multilib
--disable-altivec
--disable-libgcj
--disable-libmudflap
--disable-libssp

Thread model: single
gcc version 4.1.2 (Gentoo 4.1.2 p1.6)

or, is v4.1.2 just too old for that ?




edit:
Code: [Select]
m68k-unknown-linux-gnu-gcc -m528x -c hAllo.c -o hAllo.o

this works :D
« Last Edit: November 12, 2016, 05:05:00 pm by legacy »
 

Offline ale500

  • Frequent Contributor
  • **
  • Posts: 415
Re: anyone with ColdFire M5282EVB?
« Reply #2 on: November 12, 2016, 05:05:05 pm »
What does the target dump/help looks like ?
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: anyone with ColdFire M5282EVB?
« Reply #3 on: November 12, 2016, 05:30:14 pm »
You using GCC anyway?  >:D
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire M5282EVB?
« Reply #4 on: November 12, 2016, 05:45:48 pm »
You using GCC anyway?  >:D

yup, until I will receive my personal license for CodeWarrior/Coldfire

currently I own a license for EZ328, which doesn't include Coldfire and
any BDM cable support. It will take a couple a weeks through a reseller
because I have also ordered a couple of cables

and, as usual, gcc has failed on its first try
but don't worry, my bad attitude against Gcc
is still far from being changed :-DD

it's a purpose that drives me: I'd like to finalize a virtual machine for this board
in order to provide some good gear to a local college's lab
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire M5282EVB?
« Reply #5 on: November 12, 2016, 05:49:12 pm »
What does the target dump/help looks like ?

the external flash contains "dbug"
sw.all on, except sw8=off, boots it

anyhow, the problem was gcc :D
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire M5282EVB?
« Reply #6 on: November 12, 2016, 05:59:39 pm »
Code: [Select]
opts="
-mcpu32
-m68000
-m68010
-m68020
-mc68020
-m68030
-m68040
-m68060
-m5200
-m5206e
-m528x
-m5307
-m5407
-m68020-40
-m68020-60
"

for opt in $opts
    do
        echo "$opt"
        m68k-unknown-linux-gnu-gcc $opt -c hAllo.c -o obj/hAllo$opt.o
    done


Code: [Select]
-mcpu32
-m68000
-m68010
cc1: error: unrecognized command line option "-m68010"
-m68020
-mc68020
-m68030
-m68040
-m68060
-m5200
-m5206e
-m528x
-m5307
-m5407
-m68020-40
-m68020-60

good, the above is interesting, gcc v4.1.2 was built by crossdev with the following set

Code: [Select]
crossdev --b 2.25.1-r1 --g 4.1.2 --l 2.22-r1 --k 4.3 -s2 -t m68k-unknown-linux-gnu --without-headers -v

I am going to give a try to a new profile, v4.3.1

Code: [Select]
crossdev --b 2.25.1-r1 --g 4.3.1 --l 2.22-r1 --k 4.3 -s2 -t m68k-elf --without-headers -v
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire M5282EVB?
« Reply #7 on: November 12, 2016, 06:02:52 pm »
@Kalvin

and don't look at my env  :D

Code: [Select]
gcc-config -l
 [1] i686-pc-linux-gnu-4.1.2
 [2] i686-pc-linux-gnu-4.9.3 *
 [3] m68k-unknown-linux-gnu-4.1.2 *
 [4] mips64-unknown-linux-gnu-4.1.2
 [5] mips64-unknown-linux-gnu-5.3.0 *
 [6] powerpc-unknown-linux-gnu-4.1.2 *
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire M5282EVB?
« Reply #8 on: November 12, 2016, 09:24:27 pm »
M5282 belongs to core-v2 class

bought two USBMLCF for a discount
because discontinued and replaced
by the U-MULTILINK-FX  :-+

I don't know about "clones"

 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone withColdFire® M5282EVB? (support for Student Learning Kit)
« Reply #9 on: November 13, 2016, 02:15:37 pm »
Code: [Select]

 [1] i686-pc-linux-gnu-4.1.2
 [2] i686-pc-linux-gnu-4.9.3 *
 [3] m68k-elf-4.2.4 *
 [4] m68k-unknown-linux-gnu-4.1.2 *
 [5] mips64-unknown-linux-gnu-4.1.2
 [6] mips64-unknown-linux-gnu-5.3.0 *
 [7] powerpc-unknown-linux-gnu-4.1.2 *

gcc v4.2.4 --target=m68k-elf:  it works  :D
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire® M5282EVB? (support for Student Learning Kit)
« Reply #10 on: November 14, 2016, 09:50:04 pm »
so, no one on ColdFire® M5282EVB or similar boards.

 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26964
  • Country: nl
    • NCT Developments
Re: anyone with ColdFire® M5282EVB? (support for Student Learning Kit)
« Reply #11 on: November 14, 2016, 10:02:48 pm »
so, no one on ColdFire® M5282EVB or similar boards.
No. I think I had one or a similar board a decade ago but I send it back due to lack of programming tools.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire® M5282EVB? (support for Student Learning Kit)
« Reply #12 on: November 15, 2016, 12:15:41 pm »
it means no examples and no people around
damnit damnit :palm:

I wonder why they have chosen ColdFire® for the laboratory
it doesn't seem the best choice, any how I was asked to
provide equipment, get started, a few examples, and boards

and I am doing my best with gcc because they haven't
approved the budget requested for CodeWarrior  :palm:

also, they haven't approved the purchase of the usbdm
therefore I am obliged to use gdb over the serial line

the M5282EVB board comes with two serial ports
console, and auxiliary, while the Student Learning Kit
comes with one serial port  :palm: :palm: :palm:



the only good part of this sad story: the laboratory assistant
is a she, a very pretty girl, let's' add a bottle of good wine
(might be a date for dinner?) to the purpose  :P :P :P :P
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26964
  • Country: nl
    • NCT Developments
Re: anyone with ColdFire® M5282EVB? (support for Student Learning Kit)
« Reply #13 on: November 15, 2016, 05:10:28 pm »
And get some ARM development boards while you are at it. There is a seller on Ebay which has very nice LPC1768 boards (USB host, ethernet, CAN, color TFT display) for around $70.
Just forget about the Coldfire. Some distributors try to push it hard but there just isn't any support behind it unless you are going into very high volumes where spending several $k on the tooling isn't an issue.
« Last Edit: November 15, 2016, 05:56:47 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: anyone with ColdFire® M5282EVB? (support for Student Learning Kit)
« Reply #14 on: November 16, 2016, 02:48:23 pm »
And get some ARM development boards while you are at it

well it's not my choice, they decide what they want in their lab
for my personal use I have no problem with arm boards by Olimex

mmm, it seems they have chosen ColdFire® because they have
a course where they study assembly 68k, therefore the laboratory
needs to have some 68k gear, and ColdFire® is close to it
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26964
  • Country: nl
    • NCT Developments
Re: anyone with ColdFire® M5282EVB? (support for Student Learning Kit)
« Reply #15 on: November 16, 2016, 03:32:35 pm »
Why do they even bother with the 68k? It is obsolete and the lab seems to be a lost cause. Just take the woman out to dinner and don't get involved with the lab (don't mix personal life and work  :-DD ).
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf