Ok, so after hopefully learning how to install the build tools I still get errors. Being unfamiliar with Unix/Linux, I'm not sure what all the errors mean or how to go about fixing them so here is a screen dump of the errors i am getting. If you have any ideas on how to get this going I would be very grateful.
cory@satellite /cygdrive/c/cygwin/ms2extra_3.2.1_release/ms2extra_3.2.1_release/ms2extra
$ make us
make --makefile Makefile.us
which: no m9s12x-elf-gcc in (/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/windows/system32:/cygdrive/c/windows:/cygdrive/c/windows/System32/Wbem:/cygdrive/c/windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon:/usr/lib/lapack)
ls: cannot access /usr/bin/m9s12x-elf-gcc: No such file or directory
cygwin warning:
MS-DOS style path detected: c:/usr/bin/m9s12x-elf-gcc
Preferred POSIX equivalent is: /cygdrive/c/usr/bin/m9s12x-elf-gcc
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.h ... -pathnames
ls: cannot access c:/usr/bin/m9s12x-elf-gcc: No such file or directory
make[1]: Entering directory `/cygdrive/c/cygwin/ms2extra_3.2.1_release/ms2extra_3.2.1_release/ms2extra'
echo '#define MICROSQUIRT' > us_opt_c.h
echo '.set MICROSQUIRT, 1' > us_opt_asm.inc
/m68hc11-elf-gcc -g -Wall -Werror -O -fomit-frame-pointer -m68hcs12 -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -DGCC_BUILD -c ms2_extra_main.c
make[1]: /m68hc11-elf-gcc: Command not found
Makefile.us:48: recipe for target `ms2_extra_main.o' failed
make[1]: *** [ms2_extra_main.o] Error 127
make[1]: Leaving directory `/cygdrive/c/cygwin/ms2extra_3.2.1_release/ms2extra_3.2.1_release/ms2extra'
Makefile:18: recipe for target `microsquirt' failed
make: *** [microsquirt] Error 2
I have also attached my make file to make sure I have edited it correctly and in the right places.
#*******************************************************************
#* Makefile for MSII
#*
#* COPYRIGHT: Philip L Johnson 2004
#* This header must appear on all derivatives of this file.
#*
#*******************************************************************
# Extended for MS2/Extra by Ken Culver and James Murray 2006
# $Id: Makefile.us,v 1.11 2011-11-12 17:26:06 jsmcortina Exp $
BINDIR:=$(shell ls /usr/bin/m9s12x-elf-gcc c:/usr/bin/m9s12x-elf-gcc `which m9s12x-elf-gcc` | head -1 | sed -e's,m9s12x-elf-gcc,,g' 2> /dev/null)
PROGPREF=$(BINDIR)/m68hc11-elf-
CC = $(PROGPREF)gcc
OBJCOPY = $(PROGPREF)objcopy
OBJDUMP = $(PROGPREF)objdump
NM = $(PROGPREF)nm
CFLAGS = -g -Wall -Werror -O -fomit-frame-pointer -m68hcs12 -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -DGCC_BUILD
LDFLAGS = -Wl,-defsym,vectors_addr=0xff80,-m,m68hc12elfb,-T,m68hc12elfb.x
CSRCS=ms2_extra_main.c ms2_extra_can.c ms2_extra_can_isr.c ms2_extra_ego.c ms2_extra_ign.c ms2_extra_ign_wheel.c\
ms2_extra_misc.c \
premain.c ms2_extra_init.c sigs.c ms2_extra_ign_in.c ms2_extra_inj.c \
ms2_extra_idle.c ms2_extra_user.c
ASRCS=msii_flash_gcc.s ms2_sermon.s ms2_conferr.s ms2_extra_burner.s \
ms2_extra_burnfactor.s isr_inj.s isr_sci.s isr_rtc.s ms2_extra_asm.s \
isr_timerovf.s isr_ign.s crc32.s interp.s
OBJS=$(CSRCS:.c=.o)
AOBJS= $(ASRCS:.s=.o)
all: setmicrosquirt ms2_extra_us.dmp ms2_extra_us.elf ms2_extra_us.s19
#in order to safely build both targets, must remove existing object code
setmicrosquirt:
# touch ms2_extra.h
echo '#define MICROSQUIRT' > us_opt_c.h
echo '.set MICROSQUIRT, 1' > us_opt_asm.inc
$(AOBJS): %.o: %.s
$(CC) $(CFLAGS) -c $<
$(OBJS): %.o: %.c cltfactor.inc egofactor.inc matfactor.inc hcs12def.h flash.h ms2_extra.h
$(CC) $(CFLAGS) -c $<
ms2_extra_us.elf: $(OBJS) $(AOBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o ms2_extra_us.elf $(OBJS) $(AOBJS)
ms2_extra_us.s19: ms2_extra_us.elf
$(OBJCOPY) --output-target=srec \
--only-section=.text3 \
--only-section=.rodata \
--only-section=.vectors \
--only-section=.eeprom \
--only-section=.lookup --change-section-lma .lookup=0x3Ca400 \
--only-section=.text3c --change-section-lma .text3c=0x3C8000 \
--only-section=.text3d --change-section-lma .text3d=0x3D8000 \
--only-section=.text3b --change-section-lma .text3b=0x3B8000 \
--only-section=.text3a --change-section-lma .text3a=0x3A8000 \
--only-section=.text39 --change-section-lma .text39=0x398000 \
--only-section=.text38 --change-section-lma .text38=0x388000 \
--only-section=.lookup \
--only-section=.text \
ms2_extra_us.elf ms2_extra_us.s19
$(NM) ms2_extra_us.elf | sort > ms2_extra_us.map
ms2_extra_us.dmp: ms2_extra_us.elf
$(OBJDUMP) -Ssdp ms2_extra_us.elf > ms2_extra_us.dmp
PHONY: clean
clean:
$(RM) -f ms2_extra_us.elf
$(RM) -f ms2_extra_us.s19
$(RM) -f ms2_extra_us.dmp
$(RM) -f ms2_extra_us.map
$(RM) -f $(OBJS) $(AOBJS)
$(RM) -f us_opt_c.h
$(RM) -f us_opt_asm.inc
Sorry for the SUPER long post, but the board wont accept a .us or .docx format and everything else I tried to save it as destroyed the formatting so it wouldn't work otherwise.
Thanks again
Cory