Comments (12)
After reviewing the changes after the low power support the issue seems to be the missing powerup() in TWI::Slave::begin.
from cosa.
@Mogball you can add those modules if you want rn. I will add some when I have more time
from cosa.
@Mogball We had this issue as well rmr
from cosa.
@shahzadlone tried to fix the commit 173c3eb and he made changes committed here on this commit.
void
TWI::isr_stop(State state, uint8_t type)
{
TWCR = TWI::STOP_CMD;
loop_until_bit_is_clear(TWCR, TWSTO);
if (UNLIKELY(state == TWI::ERROR_STATE)) m_count = -1;
m_state = state;
// Check for asynchronous mode and call completion callback
if (m_dev->is_async() || m_status == SR_STOP) {
m_dev->on_completion(type, m_count);
// m_dev = NULL;
m_busy = false;
// TWCR = 0;
}
}
This seems to fix the issue and the slave starts to work but, slave breaks again on the commit a0d6795 where support for low power mode was improved. Can you suggest what we should look into for a potential fix?
from cosa.
You are right @mikaelpatel that seemed to have fixed it. I will be putting all these bug fixes in and then open a pull request.
from cosa.
@dothebart I do not think there is such a list. So I ended up creating a list and you can add to it https://github.com/dhillondeep/cosa-projects
from cosa.
What about our sensor modules? :P not just our build tools
from cosa.
Yes, the update to the TWI event handling has broken the TWI::Slave implementation. Busy right now but should get time to check the details in a few weeks. Thanks for the reporting.
from cosa.
Yeah we aren't to receive events either
from cosa.
Please see commit 2b07bd6.
from cosa.
btw, is there a list of opensource projects using cosa? Probably @dhillondeep could add an item to it? ;-)
from cosa.
This should now be fixed.
from cosa.
Related Issues (20)
- Build: Support Arduino 1.6.10 HOT 2
- Release: Create R1.2.1 for Arduino IDE update
- Cleanup: Improve IOStream operators
- Installation on Ubuntu without arduino HOT 2
- Quality: Increase robustness (check const pointers)
- Refactoring: Allow multiple TWI/SPI modules
- USB/CDC no longer works with Mac OS X El Capitan/Sierra HOT 1
- API Documentation link is stale... HOT 4
- IOStream: Cannot print non-dec base without prefix HOT 1
- INET::print_mac and W5x00 compatibility HOT 1
- W5?00: Only first connection works HOT 6
- board .map file could use better namespace allocation HOT 2
- Add support for other MCU e.g SAM, ARM, ESP, etc HOT 2
- Question: Is using Cosa without Arduino based on a Makefile possible? HOT 3
- please provide examples of async analog read handling HOT 1
- [RFM 69] High-level API for Encryption Key and Frequency Selection HOT 2
- Update toolchain versions in JSON file to IDE 1.8.9 HOT 2
- Hamming codec for cheap radios question HOT 1
- Is this platform still viable ? 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 cosa.