You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readFirmware() on the ARM9 works by asking the ARM7 to read the firmware and save the result to a pointer passed by the ARM9. If this pointer is in DTCM (for example, if there is an array in the stack) this will fail because the ARM7 can't see DTCM.
There are two options:
We can document this limitation and add an sassert() to the code:
readFirmware()
on the ARM9 works by asking the ARM7 to read the firmware and save the result to a pointer passed by the ARM9. If this pointer is in DTCM (for example, if there is an array in the stack) this will fail because the ARM7 can't see DTCM.There are two options:
https://github.com/blocksds/libnds/blob/3e300238523fa5ca8560fdcb76dabce32d10170a/source/arm9/storage/firmware.c#L11
malloc()
to obtain temporary storage that the ARM7 can see, then copy the data to the final destination in DTCM.The text was updated successfully, but these errors were encountered: