[mc1322x] building on a mac

Dean Hall dwhall256 at gmail.com
Wed Apr 14 15:19:31 EDT 2010


I tried to get an old Dell laptop up and going so I could follow  
development using documented procedures, but the HDD wasn't large  
enough for Win32, VMware Player and Ubuntu 9.10; and Ubuntu 9.10  
(clean install) by itself still froze on me 2-5 minutes after login  
even with 1 G RAM.  So I'm back to my more familiar platform, Mac OS X  
10.5.  Here's what I did to get openocd going:

     # Install Xcode from OS X install disc
     # Install or make sure Macports is up-to-date
     $ sudo port install openocd curl`
     $ curl -G http://mc1322x.devl.org/files/openocd.cfg > openocd.cfg`
     # Plug Econotag into USB port
     $ openocd
     # Resulted in:

     Open On-Chip Debugger 0.4.0 (2010-04-13-21:34)
     Licensed under GNU GPL v2
     For bug reports, read
         http://openocd.berlios.de/doc/doxygen/bugs.html
     srst_only separate srst_gates_jtag srst_open_drain
     jtag_ntrst_delay: 200
     2000 kHz
     Info : max TCK change to: 30000 kHz
     Info : clock speed 2000 kHz
     Info : JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (mfg:  
0x00e, part: 0xf1f0, ver: 0x1)
     Info : Embedded ICE version 7
     Error: EmbeddedICE v7 handling might be broken
     Info : mc13224.cpu: hardware has 2 breakpoint/watchpoint units

I haven't read if arm-linux-gcc is required for libmc1322x, but  
following last week's conversation about linking math libs, arm-elf- 
gcc should work if interworking is enabled.  So here's what I did to  
get arm-elf-gcc installed:

     $ sudo port install arm-elf-gcc # 4.3.2 with newlib
     $ git clone git://git.devl.org/git/malvira/libmc1322x.git
     $ cd libmc1322x
     $ vi Makefile.include  # CROSS_COMPILE := arm-elf-
     $ cd tests
     $ make BOARD=redbee-econotag
     # Resulted in:

     <snip>
     printf.c:16: error: expected ‘)’ before ‘->’ token
     make[2]: *** [obj_redbee-econotag_board/printf.o] Error 1

This is where I am stuck.  I'm guessing this error is due to a  
conflict with the definition of "FILE" in newlib.  In the mean time, I  
commented out the offending code and am working on the build errors  
after that.

So, is there anyone else out there developing on a Mac that wants to  
follow along, bounce ideas and get this going?

!!Dean


More information about the mc1322x mailing list