rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.5k stars 1.26k forks source link

A fatal error has been detected by the Java Runtime Environment #834

Closed Proxcentaur closed 3 years ago

Proxcentaur commented 3 years ago

I have been using STM32F1C series since 5 days ago. For the first time using this board, I have successfully upload a blink program both of using FTDI and STM32 bootloader through USB port. But today I got a strange error like this: ** 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=5852, tid=1516

JRE version: Java(TM) SE Runtime Environment (15.0.1+9) (build 15.0.1+9-18) Java VM: Java HotSpot(TM) 64-Bit Server VM (15.0.1+9-18, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64) Problematic frame: C [jSSC-2.8_x86_64.dll+0xb5db]

No core dump will be written. Minidumps are not enabled by default on client versions of Windows

An error report file with more information is saved as: C:\Users\dartmedia\Documents\Arduino\hardware\Arduino_STM32\tools\win\hs_err_pid5852.log

If you would like to submit a bug report, please visit: https://bugreport.java.com/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.**

Why did this happen? I have updated STM32 boards in Arduino IDE and my JDK to the last version but the error still occurs. What should I do ?

rogerclarkmelbourne commented 3 years ago

Github issues are not a support forum.

You should post this to

https://www.stm32duino.com/

stevstrong commented 3 years ago

This seems to be a Java or Arduino IDE issue, not core issue. So I will close this.

stevstrong commented 3 years ago

Possible duplicate of #813

rogerclarkmelbourne commented 3 years ago

Yes. Also the OP didn't reply

stevstrong commented 3 years ago

As a possible solution you may try to execute the following line in a CMD window (with admin privileges): set PATH=C:\Program Files (x86)\Arduino\java\bin;%PATH% Also see this forum thread.

Proxcentaur commented 3 years ago

I have solved this issue by pressing the STM32 reset button during uploading the program

ArminJo commented 11 months ago

The reason is this line in maple_upload.bat: java -jar maple_loader.jar %1 %2 %3 %4 The java.exe is found by using the Windows %PATH% pointing to your java version15 which is incompatible with maple_loader.jar. Thefore the javamust be replaced by ......\arduino\java\bin\java which points to the Arduino Java 1.8! The arduino internal usage of {the runtime.ide.path}/java/bin does not work 😞 .