EXCEPTION_ACCESS_VIOLATION在上传代码至STM32时发生。

huangapple go评论74阅读模式
英文:

EXCEPTION_ACCESS_VIOLATION when uploading code to STM32

问题

我尝试使用STM32duino Bootloader(又称为DFU方法)将代码上传到STM32“Bluepill”板时,遇到以下错误:

maple_loader v0.1
通过DTR脉冲重置到引导加载程序
#
# Java运行时环境检测到致命错误:
#
# EXCEPTION_ACCESS_VIOLATION(0xc0000005),位于pc=0x000000007110b5db,pid=1720,tid=0x0000000000000c98
#
# JRE版本:Java(TM) SE Runtime Environment(8.0_261-b12)(构建1.8.0_261-b12)
# Java VM:Java HotSpot(TM) 64-Bit Server VM(25.261-b12 混合模式 windows-amd64 压缩oops)
# 有问题的帧:
# C  [jSSC-2.8_x86_64.dll+0xb5db]
#
# 未能写入核心转储。在Windows客户端版本上,默认情况下不启用小型转储
#

这在我的另一台计算机上没有发生。发生了什么?

英文:

I'm getting the following error when trying to upload code to a STM32 "Bluepill" board using the STM32duino Bootloader aka DFU method:

maple_loader v0.1
Resetting to bootloader via DTR pulse
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007110b5db, pid=1720, tid=0x0000000000000c98
#
# JRE version: Java(TM) SE Runtime Environment (8.0_261-b12) (build 1.8.0_261-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.261-b12 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [jSSC-2.8_x86_64.dll+0xb5db]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#

This doesn't happen in another one of my computers. What's happening?

答案1

得分: 0

发现一个奇怪的解决方法。

不得不将Java二进制文件的路径更改为指向Arduino安装文件夹内提供的版本

这可以通过Windows控制面板中的环境变量来完成。如果有其他任何Java版本,您可能还需要卸载它们。

英文:

Found a strange fix.

Had to change the path to the Java binary to point to the provided version inside Arduino installation folder.

This is done through Environment Variables in Windows Control panel. You may also need to uninstall any other Java versions if you have any.

答案2

得分: 0

我也遇到了同样的问题,我通过卸载32位和64位版本的Java,然后只重新安装64位版本来解决了这个问题。
我还没有测试重新安装32位版本是否会再次引起这个问题。

英文:

I had this same issue as well and I fixed it by uninstalling both the 32-bit and 64-bit versions of Java and reinstalling only the 64-bit version.
I have not tested whether installing the 32-bit version again will cause the issue.

huangapple
  • 本文由 发表于 2020年8月30日 22:36:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/63658530.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定