def getEndAddress(fileSize, startAddress):
    """
    :param fileSize: size of the FreeRTOS image used to add OTA descriptor in bytes
    :param startAddress: start address in decimal integer
    :return: end address in decimal integer
    """

    endAddress = startAddress  # initialize it as start address
    endAddress += fileSize  # include the file size
    endAddress += 24  # include size of the OTA descriptor, currently we have 24 bytes
    return endAddress