NOT Solved -MAPLE and STM32 not uploading, IDE2.03 EXCEPTION ACCESS VIOLATION
Posted: Sun Jan 29, 2023 10:17 pm
I know there is a topic on this already but it is quite old and does not come to a conclusion. It seems to refer specifically to IDE 1.8.X which has Java installed by default. IDE 2.0.3 does not install or need Java so my issue must be something to do with the relationship between STMduino and the machine wide Java install.
Forgive this dumb question as I'm just trying to use this software to load build from the Arduino IDE V2.03 to my STM32F103. Should the maple_upload.bat file automatically run as part of the Ctrl-U compilation process within the IDE?
I ask because I have added the text "echo %path% > Ard-env.txt" into the file. If I run maple_upload.bat manually, it creates Ard-env.txt file. It does not create the Ard-env.txt file when I Ctrl-U and compile from within the IDE.
So why am I doing this anyway, because I'm getting the following when trying to compile and upload;
Sketch uses 12804 bytes (9%) of program storage space. Maximum is 131072 bytes.
Global variables use 2064 bytes (10%) of dynamic memory, leaving 18416 bytes for local variables. Maximum is 20480 bytes.
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=27268, tid=0x000000000000673c
#
# JRE version: Java(TM) SE Runtime Environment (8.0_361) (build 1.8.0_361-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.361-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [jSSC-2.8_x86_64.dll+0xb5db]
# An error report file with more information is saved as:
# C:\Users\Mike\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2022.9.26\win\hs_err_pid27268.log
Obviously I don't have a JAVA install with the IDE as 2.0 onwards does not use Java. I should be pointing to my Java install which I installed today to make sure I had an up to date version.
C:\Users\Mike>java -version
java version "1.8.0_361"
Java(TM) SE Runtime Environment (build 1.8.0_361-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.361-b09, mixed mode)
and is located here;
C:\Program Files\Java
C:\Program Files(x86)\Java
for the 32 and 64 bit versions
The Ard-env.txt produces the following if maple_upload.bat is run manually;
java\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python38\Scripts\;C:\Python38\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\PuTTY\;C:\JTDX64\159-32A\bin;C:\WSJT\wsjtx\bin;C:\Users\Mike\AppData\Local\Microsoft\WindowsApps;C:\Users\Mike\AppData\Roaming\npm;C:\ProgramData\Mike\GitHubDesktop\bin;C:\Users\Mike\AppData\Local\GitHubDesktop\bin;C:\ProgramData\Mike\atom\bin;C:\Users\Mike\AppData\Local\Microsoft\WindowsApps
This is a plea for help, somebody must be able to help me fix the problem please.
Forgive this dumb question as I'm just trying to use this software to load build from the Arduino IDE V2.03 to my STM32F103. Should the maple_upload.bat file automatically run as part of the Ctrl-U compilation process within the IDE?
I ask because I have added the text "echo %path% > Ard-env.txt" into the file. If I run maple_upload.bat manually, it creates Ard-env.txt file. It does not create the Ard-env.txt file when I Ctrl-U and compile from within the IDE.
So why am I doing this anyway, because I'm getting the following when trying to compile and upload;
Sketch uses 12804 bytes (9%) of program storage space. Maximum is 131072 bytes.
Global variables use 2064 bytes (10%) of dynamic memory, leaving 18416 bytes for local variables. Maximum is 20480 bytes.
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=27268, tid=0x000000000000673c
#
# JRE version: Java(TM) SE Runtime Environment (8.0_361) (build 1.8.0_361-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.361-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [jSSC-2.8_x86_64.dll+0xb5db]
# An error report file with more information is saved as:
# C:\Users\Mike\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2022.9.26\win\hs_err_pid27268.log
Obviously I don't have a JAVA install with the IDE as 2.0 onwards does not use Java. I should be pointing to my Java install which I installed today to make sure I had an up to date version.
C:\Users\Mike>java -version
java version "1.8.0_361"
Java(TM) SE Runtime Environment (build 1.8.0_361-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.361-b09, mixed mode)
and is located here;
C:\Program Files\Java
C:\Program Files(x86)\Java
for the 32 and 64 bit versions
The Ard-env.txt produces the following if maple_upload.bat is run manually;
java\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python38\Scripts\;C:\Python38\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\PuTTY\;C:\JTDX64\159-32A\bin;C:\WSJT\wsjtx\bin;C:\Users\Mike\AppData\Local\Microsoft\WindowsApps;C:\Users\Mike\AppData\Roaming\npm;C:\ProgramData\Mike\GitHubDesktop\bin;C:\Users\Mike\AppData\Local\GitHubDesktop\bin;C:\ProgramData\Mike\atom\bin;C:\Users\Mike\AppData\Local\Microsoft\WindowsApps
This is a plea for help, somebody must be able to help me fix the problem please.