CTRDG_VerifyAgbFlash

C Specification

#include <nitro/ctrdg.h>
u32 CTRDG_VerifyAgbFlash(u16 sec_num, u8* src, u32 size);
  
Corresponding AGB function: u32 VerifyFlash(u16 secNo,u8 *src,u32 size)

Arguments

sec_num The destination flash sector number.
src Writes the source address.
size The verify size in bytes.

Return Values

Returns 0 if verification succeeds. Returns the error address on the device side if verification fails.

Description

This function verifies data of the size specified size beginning from the address specified in src against the data in sec_num.
This function returns 0 if verification ends correctly; otherwise, it returns the address where the verification error occurs.

The access cycle setting is created in the function and does not need to be set beforehand.

Note: The cartridge bus is locked for a set period by this function.

Note that the AGB backup device cannot be accessed normally with version IS-NITRO-DEBUGGER 1.66 or earlier.

See Also

CTRDG_VerifyAgbFlashAsyncCTRDG_WriteAndVerifyAgbFlash, CTRDG_WriteAndVerifyAgbFlashAsync

Revision History

05/25/2006 Added a description that the AGB backup device cannot be accessed normally with version IS-NITRO-DEBUGGER 1.66 or earlier.
04/07/2006 Initial version.


CONFIDENTIAL