diff --git a/script/source_cfg.c.jinja2 b/script/source_cfg.c.jinja2 index 7f80b9f..276f11d 100644 --- a/script/source_cfg.c.jinja2 +++ b/script/source_cfg.c.jinja2 @@ -439,7 +439,7 @@ static Xcp_GeneralType Xcp_GeneralConfig{{'%02X' % loop.index0}} = { ({% if configuration.apis.xcp_short_download_api_enable.enabled %}0x01u{% else %}0x00u{% endif %} << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | ({% if configuration.apis.xcp_short_download_api_enable.protected %}0x01u{% else %}0x00u{% endif %} << 0x05u) /* protected through seed and key */ | 0x08u, /* SHORT_DOWNLOAD 0xED, optional */ ({% if configuration.apis.xcp_download_max_api_enable.enabled %}0x01u{% else %}0x00u{% endif %} << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | ({% if configuration.apis.xcp_download_max_api_enable.protected %}0x01u{% else %}0x00u{% endif %} << 0x05u) /* protected through seed and key */ | 0x03u, /* DOWNLOAD_MAX 0xEE, optional */ (0x01u << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | (0x00u << 0x05u) /* protected through seed and key */ | 0x04u, /* DOWNLOAD_NEXT 0xEF, optional */ - ({% if configuration.apis.xcp_download_api_enable.enabled %}0x01u{% else %}0x00u{% endif %} << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | ({% if configuration.apis.xcp_download_api_enable.protected %}0x01u{% else %}0x00u{% endif %} << 0x05u) /* protected through seed and key */ | 0x04u, /* DOWNLOAD 0xF0 */ + ({% if configuration.apis.xcp_download_api_enable.enabled %}0x01u{% else %}0x00u{% endif %} << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | ({% if configuration.apis.xcp_download_api_enable.protected %}0x01u{% else %}0x00u{% endif %} << 0x05u) /* protected through seed and key */ | 0x03u, /* DOWNLOAD 0xF0 */ (0x01u << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | (0x00u << 0x05u) /* protected through seed and key */ | 0x03u, /* USER_CMD 0xF1, optional */ (0x01u << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | (0x00u << 0x05u) /* protected through seed and key */ | 0x01u, /* TRANSPORT_LAYER_CMD 0xF2, optional Note: the size depends on sub-command and is checked in the callback itself. */ ({% if configuration.apis.xcp_build_checksum_api_enable.enabled %}0x01u{% else %}0x00u{% endif %} << 0x07u) /* enable */ | (0x01u << 0x06u) /* is CTO */ | (0x00u << 0x05u) /* protected through seed and key */ | 0x08u, /* BUILD_CHECKSUM 0xF3, optional */