LPCXpresso software version for LPC2129?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPCXpresso software version for LPC2129?

2,072 Views
ramakrishnanaru
Contributor II

I have a LPC2129(ARM7) board with me, I want to use LPCXpresso IDE for the hex generation. But when I tried with the latest software version the hex is not running in my board. Do I need to use any specific older version of the software version?

Labels (2)
4 Replies

1,713 Views
converse
Senior Contributor V

No, you do not need an older version of lpcxpresso.

suggest you explain in more detail what you are doing, and what problem you have.

1,713 Views
ramakrishnanaru
Contributor II

Hello Con Verse,

Thanks for your reply.

Actually I am able to generate the hex from LPCXpresso for a code which I generated using KEIL also.

The KEIL generated hex is running successfully in my board but the LPCXpresso generated hex is not running.

Also the two hex file is completely different.

The KEIL generated hex file is around 4kb in size but LPCXpresso generated hex is only 2kb in size.

Please let me know what changes I have to do in the tool chain for a perfect working condition.

And let me know if any other information is required.

Thanks in advance.

0 Kudos

1,713 Views
converse
Senior Contributor V

What is the command line you are using to convert the elf file into hex?

0 Kudos

1,713 Views
ramakrishnanaru
Contributor II

Hello Con Verse,

 

Thanks for your reply.

Sorry for the very delayed response.

The command I am using for hex genertion is,

-arm-none-eabi-size "Hex_Try.axf" ; arm-none-eabi-objcopy -v -O ihex "Hex_Try.axf" "Hex_Try.hex" ;

FYR, I am attaching my complete make file content here.

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

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: Hex_Try.axf

# Tool invocations
Hex_Try.axf: $(OBJS) $(USER_OBJS)
    @echo 'Building target: $@'
    @echo 'Invoking: MCU Linker'
    arm-none-eabi-gcc -nostdlib -Xlinker -Map="Hex_Try.map" -Xlinker --cref -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --print-map -mcpu=arm7tdmi -T "Hex_Try_Release.ld" -o "Hex_Try.axf" $(OBJS) $(USER_OBJS) $(LIBS)
    @echo 'Finished building target: $@'
    @echo ' '
    $(MAKE) --no-print-directory post-build

# Other Targets
clean:
    -$(RM) $(EXECUTABLES)$(OBJS)$(C_DEPS) Hex_Try.axf
    -@echo ' '

post-build:
    -@echo 'Performing post-build steps'
    -arm-none-eabi-size "Hex_Try.axf" ; arm-none-eabi-objcopy -v -O ihex "Hex_Try.axf" "Hex_Try.hex" ; #arm-none-eabi-objcopy -v -O [color=#f00]ihex[/color] "Hex_Try.axf" "Hex_Try[color=#f00].hex[/color]" ; #arm-none-eabi-objcopy -v -O binary "Hex_Try.axf" "Hex_Try.bin" ; # checksum -p LPC2129_01 -d "Hex_Try.bin"
    -@echo ' '

.PHONY: all clean dependents
.SECONDARY: post-build

-include ../makefile.targets

################################################################################
# End of File
################################################################################

0 Kudos