From e1bc0ec65a23233e74d9e4775dd6a3292dea0530 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sat, 29 Mar 2025 20:05:13 -0700 Subject: [PATCH] Added line for generate hex formatted output. --- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1026016..83108e3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -49,7 +49,14 @@ target_link_options(${PROJECT_NAME} PUBLIC set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".elf") +# Convert output to hex and binary +add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_OBJCOPY} -O ihex $ ${CMAKE_PROJECT_NAME}.hex +) + + #add_subdirectory(attic) add_subdirectory(ADC) add_subdirectory(RegEdit) +add_subdirectory(blink)