I2C slave on PT60

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2C slave on PT60

608件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
0 返答(返信)