Debugging C API Hardware Crashes

My Rust code runs fine in the simulator, but it has been crashing on hardware. I suspect I am running into a stack overflow. Are there any documents that list things like the stack size and memory map? Are there any articles on debugging C API hardware crashes? This thread has some useful information.