- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using a PSoC 5LP to control a PCA functional test fixture (a.k.a. bed-of-nails). An operator can open the lid of the tester at any time during the test. I've found that if the lid is opened at exactly the right time it will cause the I2C component to error out in several different ways and I can't recover. Sometimes it ends up at CyHalt or at one of the blocking statements (i.e. the 'while' loops) in the I2C auto-generated code.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can you please tell us if you are using PSoC5LP as slave or Master?
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Master
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My solution to this was to make calls to I2C_Stop() followed by I2C_Start() prior to beginning any I2C write/read. It must clear any I2C error that may have happened.