EDIT:
Solved: Call me an idiot - I used 'repeat - until' instead of 'begin - until'. In this case the compiler will crash compiling the 'repeat'.
I deleted most of the post but for the offending line.
IIC_start ( -- ) \ send start condition I2C1CON repeat dup @ $07 and 0= until
Greetings
Holger
Note also that if the I2C bus does not respond you will get a watchdog timeout (if you have the watchdog configured).
I recommend using constant instead of co: constant compiles much faster code than co:
Mike
Log in to post a comment.
EDIT:
Solved: Call me an idiot - I used 'repeat - until' instead of 'begin - until'. In this case the compiler will crash compiling the 'repeat'.
I deleted most of the post but for the offending line.
IIC_start ( -- ) \ send start condition
I2C1CON repeat dup @ $07 and 0= until
Greetings
Holger
Last edit: Holger 2014-02-02
Note also that if the I2C bus does not respond you will get a watchdog timeout (if you have the watchdog configured).
I recommend using constant instead of co:
constant compiles much faster code than co:
Mike