The makefile contains a line to add a retail code to the ROM, this i believe causes some R4 firmware to misinterpret it as a retail ROM and it crashes when loading.
I haven't tested this since i'm unable to compile but i think it should work
The reason why it's there, is because the header will be proper when converting to a CIA.
It would be better to make a separate .nds file with the change.
The makefile contains a line to add a retail code to the ROM, this i believe causes some R4 firmware to misinterpret it as a retail ROM and it crashes when loading. I haven't tested this since i'm unable to compile but i think it should work