jlab-sensing / ENTS-node-firmware

Firmware for STM32 and ESP32 microcontrollers on the Soil Power Sensor board
MIT License
0 stars 3 forks source link

UART issues #148

Open jmadden173 opened 1 week ago

jmadden173 commented 1 week ago

Describe the Bug After a session of debugging the stm32 with the ST-Link, upon flashing with the stm32 env, there was no log messages being printed. I believe we've experienced this on other devices prior.

To Reproduce Steps to reproduce the behavior:

  1. TBD

Expected Behavior When running not attached to a debugger, the program should print out over UART.

Screenshots N/A

Environment OS: Linux spruce 6.8.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 x86_64 GNU/Linux Hardware version: 2.2.1-7 Software version: 122-support-extending-buffer-size-with-sd-card Platformio Version: 6.1.15

Additional Context When running the debugger again I was able to view the log messages. To me it seems like some hardware flag is being set that can't be fixed through reflashing. I've tried using the STMCubeProgrammer to clear the flash memory without success.

jmadden173 commented 1 week ago

Tagging @mirellameelo as we experiences issues where UART/Serial was not working when connected to a host device. When powering via DC power supply to simulate a battery, the program would not run. I know that has worked in the past when connected to a USB hub for power delivery, but is slightly buggy.