Content originally posted in LPCWare by Belias on Wed Jun 25 05:31:46 MST 2014
After some further testing, it seems like it is not direclty r4 which gets set, but when the encapsuling method returns (and restores r4 from stack) r4 has the value 0, not the one from "i" which it sould have.
So calling LPC_I2CD_API->i2c_master_tx_rx_intr(i2cHandleMaster, ¶m,&result); somehow crashes the stack :/ possible?