Skip to content

反复手动复位后 ADC输出0 #53

@createskyblue

Description

@createskyblue

描述一下这个bug / Describe the bug

下载后复位,analogRead的值为0
陷入该异常状态后即使硬件复位,或者重新下载程序,都无法恢复
除非断电重启

复现步骤 / To Reproduce

void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.println(analogRead(PA0));
}

下载程序后反复手动复位,直到异常触发

异常触发后必须断电才能恢复正常

如果正常,应该是什么样 / Expected behavior

模拟值正常输出

截图 / Screenshots

image
image
image

日志 / Logs

系统 / System

Win10 22H2

PACK包版本 / Version

0.4.1

验证

  • 检查过该问题,之前没有人提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions