Battery voltage reading nonfunctional #116
Labels
bug
Something isn't working
help wanted
Extra attention is needed
stm32
Issues relating to the STM32 MCU
Describe the Bug
The battery test (
test_battery.c
) hangs.To Reproduce
Steps to reproduce the behavior:
pio test -e tests -f test_battery
Expected Behavior
The test code should pass. When running the example code it appears to be reading two separate values. The code is fairly old and I believe that there is some hardware conflict between the LoRa and battery code. When trying to add
SysApp_Init
to start the clock and RTC that's used forHAL_Delay
the code returns error. The way to read the values may have changed after playing around with the LoRa firmware.Screenshots
Example output from
example_battery
. Should read a constant voltageEnvironment
Linux spruce 6.8.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 x86_64 GNU/Linux
PlatformIO Core, version 6.1.7
Used ST-Link V3 MINIE
Done via remote development
Additional Context
Battery tests for remote development are currently disabled and should be enabled in the
stm32.yaml
workflow once fixed.The text was updated successfully, but these errors were encountered: