Found out that the declare_isr macro wasn't added in the final file so the ISR would crash.