Modern day M68K development - Page 1
Forum section: electronics / general

author: Gribo
author_rank: Frequent Contributor
timestamp: April 15, 2021, 01:35:57 pm
content: 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.

author: bingo600
author_rank: Super Contributor
timestamp: April 15, 2021, 02:24:08 pm
content: 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 workhttp://download.ronetix.info/toolchains/coldfire/m68k_cross_development_guide.pdfhttps://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-LINUXhttps://github.com/haarer/toolchain68khttps://gnutoolchains.com/m68k-elf//Bingo

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 15, 2021, 03:57:38 pm
content: I have used the toolchain provided here:https://gnutoolchains.com/m68k-elf/and it works fine.

author: Gribo
author_rank: Frequent Contributor
timestamp: April 16, 2021, 01:12:40 pm
content: 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.

author: Harjit
author_rank: Regular Contributor
timestamp: April 17, 2021, 03:32:59 pm
content: There is some good information here:https://wiki.control.fel.cvut.cz/nms/cpuarch/m68k/mo_cpu2-quick-start.htmlHas anyone found an inexpensive USB BDM tool? This is for a hobby project.

author: bingo600
author_rank: Super Contributor
timestamp: April 17, 2021, 05:47:19 pm
content: Those are classic Newlib ... DIY routines , missing.You have to implement them your self/Bingo

author: westfw
author_rank: Super Contributor
timestamp: April 18, 2021, 09:14:17 am
content: Quotenewlib 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...)

author: Harjit
author_rank: Regular Contributor
timestamp: September 26, 2021, 09:41:55 pm
content: 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_UsbBlasterUsing an FTDI part from Python:https://iosoft.blog/2018/12/02/ftdi-python-part-1/Also, LLVM is adding M68K support.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: September 26, 2021, 10:06:16 pm
content: 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 ashttps://rosco-m68k.com/or close to open source. You can have a look at what for software those projects use for development.

author: Gribo
author_rank: Frequent Contributor
timestamp: September 27, 2021, 07:19:02 pm
content: 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.

author: rstofer
author_rank: Super Contributor
timestamp: September 28, 2021, 09:18:29 am
content: 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 takeshttps://electronics.stackexchange.com/questions/459975/role-of-syscalls-cJust to give you a flavor with no intention that it is correct for your use, I have attached one of my syscalls.c files

author: Benta
author_rank: Super Contributor
timestamp: September 28, 2021, 04:57:08 pm
content: Don't forget to set the compiler to generate code for CPU32.

author: SMC_T
author_rank: Newbie
timestamp: May 23, 2023, 11:11:43 pm
content: 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=sharingI will try to scan every document in the kit over the weekend