ARMmbed / ARMmbed/ci-test-shield

tests-api-analogin : value read max value limitation

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Hi

Here is tests-api-analogin scenario :
// As you turn more pins on the voltage on the ain pin will go up.

Note that measurement value is between 0 and VREF+, i.e. 3.3 V in most of ST boards.
My issue is with DISCO_L496AG board : max value is 2.5V

https://github.com/ARMmbed/ci-test-shield/blob/befdcc2a4ea758122a0d4326c8893b062e79bab9/TESTS/API/AnalogIn/AnalogIn.cpp#L35

Is it possible to limit the BusOut with 4 pins ?
Test remains quite the same, and it seems that 4 pins, turned on, is OK (below 2.5V) ?

Thx

Reference: https://github.com/ARMmbed/mbed-os/pull/8168

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with TESTS/API/AnalogIn/AnalogIn.cpp at line 35 and review the DISCO_L496AG behavior described here alongside mbed-os PR 8168. Check how many BusOut pins the scenario enables and whether limiting it to four keeps the analog measurement below 2.5 V. Done means the test remains valid on this board without exceeding its stated maximum.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.