1 /****************************************************************************** 2 TORNADO AMC modules Software Development Kit (SDK). Rev 4A. 3 (C) MicroLAB Systems, 2015-2017 4 5 6 File: TORNADO AMC SDK functions errors 7 ----- 8 9 ******************************************************************************/ 10 11 12 /** 13 * @file TASDK_ERR.h 14 * 15 * @brief SDK functions errors 16 * 17 * This file contains TORNADO AMC SDK functions errors 18 * 19 */ 20 21 22 #ifndef __TASDK_ERR_H__ // check for this file has been already included 23 #define __TASDK_ERR_H__ 1 24 25 26 //============================================================================= 27 //============ Returned error codes =========================================== 28 //============================================================================= 29 /** @addtogroup TASDK_ERRORS SDK API functions returned error codes 30 * @{ 31 */ 32 #define TASDK_OK 0 /**< No errors */ 33 #define TASDK_PARAM_ERR -100 /**< Erroneous function parameter */ 34 #define TASDK_INVALID_HW_ERR -101 /**< Invalid H/W error (invalid board, etc.) */ 35 #define TASDK_HW_ERR -102 /**< H/W error (error writing to the DSP control registers, etc) */ 36 #define TASDK_SYS_CALL_ERR -103 /**< system API call error */ 37 #define TASDK_INVALID_DSP_CORE_ERR -104 /**< Only DSP core 0 may call the function */ 38 #define TASDK_INVALID_DSP_CORE_BOOT_ADDR_ERR -105 /**< Invalid DSP core boot address */ 39 #define TASDK_API_OPEN_ERR -106 /**< API has not been open */ 40 #define TASDK_MMC_TO_CPU_COMM_CHECKSUM_ERR -150 /**< Invalid data frame checksum */ 41 #define TASDK_MMC_TO_CPU_COMM_DATA_BUF_LEN_ERR -151 /**< Data buffer is not large enough to store received data frame */ 42 #define TASDK_MMC_TO_CPU_COMM_INV_CMD_ERR -152 /**< Invalid command */ 43 #define TASDK_MMC_TO_CPU_COMM_RECV_DATA_LEN_ERR -153 /**< Invalid received data length */ 44 #define TASDK_MMC_TO_CPU_COMM_RECV_DATA_INV_ERR -154 /**< Received data is invalid */ 45 #define TASDK_MMC_TO_CPU_COMM_TIMEOUT_ERR -155 /**< MMC-to-DSP communication timeout error */ 46 #define TASDK_SFP_NOT_INSTALLED_ERR -156 /**< SFP module is not installed */ 47 #define TASDK_FMC_NOT_INSTALLED_ERR -157 /**< FMC module is not installed */ 48 #define TASDK_FMC_INFO_INVALID_ERR -158 /**< FMC module info is invalid */ 49 #define TASDK_FLASH_INV_DEV_ERR -200 /**< unsupported FLASH device */ 50 #define TASDK_FLASH_ERASE_ERR -201 /**< FLASH erase error */ 51 #define TASDK_FLASH_WR_ERR -202 /**< FLASH write error */ 52 #define TASDK_FLASH_CANNOT_WR_ERR -203 /**< FLASH contents does not allow to write this data */ 53 #define TASDK_FLASH_INV_RD_ERR -204 /**< invalid FLASH read data during AUTO-SELECT */ 54 #define TASDK_FLASH_INFO_NOT_MATCH_ERR -205 /**< FLASH info from the FLASH chip does not match FLASH_LEN_ID from System Configuration register */ 55 #define TASDK_FLASH_SECTOR_WRPROT_ERR -206 /**< FLASH sector is write-protected */ 56 #define TASDK_FLASH_WR_BUF_ABORT_ERR -207 /**< FLASH write-to-buffer program is aborted */ 57 #define TASDK_FLASH_HW_WP_ERR -208 /**< FLASH writes are disabled by on-board switch */ 58 #define TASDK_FLASH_WR_DISABLED_ERR -209 /**< FLASH writes are disabled by application */ 59 #define TASDK_FPGA_CNF_BITFILE_HD_FORMAT_ERR -500 /**< invalid FPGA bitfile header format */ 60 #define TASDK_FPGA_CNF_LOAD_ERR -501 /**< error during FPGA configuration */ 61 #define TASDK_FPGA_CNF_CRC_ERR -502 /**< CRC check failed during FPGA configuration */ 62 #define TASDK_FPGA_CNF_LOAD_LEN_ERR -503 /**< not all the data has been loaded */ 63 #define TASDK_FPGA_CNF_BITFILE_INV_PART_ERR -504 /**< invalid FPGA bitfile header part name */ 64 #define TASDK_FPGA_CNF_INV_IF_ERR -505 /**< invalid FPGA configuration interface selected */ 65 #define TASDK_FLASH_RECORD_GLOBAL_HD_NOT_VALID_ERR -600 /**< FLASH record global header is invalid */ 66 #define TASDK_FLASH_RECORD_HD_NOT_VALID_ERR -601 /**< FLASH record header is invalid */ 67 #define TASDK_FLASH_RECORD_HD_LIST_NOT_VALID_ERR -602 /**< FLASH record header list is invalid */ 68 #define TASDK_FLASH_RECORD_FREE_SPACE_ERR -603 /**< not available free space in FLASH */ 69 #define TASDK_FLASH_RECORD_CHECKSUM_ERR -604 /**< FLASH record checksum mismatch */ 70 #define TASDK_FLASH_RECORD_ALREADY_OPENED_ERR -605 /**< another FLASH record is opened for writing */ 71 #define TASDK_FLASH_RECORD_INVALID_LOAD_ADDR_ERR -606 /**< invalid FLASH record load address */ 72 #define TASDK_FLASH_RECORD_INV_NUMBER_ERR -607 /**< invalid FLASH record number */ 73 #define TASDK_FLASH_BOOT_SEQ_NOT_VALID_ERR -608 /**< FLASH boot sequence is invalid */ 74 #define ELF_LOADER_BASE_ERR -1000 /**< ELF file loader base error */ 75 #define ELF_LOADER_PARAM_ERR (ELF_LOADER_BASE_ERR) /**< erroneous function parameter */ 76 #define ELF_LOADER_INV_ELF_HEADER_ERR (ELF_LOADER_BASE_ERR - 1) /**< invalid ELF header */ 77 #define ELF_LOADER_INV_FILE_TYPE_ERR (ELF_LOADER_BASE_ERR - 2) /**< invalid file type (non-executable) */ 78 #define ELF_LOADER_INV_ENTRY_POINT_ERR (ELF_LOADER_BASE_ERR - 3) /**< invalid entry-point address */ 79 #define ELF_LOADER_INV_SEGMENT_ERR (ELF_LOADER_BASE_ERR - 4) /**< invalid or missing segment data */ 80 /** @}*/ 81 //============================================================================= 82 83 84 85 //============================================================================= 86 #endif /* __TASDK_ERR_H__ */ 87 88