START + Eclipse + macOS = :(

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Short form:

 

Has anyone been able to compile a START-generated project using Eclipse running on macOS?  Or can you offer tips on how to debug the START-generated Makefile under Eclipse?

 

Details:

 

I'd like to create an Atmel START project using Eclipse running on MacOS (v 10.14 Mojave, but that's probably not relevant).

 

I've followed the instructions in http://microchipdeveloper.com/at... -- which state that

The following instructions were performed on a Linux® host machine (Mint 18.1), but they are also applicable for Windows® and macOS® operating system software with minor modifications.

All went well upto the point I asked Eclipse to build the project.  Eclipse completed the task in 96 milliseconds without building anything.  Hmmm.  I looked at the Makefile that START generated, and it has this at the top:

################################################################################
# Automatically-generated file. Do not edit!
################################################################################

ifdef SystemRoot
	SHELL = cmd.exe
	MK_DIR = mkdir
else
	ifeq ($(shell uname), Linux)
		MK_DIR = mkdir -p
	endif

	ifeq ($(shell uname | cut -d _ -f 1), CYGWIN)
		MK_DIR = mkdir -p
	endif

	ifeq ($(shell uname | cut -d _ -f 1), MINGW32)
		MK_DIR = mkdir -p
	endif

	ifeq ($(shell uname | cut -d _ -f 1), MINGW64)
		MK_DIR = mkdir -p
	endif
endif

One problem is evident: on macOS:

$ uname
Darwin

and the 'Darwin' case isn't covered by the Makefile.  But adding an additional clause for Darwin doesn't solve the problem.

 

 

Last Edited: Wed. Oct 10, 2018 - 04:57 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don't know if this helps you but the new Microchip MPLABX runs on macOS. https://www.avrfreaks.net/forum/...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the pointer.  My target processor is the ATSAME54, and I really hope to use the GNU toolchain for compiling.  As far as I can tell, previous versions of MPLABX were lacking, but I'll take a fresh look at it.