10 years ago.

how to communicate with another board--kl25z

I want to use kl25z to send a hex command to another board (B), in ideal condition, B will send back some message to kl25z( this function is involved in B) at the same time , i want to see it through pc terminal. I have tried using pin PTA1 PTA2, ptc4 ptc3, ptd3 ptd2,while using opensda, but they all failed. i can get nothing from B. I am a totally newer, please help me.

this is how i'm trying now

/media/uploads/senseHuge/1.png

using pc.putc() is just for testing whether my sending data is right, when i using keil to debug , it seems that sct.readable is false. Did I use it right?

Can you share how you approached your problem? A code snippet, what did you try to use?

posted by Martin Kojtal 07 May 2014

1 Answer

10 years ago.

Did you hook up the boards correctly?

A.PTC4 to B.PTC3

A.PTC3 to B.PTC4

I think it's because i use the 5v usb output pin in j9 to support it. After i using a adapter to charge B, it works.

posted by Yanan Zhang 10 May 2014