--- layout: devinfo app: TWL_EVA_PREWRITE altname: PREWRITE category: [TWL EVA] sequence: TRUE redirect_from: /dsidev/twl_eva_prewrite.html group: true --- This is most likely a test to see if HWInfo and the final firmware can be written or not. PREWRITE creates and signs HWInfo just like PREPARE does, though PREWRITE seems to have extra steps such as backing up/restoring logs during formatting. PREWRITE writes the following log entry which is not found in any DSi logs. This means PREWRITE is likely not used.
0,PWRITE,OK,1.3, , , ,S/N=,

This is the PREWRITE function list:

09-07	RTC FAT TO RAW
31-12	LOG BACKUP TO MMEM
12-07	TP CALDATA TO MMEM
28-01	FAT NORMAL FORMAT
31-14	LOG RESTORE FROM MMEM
28-08	MAKE TWLCFG.dat
29-06	INIT HWINFO_S.dat
29-07	INIT HWINFO_N.dat
09-06	RTC RAW TO FAT
12-08	TP CALDATA TO FAT
28-07	CLEAR NOR DATA
28-04	WRITE SDMC-LNC
28-09	IMPORT TAD FILES
28-05	LOAD MENU LAUNCHER
28-06	WRITE MENU LAUNCHER
31-15	WRITE PREWRITE LOG