EasyManua.ls Logo

P&E Microcomputer Systems Cyclone LC Series - Page 79

P&E Microcomputer Systems Cyclone LC Series
149 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
User Manual For Cyclone LC Programmers 79
8.2.4.4.7 getLastErrorAddr
uint32_t getLastErrorAddr(uint32_t cycloneHandle);
If the “getErrorCode” function returns a non-zero value (indicating an error has occurred), this
routine can be used to query the address where the error occurred.
8.2.4.4.8 getDescriptionOfErrorCode
char *getDescriptionOfErrorCode(uint32_t cycloneHandle, uint16_t errorCode);
This function returns a description of the error code.
8.2.4.4.9 resetCyclone
bool resetCyclone(uint32_t cycloneHandle, uint32_t resetDelayInMs);
This function performs a hard reset of the Cyclone. It is the same as pressing the reset button. This
is considered a legacy call and does not need to be called by the application.
8.2.4.5 Configuration / Image Maintenance Calls
8.2.4.5.1 getImageDescription
char *getImageDescription(uint32_t cycloneHandle, uint32_t imageId) ;
This function returns the description of a particular image stored on the Cyclone (internal Flash or
external memory card). This description is specified by the user when the image is created.
@returnvalue The error code of the DLL or Cyclone
@parameter cycloneHandle
The handle of the Cyclone from which to request the error
address.
@returnvalue
The memory address where the last programming error
occurred.
@parameter cycloneHandle The handle of the Cyclone to retrieve the error code description.
@parameter errorCode The error code to check.
@returnvalue
A pointer to a null-terminated character string that contains the
error code description.
@parameter cycloneHandle The handle of the Cyclone that will be reset.
@parameter resetDelayInMs
The reset delay, specified in milliseconds. The delay should be
at least 5500 ms.
@returnvalue
True if reset was successful
False otherwise
@parameter cycloneHandle The handle of the Cyclone to get an image description.

Table of Contents