Content originally posted in LPCWare by Lithium on Wed May 25 08:05:37 MST 2011
Hello Forum users,
I want to use fast I2C for my sensor readings.
I first used the I2C2 port, i did not have any problems at all.
To use fast I2C i need to use I2C0, on port 0_27 and 0_28.
Changed the settings i needed to change.
Started the program and now i am getting an HardFault_Handler.
Tried to switch back to I2C2 but i am getting the error again :(
I am using the example project i2c.
The problem lies in this line:
I2CMasterState[portNum] = I2C_BUSY;
portNum = 0, i use i2c0.
I hope you can help me with this problem.
Using 3k3 resistors.
Embedded artist board.