Content originally posted in LPCWare by starblue on Wed May 20 06:54:42 MST 2015
You are missing a level of indirection. You shouldn't jump to 0x10400100, but to the address pointed to by 0x10400100.
Also, your result is too small, there is no space for the status code.
BTW, "didn't work" is not a good problem description, "causes a hard fault" would have been much better.