Flashing compiled .bin from SD card to Due?

I tried running code from RAM with jumping to the loaded file, but it didn't work, just program crashed.