I2C slave on PT60

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C slave on PT60

448 Views
hugosampaio
Contributor II

Hi community,

 

I'm trying to code a simple I2C slave driver for PT60 and I've been facing tons of issues. First, my scenario:

 

CW 10.5 and  twr-s08dc-pt60

I'm using processor expert, there are 2 high level beans: I2C and watchdog.

 

My code is just a loop feeding the dog, I2C uses interrupts/events to send and receive data.

The testing tool is a wandboard and I2C-dev tools (i2cdetect and i2cget).

 

Issues:

 

- I can't debug it. If I let it run, I cannot pause. If is pauses, it reaches some unknown position in memory or just loses communication

 

- Breakpoints aren't working either, they occurs in a odd pattern.

 

- I'm not sure about the meaning of I2C clock and hold time that are shown on processor expert. Are those the maximum or minimum values?

 

 

Any tips/guides/advices/questions are welcome.

 

Thanks.

 

Hugo.

Labels (1)
0 Kudos
0 Replies