Jump to content

Recommended Posts

Posted (edited)

I am having trouble compiling anything using the eeprom module in mios32. Any code that doesn't use the eeprom library compiles correctly, but even the eeprom tutorial doesn't work. I am on OS X 10.7.

Aarons-Macbook-Pro:025_sysex_and_eeprom aaron$ make

rm -f project.hex

make: *** No rule to make target `project_build/~/svn/mios32/trunk/modules/eeprom//eeprom.o', needed by `project_build/project.elf'. Stop.

Aarons-Macbook-Pro:025_sysex_and_eeprom aaron$

The next problem, which I think is part of the same issue, is that I can't include the eeprom header in my own apps using #include <eeprom.h>.

Aarons-Macbook-Pro:ArtNet Node aaron$ make

rm -f project.hex

Creating object file for app.c

app.c:21:20: fatal error: eeprom.h: No such file or directory

compilation terminated.

make: *** [project_build/app.o] Error 1

Aarons-Macbook-Pro:ArtNet Node aaron$

I'm not sure if it's a makefile issue, but just in case, here is my makefile.

# $Id: Makefile 502 2009-05-09 14:20:30Z tk $


################################################################################

# following setup taken from environment variables

################################################################################


MIOS32_PATH			= ~/svn/mios32/trunk

MIOS32_BIN_PATH		= ~/svn/mios32/trunk/bin

MIOS32_GCC_PREFIX	= arm-none-eabi

PROCESSOR			= LPC1769

FAMILY				= LPC17xx

BOARD				= MBHP_CORE_LPC17

LCD					= universal



################################################################################

# Source Files, include paths and libraries

################################################################################


THUMB_SOURCE    = app.c


# (following source stubs not relevant for Cortex M3 derivatives)

THUMB_AS_SOURCE =

ARM_SOURCE      =

ARM_AS_SOURCE   =


C_INCLUDE = 	-I .

A_INCLUDE = 	-I .


LIBS = 		



################################################################################

# Remaining variables

################################################################################


LD_FILE   = 	$(MIOS32_PATH)/etc/ld/$(FAMILY)/$(PROCESSOR).ld

PROJECT   = 	project


DEBUG     =	-g

OPTIMIZE  =	-Os


CFLAGS =	$(DEBUG) $(OPTIMIZE)



################################################################################

# Include source modules via additional makefiles

################################################################################


# sources of programming model

include $(MIOS32_PATH)/programming_models/traditional/programming_model.mk


# application specific LCD driver (selected via makefile variable)

include $(MIOS32_PATH)/modules/app_lcd/$(LCD)/app_lcd.mk


# common make rules

include $(MIOS32_PATH)/include/makefile/common.mk

Any ideas?

Edited by avockley
Posted

Sidenote: you can use the original makefile if you set environment variables before "make" (which executes Makefile)

I'm using different "setup files" for different scenarios, e.g. this one for LPC17:


export MIOS32_PATH=~/svn/mios32/trunk
export MIOS32_BIN_PATH=$MIOS_PATH/bin
export MIOS32_FAMILY=LPC17xx
export MIOS32_PROCESSOR=LPC1769
export MIOS32_BOARD=MBHP_CORE_LPC17
export MIOS32_LCD=universal
export MIOS32_GCC_PREFIX=arm-none-eabi
[/code] It's stored in my user directory under the name "lpc_init", and I call it with:
[code]
source ~/lpc_init
thereafter all makefiles automatically take over these parameters when I'm typing:

make
[/code]

in the directory of the application.

Best Regards, Thorsten.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...