...
INT_X addr : first byte address to be read (byte addressable)
INT_X size : number of bytes to be read
BYTE *data : array of bytes that will be written with memory contents
...
This function has some exclusive GangPro-ARM return input values.
Syntax
Code Block | ||
---|---|---|
| ||
INT_X F_Get_MCU_Data( INT_X type ) |
Input
INT_X type : select type of information to receive
GET_MCU_ID (1) : connected MCU package identifier (MCU family and group, etc.), not a unique silicon ID
•
GET_MCU_FLASH_SIZE (2) : connected MCU flash size, if available
GET_MCU_RAM_SIZE (3) : connected MCU RAM size, if available
Select FPA to perform operation on using Multi API-DLL Functions | F_Set_FPA_index, index 1 to 64. Use index 0 to perform operation on all FPAs (if results differ, use Multi API-DLL Functions | F_LastStatus to get individual results).
Output
INT_X : result of operation
FALSE (0) : failed
TRUE (1) : succeeded
FPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus
FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range
...
General Description
Read program counter (PC) register using debug interface.
Syntax
INT_X F_Capture_PC_Addr( void );
Input
...
GET_MCU_TARGET_1 (0x10) : read from target 1, OR with type of info. requested (GangPro-ARM only)
GET_MCU_TARGET_2 (0x20) : read from target 2, OR with type of info. requested (GangPro-ARM only)
GET_MCU_TARGET_3 (0x30) : read from target 3, OR with type of info. requested (GangPro-ARM only)
GET_MCU_TARGET_4 (0x40) : read from target 4, OR with type of info. requested (GangPro-ARM only)
GET_MCU_TARGET_5 (0x50) : read from target 5, OR with type of info. requested (GangPro-ARM only)
GET_MCU_TARGET_6 (0x60) : read from target 6, OR with type of info. requested (GangPro-ARM only)
Select FPA to perform operation on using Multi API-DLL Functions | F_Set_FPA_index, index 1 to 64. Use index 0 to perform operation on all FPAs (if results differ, use Multi API-DLL Functions | F_LastStatus to get individual results).
Output
INT_X : result of operation
FALSE (0) : failedTRUE (1) : succeeded. No communication or incorrect parameters.
any positive value : MCU ID, flash size, or RAM size
FPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus
FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range
...
25. F_
...
Capture_
...
PC_
...
General Description
Stop target device (debug enable and halt).
...
Addr
General Description
Read program counter (PC) register using debug interface.
Syntax
Code Block | ||
---|---|---|
| ||
INT_X F_ |
...
Capture_ |
...
PC_ |
...
Addr( void ) |
...
Input
none.
Select FPA to perform operation on using Multi API-DLL Functions | F_Set_FPA_index, index 1 to 64. Use index 0 to perform operation on all FPAs (if results differ, use Multi API-DLL Functions | F_LastStatus to get individual results).
Output
INT_X : result of operation
FALSE (0) : failedTRUE (1) : succeeded
any positive value : program counter
FPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus
FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range
...