|
|
Re: Avr-objcopy being passed the wrong filename (the extension) [message #1731618 is a reply to message #1731612] |
Sun, 08 May 2016 02:03 |
Jack Wilborn Messages: 8 Registered: February 2016 |
Junior Member |
|
|
I was reading through the make file and had these:
# All Target
all: ds18b20_temperature.hex secondary-outputs
# Tool invocations
ds18b20_temperature.hex: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: AVR C++ Linker'
avr-g++ -Wl,-Map,ds18b20_temperature.map,--cref -mrelax -Wl,--gc-sections -L/home/jack/mnt/dev-test/eclipse/seq_led/Debug/libraries -mmcu=atmega328p -o "ds18b20_temperature.hex" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
ds18b20_temperature.lss: ds18b20_temperature.hex
@echo 'Invoking: AVR Create Extended Listing'
-avr-objdump -h -S ds18b20_temperature.hex >"ds18b20_temperature.lss"
@echo 'Finished building: $@'
@echo ' '
ds18b20_temperature.hex: ds18b20_temperature.hex
@echo 'Create Flash image (ihex format)'
-avr-objcopy -R .eeprom -R .fuse -R .lock -R .signature -O ihex ds18b20_temperature.hex "ds18b20_temperature.hex"
@echo 'Finished building: $@'
@echo ' '
I believe the line that is
ds18b20_temperature.hex: ds18b20_temperature.hex
should be
ds18b20_temperature.hex: ds18b20_temperature.elf
The macro expansions above it are all blank, rather curious...
Also, my other builds have the following macro expansions filled in, these are actually before the above, somehow it seems right when I do it this way..?...
# Add inputs and outputs from these tool invocations to the build variables
LSS += \
FLASH_IMAGE += \
EEPROM_IMAGE += \
SIZEDUMMY += \
AVRDUDEDUMMY += \
# All Target
The all target above is the one starting the first console paste. I haven't seen anything on this, but I'm sure if I can do it, someone else can also.
Thanks again...
Jack
|
|
|
Re: Avr-objcopy being passed the wrong filename (the extension) [message #1731628 is a reply to message #1731615] |
Sun, 08 May 2016 12:08 |
Jack Wilborn Messages: 8 Registered: February 2016 |
Junior Member |
|
|
I'm using the AVR plugin (for the ATmega 328p micro controller.) Not really interested in the Arduino, although it's kind of fun to toy with via their interface. Never tried the Eclipse version, I need more than the Arduino software usually does.
I have added a post since your's was posted about the macro's not expanding properly, I think. I have other code that was modified from the Arduino and had it compile and load properly. I don't know why this one won't pass the proper extension when it calls avr-objcopy.
Thanks for the assistance.
Jack
[Updated on: Sun, 08 May 2016 12:13] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03930 seconds