EEVblog Electronics Community Forum
Electronics => Microcontrollers => Topic started by: Gribo 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.
-
Untested by me , but a search for GCC coldfire brings up some stuff.
https://crosstool-ng.github.io/ (https://crosstool-ng.github.io/)
The DL link in here seems to work
http://download.ronetix.info/toolchains/coldfire/m68k_cross_development_guide.pdf (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://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://github.com/haarer/toolchain68k)
https://gnutoolchains.com/m68k-elf/ (https://gnutoolchains.com/m68k-elf/)
/Bingo
-
I have used the toolchain provided here: https://gnutoolchains.com/m68k-elf/
and it works fine.
-
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.
-
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.
-
Those are classic Newlib ... DIY routines , missing.
You have to implement them your self
/Bingo
-
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...)
-
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.
-
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.
-
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.
-
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
-
Don't forget to set the compiler to generate code for CPU32.
-
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