Mar 22, 2021
06:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 22, 2021
06:19 AM
Hi,
I have successfully written and built a program that builds and compiles on an XMC4800 processor. However, no .hex (or binary) file is created.
I require this file to add a bootloader onto my project though have no idea where the file has gone or what I have changed to get rid of it?!
The .hex file used to be created during the early days of the project and now seems to have gone. As far as I know, I have maintained the same project setting throughout...

I have been trolling around the internet for a while now, trying all sorts of things but to no avail.
I have tried various binary parsers, configuration settings and build settings.
I have tried different debug configurations and compared the project settings to a new Dave CE project, that does create a .hex file, out of desperation.
I am not sure where to go from here, does anyone have any ideas?
Thanks in advanced,
Steven
I have successfully written and built a program that builds and compiles on an XMC4800 processor. However, no .hex (or binary) file is created.
I require this file to add a bootloader onto my project though have no idea where the file has gone or what I have changed to get rid of it?!
The .hex file used to be created during the early days of the project and now seems to have gone. As far as I know, I have maintained the same project setting throughout...
I have been trolling around the internet for a while now, trying all sorts of things but to no avail.
I have tried various binary parsers, configuration settings and build settings.
I have tried different debug configurations and compared the project settings to a new Dave CE project, that does create a .hex file, out of desperation.
I am not sure where to go from here, does anyone have any ideas?
Thanks in advanced,
Steven
Solved! Go to Solution.
1 Solution
Apr 14, 2021
02:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 14, 2021
02:56 AM
Hi,
Could you please share your build setting and settings regarding Create hex file as shown in image.
Work Aorund: Starting from scratch to create a new project could be a crude workaround
Best Regards,
Vasanth
12 Replies
Mar 22, 2021
10:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 22, 2021
10:37 PM
Hello,
The binary files usually gets created inside the "Debug" folder in the project directory. With the default configuration in Dave, both .elf and .hex files will get generated.
Could you please attach your project to this forum thread? We can check it and let you know if there is a problem.
Thanks and Regards,
Sudheesh
The binary files usually gets created inside the "Debug" folder in the project directory. With the default configuration in Dave, both .elf and .hex files will get generated.
Could you please attach your project to this forum thread? We can check it and let you know if there is a problem.
Thanks and Regards,
Sudheesh
Mar 23, 2021
01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 23, 2021
01:45 AM
Hi Sudheesh,
Thanks for getting back to me.
Unfortunately, due to the nature of my work, I am unable to post my project onto an open forum.
I am happy to send any Dave generated files or take screenshots if you require them.
I have tried resetting all, I think, settings back to default and still no .hex file generated. An .elf file exists in the debug folder but no .hex (or .bin)
As I use uint64 and float variables for math, 'printf' and ''scanf, I have changed my runtime library to Standard. However, as far as I know, this is the only change from default.
I'm sorry I cant post the project but let me know if there is any other way I can help
Thanks,
Steven
Thanks for getting back to me.
Unfortunately, due to the nature of my work, I am unable to post my project onto an open forum.
I am happy to send any Dave generated files or take screenshots if you require them.
I have tried resetting all, I think, settings back to default and still no .hex file generated. An .elf file exists in the debug folder but no .hex (or .bin)
As I use uint64 and float variables for math, 'printf' and ''scanf, I have changed my runtime library to Standard. However, as far as I know, this is the only change from default.
I'm sorry I cant post the project but let me know if there is any other way I can help
Thanks,
Steven
Mar 23, 2021
06:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 23, 2021
06:57 AM
Hello Steven,
Did you set the output file format to "ihex" in Dave project properties? Could you please double check this?

To get a better idea about this issue, could you please provide the log messages from Dave for build operation?
Thanks and Regards,
Sudheesh
Did you set the output file format to "ihex" in Dave project properties? Could you please double check this?
To get a better idea about this issue, could you please provide the log messages from Dave for build operation?
Thanks and Regards,
Sudheesh
Mar 24, 2021
06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 24, 2021
06:52 AM
Hi Sudheesh,
Yes. I ensured that the output was set to ihex before building. I have actually tried binary also, to create a .bin file, but neither were created.
I have attached the log from the console window, if this is what you meant by log messages from Dave for build operation. I hope you can find something
Thanks,
Yes. I ensured that the output was set to ihex before building. I have actually tried binary also, to create a .bin file, but neither were created.
I have attached the log from the console window, if this is what you meant by log messages from Dave for build operation. I hope you can find something
Thanks,
Mar 31, 2021
05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 31, 2021
05:28 AM
Hello,
I checked the log messages that you provided. I compared it with a test project that I created in Dave. I could not find the log messages corresponding to generating .hex files in the file that you provided.
example:
'Invoking: ARM-GCC Create Flash Image'
"C:/Dave/DAVE-IDE-4.4.2-64Bit/eclipse/ARM-GCC-49/bin/arm-none-eabi-objcopy" -O ihex "test.elf" "test.hex"
'Finished building: test.hex'
Corresponding lines from makefiles are as below.
test.hex: test.elf
@echo 'Invoking: ARM-GCC Create Flash Image'
"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-objcopy" -O ihex "test.elf" "test.hex"
@echo 'Finished building: $@'
@echo.
Could you please attach the makefile of your project to this thread? We can review it and let you know, if there are any issues.
Thanks and Regards,
Sudheesh
I checked the log messages that you provided. I compared it with a test project that I created in Dave. I could not find the log messages corresponding to generating .hex files in the file that you provided.
example:
'Invoking: ARM-GCC Create Flash Image'
"C:/Dave/DAVE-IDE-4.4.2-64Bit/eclipse/ARM-GCC-49/bin/arm-none-eabi-objcopy" -O ihex "test.elf" "test.hex"
'Finished building: test.hex'
Corresponding lines from makefiles are as below.
test.hex: test.elf
@echo 'Invoking: ARM-GCC Create Flash Image'
"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-objcopy" -O ihex "test.elf" "test.hex"
@echo 'Finished building: $@'
@echo.
Could you please attach the makefile of your project to this thread? We can review it and let you know, if there are any issues.
Thanks and Regards,
Sudheesh
Apr 06, 2021
01:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 06, 2021
01:17 AM
Hi Sudheesh,
Sorry for the late reply, I have been out for a week.
I am unable to upload the makefiles to the thread, I am stopped by an 'Invalid File' error from the forum. I have copy and pasted an snippet of the make file of relevance, hopefully this will be enough for you to go on.
The corresponding text found in the make file makes no reference to any hex output;
# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.c
@echo 'Building file: $<'
@echo 'Invoking: ARM-GCC C Compiler'
"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-gcc" -MMD -MT "$@" -DXMC4800_E196x2048 -I"$(PROJECT_LOC)/Third-Party/FreeRTOS/org/Source/include" -I"$(PROJECT_LOC)/Third-Party/FreeRTOS/org/Source/portable/GCC/ARM_CM4F" -I"$(PROJECT_LOC)/Third-Party/FreeRTOS/org/Source" -I"$(PROJECT_LOC)/Libraries/XMCLib/inc" -I"$(PROJECT_LOC)/Config" -I"$(PROJECT_LOC)/Libraries/CMSIS/Include" -I"$(PROJECT_LOC)/Libraries/CMSIS/Infineon/XMC4800_series/Include" -I"$(PROJECT_LOC)" -I"$(PROJECT_LOC)/Dave/Generated" -I"$(PROJECT_LOC)/Libraries" -O0 -ffunction-sections -fdata-sections -Wall -std=gnu99 -mfloat-abi=softfp -Wa,-adhlns="$@.lst" -pipe -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d) $@" -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mthumb -g -gdwarf-2 -o "$@" "$<"
@echo 'Finished building: $<'
@echo.
Could the problem be with my include paths?
Thanks,
Steven
Sorry for the late reply, I have been out for a week.
I am unable to upload the makefiles to the thread, I am stopped by an 'Invalid File' error from the forum. I have copy and pasted an snippet of the make file of relevance, hopefully this will be enough for you to go on.
The corresponding text found in the make file makes no reference to any hex output;
# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.c
@echo 'Building file: $<'
@echo 'Invoking: ARM-GCC C Compiler'
"$(TOOLCHAIN_ROOT)/bin/arm-none-eabi-gcc" -MMD -MT "$@" -DXMC4800_E196x2048 -I"$(PROJECT_LOC)/Third-Party/FreeRTOS/org/Source/include" -I"$(PROJECT_LOC)/Third-Party/FreeRTOS/org/Source/portable/GCC/ARM_CM4F" -I"$(PROJECT_LOC)/Third-Party/FreeRTOS/org/Source" -I"$(PROJECT_LOC)/Libraries/XMCLib/inc" -I"$(PROJECT_LOC)/Config" -I"$(PROJECT_LOC)/Libraries/CMSIS/Include" -I"$(PROJECT_LOC)/Libraries/CMSIS/Infineon/XMC4800_series/Include" -I"$(PROJECT_LOC)" -I"$(PROJECT_LOC)/Dave/Generated" -I"$(PROJECT_LOC)/Libraries" -O0 -ffunction-sections -fdata-sections -Wall -std=gnu99 -mfloat-abi=softfp -Wa,-adhlns="$@.lst" -pipe -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d) $@" -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mthumb -g -gdwarf-2 -o "$@" "$<"
@echo 'Finished building: $<'
@echo.
Could the problem be with my include paths?
Thanks,
Steven
Apr 13, 2021
09:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 13, 2021
09:08 AM
Hi,
After a little more digging and comparing the makefile generated to one in a working project, I found the following line missing...
Extract from makefile, where project is NOT generating .hex file;
# Add inputs and outputs from these tool invocations to the build variables
SECONDARY_FLASH += \
<------ Missing output
SECONDARY_FLASH += \
A318A902.lst
SECONDARY_SIZE += \
A318A902.siz
Extract from makefile, where project IS generating .hex file;
# Add inputs and outputs from these tool invocations to the build variables
SECONDARY_FLASH += \
Heartbeat.hex \ <------ Output exists
SECONDARY_LIST += \
Heartbeat.lst \
SECONDARY_SIZE += \
Heartbeat.siz \
I am unsure where this is defined, I have compared project settings and everything looks in order. As previously mentioned, the project settings have remained untouched for a while and are largely default.
I have now managed to attach the makefile for the project in question
Hope you can help me out
Thanks,
Steven
After a little more digging and comparing the makefile generated to one in a working project, I found the following line missing...
Extract from makefile, where project is NOT generating .hex file;
# Add inputs and outputs from these tool invocations to the build variables
SECONDARY_FLASH += \
<------ Missing output
SECONDARY_FLASH += \
A318A902.lst
SECONDARY_SIZE += \
A318A902.siz
Extract from makefile, where project IS generating .hex file;
# Add inputs and outputs from these tool invocations to the build variables
SECONDARY_FLASH += \
Heartbeat.hex \ <------ Output exists
SECONDARY_LIST += \
Heartbeat.lst \
SECONDARY_SIZE += \
Heartbeat.siz \
I am unsure where this is defined, I have compared project settings and everything looks in order. As previously mentioned, the project settings have remained untouched for a while and are largely default.
I have now managed to attach the makefile for the project in question
Hope you can help me out
Thanks,
Steven
Apr 14, 2021
02:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 14, 2021
02:56 AM
Hi,
Could you please share your build setting and settings regarding Create hex file as shown in image.
Work Aorund: Starting from scratch to create a new project could be a crude workaround
Best Regards,
Vasanth
Apr 14, 2021
05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 14, 2021
05:27 AM
Hi Vasanth,
Thanks for getting back to me.
Here are my build settings as required...
Thanks,
Steven
Thanks for getting back to me.
Here are my build settings as required...
Thanks,
Steven
Jun 03, 2021
11:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 03, 2021
11:17 PM
Hello,
You have provided the logs when GCC Compiler is invoked. Can you provide information when the ARM-GCC flash image creation process is invoked? It will start with the following text - "Invoking: ARM-GCC Create Flash Image".
I'm not sure why your makefile has the hex line missing. I'm checking which setting is affecting that line. I'll get back to you. Meanwhile please give us the log for the above.
Regards,
Dheeraj
You have provided the logs when GCC Compiler is invoked. Can you provide information when the ARM-GCC flash image creation process is invoked? It will start with the following text - "Invoking: ARM-GCC Create Flash Image".
I'm not sure why your makefile has the hex line missing. I'm checking which setting is affecting that line. I'll get back to you. Meanwhile please give us the log for the above.
Regards,
Dheeraj
Sep 14, 2021
12:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 14, 2021
12:30 PM
I am having the same problem of no .hex file created, only .elf generated.
How do you fix this problem?
Thanks,
Tac.
How do you fix this problem?
Thanks,
Tac.
Apr 06, 2022
07:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 06, 2022
07:54 AM
Recently this issue appears here.
My Release doesn't have the corresponding .HEX file, only the .ELF.
What have I do? I need the .HEX file