Skip to content

Commit

Permalink
fix minimal DOWNLOAD CTO size (alignment is optional)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbsog0 committed Feb 17, 2023
1 parent c71204f commit 9ef5da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/source_cfg.c.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9ef5da5

Please sign in to comment.