This commit is contained in:
Robin Jones 2020-09-08 23:41:22 +01:00 коммит произвёл GitHub
Родитель 5bea59807c
Коммит 48e4dfc5d3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 31 добавлений и 1 удалений

Просмотреть файл

@ -237,3 +237,27 @@ set_property(TARGET ${NANOCLR_PROJECT_NAME}.elf APPEND_STRING PROPERTY LINK_FLAG
# generate output files
nf_generate_build_output_files(${NANOBOOTER_PROJECT_NAME}.elf)
nf_generate_build_output_files(${NANOCLR_PROJECT_NAME}.elf)
# if HEX2DFU tool is available pack the binaries into a DFU package
if(HEX2DFU_TOOL_AVAILABLE)
####################################################################################################
## when changing the linker file make sure to update the new addresses for the image files below ##
## DO NOT use the leading 0x notation, just the address in plain hexadecimal formating ##
####################################################################################################
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
NF_GENERATE_DFU_PACKAGE(
${PROJECT_SOURCE_DIR}/build/${NANOBOOTER_PROJECT_NAME}.bin 08000000
${PROJECT_SOURCE_DIR}/build/${NANOCLR_PROJECT_NAME}.bin 08010000
${PROJECT_SOURCE_DIR}/build/nanobooter-nanoclr.dfu
)
else()
NF_GENERATE_DFU_PACKAGE(
${PROJECT_SOURCE_DIR}/build/${NANOBOOTER_PROJECT_NAME}.bin 08000000
${PROJECT_SOURCE_DIR}/build/${NANOCLR_PROJECT_NAME}.bin 08010000
${PROJECT_SOURCE_DIR}/build/nanobooter-nanoclr.dfu
)
endif()
endif()

Просмотреть файл

@ -22,3 +22,9 @@ HAL_SYSTEM_CONFIG HalSystemConfig =
};
HAL_TARGET_CONFIGURATION g_TargetConfiguration;
// this target use DFU for updates
uint32_t GetTargetCapabilities()
{
return TargetCapabilities_DfuUpdate;
};

Просмотреть файл

@ -496,7 +496,7 @@ jobs:
# creates a counter and assigns it to the revision variable
REVISION: $[counter('ST_NUCLEO144_F746ZG_versioncounter', 0)]
GccArm_Version:
NeedsDFU: false
NeedsDFU: true
steps:
- checkout: self