I need help with my first Halcogen-generated project which is now getting stuck in an infinite loop in _memoryInit_ on the RM48 USB Stick. Previously it used to run and I cannot determine what I changed to cause this issue. Here is the memoryInit function as generated by Halcogen:
.def _memoryInit_
.asmfunc
_memoryInit_
stmfd sp!, {r0-r2}
ldr r2, regMinitGcr ; MINITGCR register pointer
mov r0, #0xA
str r0, [r2]
ldr r0, ramInitMask ; load RAM initialization mask
str r0, [r2, #4]
mloop
ldr r1, [r2, #12]
tst r1, #0x100
beq mloop
mov r0, #5
str r0, [r2]
ldmfd sp!, {r0-r2}
bx lr
ramInitMask .word 0x1C57F
regMinitGcr .word 0xFFFFFF5C
.endasmfunc