Comments (4)
From vlado.handziski on February 16, 2011 14:18:11
Hi,
Can you provide a bit more info on the platform that you are using, i.e. which epoc core design and what devices are attached to the port? Switching between SPI and I2C has always been very tricky on the 1611, and the errata is full with I2C issues.
If the I2CEN was not disabled, your proposed change would effectively send a START condition. Did you check if the I2CSTT is indeed the culprit? I.e. did all successful modifications of I2CTCTL include a set I2CSTT? I wonder if this is again some timing issue or the internal I2C state machine somehow gets confused by the previous SPI signaling...
Vlado
from tinyos-main.
From [email protected] on February 17, 2011 23:48:56
No problem. The Epic core version I'm using is the 11-28-2007 version that has the flash and radio on the same bus. The only I2C device on the I2C bus is my light sensor, a Rohm BH1721FVC. I'm using a new board that I created, and I have attached the schematic.
I know that setting I2CTCTL to the particular value 0x01 isn't required, and that that value wasn't chosen because of the I2CSTT bit. I believe writing 0x00 will work. I tried some variations to determine if the value mattered, and I think I found some that didn't work (closer to 0xFF), but I didn't try too hard. After looking at the errata sheet it does seem that just writing I2CTCTL resets the I2C state machine which takes care of the problem, but I don't know for sure.
Brad
PS. The origin of writing 0x01 is because the U0TCTL register is reset to 0x01, and I found the U0TCTL register as the problem before I realized it was the same as I2CTCTL.
from tinyos-main.
From vlado.handziski on March 12, 2011 00:40:06
Patch applied as temp. fix in rev 5508. I still can not recreate the problem on my hw though.
Vlado
from tinyos-main.
From [email protected] on August 12, 2011 08:07:16
Since I had this issue I've made more of the hemera boards and some have this problem and some don't. I have no idea why.
from tinyos-main.
Related Issues (20)
- JNI Serial Update
- which version is this? HOT 6
- TestNetworkC.nc uses only root node
- How about TinyOS now? HOT 12
- To Update GPG Signature for Ubuntu18.04 HOT 12
- I can't compile Blip Applications for Iris Motes HOT 3
- Issue building to TOSSIM HOT 9
- problem when installing tinyos HOT 2
- problems when trying to install packages to install tinyos HOT 1
- How to implement DTLS on Tinyos/TOSSIM HOT 1
- Compile msp430-gcc HOT 2
- Make Java errors "requested alignment is not a power of 2"
- Dynamic Linking in TinyOS HOT 2
- Issue compiling 'make micaz sim' HOT 1
- test HOT 2
- What should I do if I can't connect to http://tinyprod.net/ when installing tinyos HOT 2
- tos-bsl still requires python2 HOT 1
- Meet problem in ~/top/tinyos-main/tinyos-2.x/apps/tutorials/RssiDemo HOT 1
- unnecessary endif
- Current status of TinyOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinyos-main.