STM32 Hardware Exception

Hi Everyone,

Update: I've figured out the issue. The issue is caused by running out of space on the stack.

I'm working on a library for reading from a fat32 file system. The library works as expected when executing on a linux computer, but causes a hardware exception when running on an embedded ARM stm32 discovery board (

To help explain the issue I'm seeing I recorded a gdb debug session:

The project is here:

The repository of the library where the error occurs is here, and the line of the file that I set the breakpoint is here.

What could be causing this exception?

If there's any more detail that I can provide please let me know.

Thanks in advance.