#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)
| sec_num | Represents the target flash sector number |
| src | Represents the source write address |
| size | Represents the verify size in bytes |
Returns 0 if verification succeeds. Returns the error address on the device side if verification fails.
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 made in the function and does not need to be set beforehand.
Note: The cartridge bus is locked for a set period by this function.
In addition, the AGB backup device cannot be accessed normally by the IS-NITRO-DEBUGGER.
However, be sure to check operations using an actual DS handheld unit since normal access is possible with actual DS units.
(This will be fixed in a future version of IS-NITRO-DEBUGGER.)
CTRDG_VerifyAgbFlashAsyncCTRDG_WriteAndVerifyAgbFlash, CTRDG_WriteAndVerifyAgbFlashAsync
04/07/2006 Initial version.
CONFIDENTIAL