EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
Modern day M68K development
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: Modern day M68K development (Read 3115 times)
0 Members and 2 Guests are viewing this topic.
Gribo
Frequent Contributor
Posts: 642
Country:
Modern day M68K development
«
on:
April 15, 2021, 01:35:57 pm »
Hello all,
I got a task to develop test firmware for a board with a 68332 MCU, I have the PEmicro Multilink FX adapter, and would like to setup a toolchain. Sadly, Codesourcery lite is no longer available.
What are my options? I am using windows 10.
Logged
I am available for freelance work.
bingo600
Super Contributor
Posts: 2033
Country:
Re: Modern day M68K development
«
Reply #1 on:
April 15, 2021, 02:24:08 pm »
Untested by me , but a search for GCC coldfire brings up some stuff.
https://crosstool-ng.github.io/
The DL link in here seems to work
http://download.ronetix.info/toolchains/coldfire/m68k_cross_development_guide.pdf
https://www.nxp.com/design/software/development-software/codewarrior-development-tools/codewarrior-legacy/codewarrior-development-studio-for-coldfire-architectures-linux-editions-classic-ide-v2-5:CW-COLDFIRE-LINUX
https://github.com/haarer/toolchain68k
https://gnutoolchains.com/m68k-elf/
/Bingo
Logged
The following users thanked this post:
edavid
SiliconWizard
Super Contributor
Posts: 15341
Country:
Re: Modern day M68K development
«
Reply #2 on:
April 15, 2021, 03:57:38 pm »
I have used the toolchain provided here:
https://gnutoolchains.com/m68k-elf/
and it works fine.
Logged
Gribo
Frequent Contributor
Posts: 642
Country:
Re: Modern day M68K development
«
Reply #3 on:
April 16, 2021, 01:12:40 pm »
Thanks for the info.
I have installed the toolchain, and got Eclipse to create a project with all the headers, now it seems I am missing some resources.
I installed version 4.8 of the toolchain.
Logged
I am available for freelance work.
Harjit
Regular Contributor
Posts: 141
Country:
Re: Modern day M68K development
«
Reply #4 on:
April 17, 2021, 03:32:59 pm »
There is some good information here:
https://wiki.control.fel.cvut.cz/nms/cpuarch/m68k/mo_cpu2-quick-start.html
Has anyone found an inexpensive USB BDM tool? This is for a hobby project.
Logged
bingo600
Super Contributor
Posts: 2033
Country:
Re: Modern day M68K development
«
Reply #5 on:
April 17, 2021, 05:47:19 pm »
Those are classic Newlib ... DIY routines , missing.
You have to implement them your self
/Bingo
Logged
westfw
Super Contributor
Posts: 4311
Country:
Re: Modern day M68K development
«
Reply #6 on:
April 18, 2021, 09:14:17 am »
Quote
it seems I am missing some resources.
newlib in its full form likes to have resources that aren't that applicable to a small embedded system.
Figure out how to use newlib-nano instead, and it should be happier!
Probably something like "--specs=nano.specs --specs=nosys.specs" in the link command (may also require that you re-build newlib...)
Logged
Harjit
Regular Contributor
Posts: 141
Country:
Re: Modern day M68K development
«
Reply #7 on:
September 26, 2021, 09:41:55 pm »
I'd love to know what you ended up doing, what worked/is working, what didn't work.
I've spent a bunch of time trying to figure out what to do about a BDM interface.
I posted this info. in another thread but in case you don't see it. The repository below allows for using an STM32 blue pill board for the BDM interface for an MC68332. In looking through the code, it should be a matter of a few hours to change it to use an FTDI part.
Python based using STLink for USB Blaster function:
https://github.com/Najsztub/BDM_UsbBlaster
Using an FTDI part from Python:
https://iosoft.blog/2018/12/02/ftdi-python-part-1/
Also, LLVM is adding M68K support.
Logged
Doctorandus_P
Super Contributor
Posts: 3855
Country:
Re: Modern day M68K development
«
Reply #8 on:
September 26, 2021, 10:06:16 pm »
There are a bunch of projects and blog posts on hackaday that respond to search terms like "motorola 68000" and "68k", and probably most of them are open source such as
https://rosco-m68k.com/
or close to open source. You can have a look at what for software those projects use for development.
Logged
Gribo
Frequent Contributor
Posts: 642
Country:
Re: Modern day M68K development
«
Reply #9 on:
September 27, 2021, 07:19:02 pm »
I ended doing write/compile/prog/debug cycles with logs to the UART. Couldn't get the debugger to step through code or insert breakpoints. Luckily, the code was very small.
Logged
I am available for freelance work.
rstofer
Super Contributor
Posts: 9935
Country:
Re: Modern day M68K development
«
Reply #10 on:
September 28, 2021, 09:18:29 am »
I think those missing routines belong in syscalls.c You don't need to implement functions like sbrk but the symbol needs to be defined. An empty function is all it takes
https://electronics.stackexchange.com/questions/459975/role-of-syscalls-c
Just to give you a flavor with no intention that it is correct for your use, I have attached one of my syscalls.c files
Logged
Benta
Super Contributor
Posts: 6243
Country:
Re: Modern day M68K development
«
Reply #11 on:
September 28, 2021, 04:57:08 pm »
Don't forget to set the compiler to generate code for CPU32.
Logged
SMC_T
Newbie
Posts: 3
Country:
Re: Modern day M68K development
«
Reply #12 on:
May 23, 2023, 11:11:43 pm »
I'm making copies of all the documents and software that came with my 68332 evk.
This archive contains the contents of the 3 disk in the kit. And 3 PDF's that are text searchable. The TPU and core books were very thin paper, Ill give them a go next week.
https://drive.google.com/drive/folders/1K9XVBgo8PCO9BMD6i5xyVaxvFxUdkqpG?usp=sharing
I will try to scan every document in the kit over the weekend
«
Last Edit: May 27, 2023, 10:04:29 pm by SMC_T
»
Logged
The following users thanked this post:
benst
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
Electronics
»
Microcontrollers
»
Modern day M68K development
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee