Device Firmware Update (DFU) Middleware Library 5.1
External ELF file symbols

General Description

CyMCUElfTools adds these symbols to a generated ELF file.


Their values are either defined in the linker script (GCC, IAR) or in the assembly code (ARM): (see section Linker scripts). They may be used by CyMCUElfTool as parameters for generating a .cyacd2 file. Also, use the DFU SDK APIs to refer link-time known values to the compile time.

Variables

uint8_t __cy_boot_metadata_addr
 Metadata address. More...
 
uint8_t __cy_boot_metadata_length
 Metadata row size. More...
 
uint8_t __cy_product_id
 Product ID. More...
 
uint8_t __cy_checksum_type
 Checksum Algorithm of the DFU Host Command/Response Protocol packet. More...
 
uint8_t __cy_app_id
 Current application number.
 
uint8_t __cy_app_core1_start_addr
 CPU1 vector table address, if present.
 

Variable Documentation

◆ __cy_boot_metadata_addr

uint8_t __cy_boot_metadata_addr

Metadata address.

DFU uses this symbol to access metadata.

◆ __cy_boot_metadata_length

uint8_t __cy_boot_metadata_length

Metadata row size.

The DFU uses this symbol to access metadata.

◆ __cy_product_id

uint8_t __cy_product_id

Product ID.

CyMCUElfTool uses this value to place in the .cyacd2 header. The DFU uses this value to verify if an image is compatible with the device.

◆ __cy_checksum_type

uint8_t __cy_checksum_type

Checksum Algorithm of the DFU Host Command/Response Protocol packet.

Possible values

  • 0 For the Basic Summation algorithm
  • 1 For the CRC-16 algorithm
    Note
    Must be aligned with CY_DFU_OPT_PACKET_CRC