Hello,
Today i started making my own NDS tool for NVRAM writing& editing. But i ran into a problem, and now I am hoping somebody can help me here.
First off all, I got NVRAM dumping working with this code:
This code works fine, and i got the same result when i use this tool : https://github.com/44670/NVReader
, except for the first 4 bytes, which are off (they are always 00 in nvreader).
But writing the exact same .bin file back to the NVRAM results in a dsmode brick for me. I am using the following code for it:
does anybody have an idea what i am missing here?
Today i started making my own NDS tool for NVRAM writing& editing. But i ran into a problem, and now I am hoping somebody can help me here.
First off all, I got NVRAM dumping working with this code:
clearscreen();
printf("\x1b[1;1HDumping NVRAM");
fatInitDefault();
FILE* file=fopen("nvram.bin", "w");
u8* temp=(u8*)malloc(256*1024);
readFirmware(0x00,temp,256*1024);
fwrite(temp,1,256*1024,file);
fclose(file);
free(temp);
printf("\x1b[2;1HDone");
printf("\x1b[1;1HDumping NVRAM");
fatInitDefault();
FILE* file=fopen("nvram.bin", "w");
u8* temp=(u8*)malloc(256*1024);
readFirmware(0x00,temp,256*1024);
fwrite(temp,1,256*1024,file);
fclose(file);
free(temp);
printf("\x1b[2;1HDone");
, except for the first 4 bytes, which are off (they are always 00 in nvreader).
But writing the exact same .bin file back to the NVRAM results in a dsmode brick for me. I am using the following code for it:
clearscreen();
printf("\x1b[1;1HWriting NVRAM");
fatInitDefault();
FILE* file=fopen("nvram.bin", "rb");
writeFirmware(0x00,file,256*1024);
fclose(file);
printf("\x1b[2;1HDone");
printf("\x1b[1;1HWriting NVRAM");
fatInitDefault();
FILE* file=fopen("nvram.bin", "rb");
writeFirmware(0x00,file,256*1024);
fclose(file);
printf("\x1b[2;1HDone");