Comments (8)
I think it is a fair assumption that all pins can be digital IO. This assumption is an underlying assumption made in the mbed SDK, so having a ping that cannot do GPIO would be an SDK implementation error, not a test case?
@sg- care to comment on this one?
from ci-test-shield.
My previous though was that a resistor ladder would provide the coverage needed and avoid this case where analog pins are not digital capable
from ci-test-shield.
Will consider changing to resistor ladder for next revision. But how often is it the case that a pin can do analog in but not digital out?
from ci-test-shield.
I think that most mcus these days probably do offer both analog and digital capabilities on the same pin. But there are definitely potential cases where they do not - most probably on high-precision ADCs. In my opinion, a simple circuit that isolates the feature under test (analogin, not analogin + digitalout) would be preferred.
from ci-test-shield.
I do not disagree, the problem is we're pretty far down the path to getting these produced, making any HW changes would delay the release of the CI Test Shield by 1-2 months. Is this worth it?
Also, wouldnt adding a resistor ladder across A0-5 messup the analogout test? Or are you proposing a resistor ladder across A0-3 with A4-5 being loopback?
from ci-test-shield.
As a solution I have added the 'assumptions' tests, which will check the assumptions made in the tests. In this case the TESTS/assumptions/analogin/analogin.cpp
test will check that the AnalogIn pins can be used as DigitalOut pins. If not then the assumption fails, as does the entire test. Is this an acceptable solution?
from ci-test-shield.
@maclobdell are the assumptions tests an acceptable solution?
from ci-test-shield.
Marking as resolved.
from ci-test-shield.
Related Issues (20)
- Docs - add explanation of difference between FAIL and ERROR cases HOT 1
- ci-test for ST platform in latest mbed OS 5.4 HOT 10
- mbed HDK link of README is broken HOT 1
- MBED_CONF_APP_DIO_X not well named for PWM tests HOT 2
- Consider adding a time keeping device HOT 3
- Feature: Simulatenous drivers testing HOT 5
- Request to improve the PWM tests in order to support single edge trigger MCUs. HOT 8
- Prepare repository for production releases HOT 3
- AnalogIn test Failed on a new platform because the voltage cannot drop so quick HOT 6
- I2C-EEProm write failed because it requires a little delay HOT 3
- NCS36510 target overrides not released
- mBed-HDK link has moved.
- Issues / proposals for handling NC Pins
- Large number of failures a result of trying to test/use too many pins HOT 1
- Linking error due to Block Drivers now being included in Mbed HOT 1
- tests-api-analogin : value read max value limitation
- Production/Alternate test header
- tests-api-spi fails to compile HOT 1
- I2CEeprom ARMC6 compilation failed with mbed-os master HOT 10
- Correct deprecated API HOT 6
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 ci-test-shield.