osFlashWriteArray [Function]

Writes data in Flash page.

Syntax

#include <ultra64.h>
s32  osFlashWriteArray(u32 page_num);

Description

This is a function that writes data in each page of 1M Flash from 1M Flash write buffer.

It specifies page numbers as an argument.

For return values, 0 is returned when writing is successful and -1 when failed.

In order to write data in specific pages of 1M Flash, follow the procedure below:

(1) Delete data
(2) Transfer data from RDRAM to 1M Flash write buffer
(3) Transfer data from write buffer to each page of 1M Flash

This function is used to do the operation listed in (3).

Page 0x3fe and 0x3ff are reserved by Nintendo.  Please refrain from using the pages.

Timer wait is operated in osFlashWriteArray.  Since timer management is done by VI manager, it is necessary to boot VI manager with osCreateViManager before using this function.

Reference

Revision History

07/07/2000  This function was added.