Will it dump it to a file on the SD card?
Yeah. mem-fcram.bin
Will it dump it to a file on the SD card?

Finally, here is my forked version. Will also add a VC injection ROP part source soon.You should really submit a pull request to the git repo for all of this.

Finally, here is my forked version. Will also add a VC injection ROP part source soon.
https://github.com/dukesrg/Spider3DSTools

Guys could someone tell me how to get the code.bin to crash? I mean, after doing what i want to do, i need it to crash back to the homescreen...

What I usually do is attempt to load a very large value into buf.

Guys could someone tell me how to get the code.bin to crash? I mean, after doing what i want to do, i need it to crash back to the homescreen...

Doesn't returning 0 from uvl_entry function makes the 3ds to crash spider?
#define START_SECTION __attribute__ ((section (".text.start"), naked))
// make sure code is PIE
#ifndef __PIE__
#error "Must compile with -fPIE"
#endif
int(*IFile_Open)(void *this, const short *path, int flags) = 0x0022FE08;
int(*IFile_Write)(void *this, unsigned int *written, void *src, unsigned int len) = 0x00168764;
int(*GX_SetTextureCopy)(void *input_buffer, void *output_buffer, unsigned int size, int in_x, int in_y, int out_x, int out_y, int flags) = 0x0011DD48;
int(*GSPGPU_FlushDataCache)(void *addr, unsigned int len) = 0x00191504;
int(*svcSleepThread)(unsigned long long nanoseconds) = 0x0023FFE8;
int uvl_entry();
int START_SECTION
uvl_start()
{
__asm__ volatile (".word 0xE1A00000");
uvl_entry();
__asm__ volatile ("bx lr");
}
int
uvl_entry()
{
return 0;
}
I don't think so, since this code freezes the 3ds instead of crashing spider:


So, i just have to write 0x100000000 as buffer? Using SetTextureCopy command?Then your best bet is corrupting heap memory as shutterbug2000 says
Would dereferencing a null pointer work? Like:Guys could someone tell me how to get the code.bin to crash? I mean, after doing what i want to do, i need it to crash back to the homescreen...
*(int*)0 = 0;

What I usually do is attempt to load a very large value into buf.

You mean i should write the fcram with zeros? Wouldn't that get the whole system to crash? I just want to get spider to crash...You could just arbitrarily write memory with zeroes or Fs. That'll most certainly get things crashing.


