help flashing blue pill access denied - Page 1
Forum section: electronics / general

author: ETITsynthesizer
author_rank: Contributor
timestamp: August 25, 2020, 09:19:59 pm
content: Code:C:\Users\myname\Documents\ArduinoData\packages\stm32duino\tools\stm32tools\2020.8.9/win/maple_upload.bat COM4 2 1EAF:0003 C:\Users\myname\AppData\Local\Temp\arduino_build_15216/Blink.ino.binAccess is denied.the batch file has execute permissions for the user and system. not sure if the permissions are for one of these two files or access to a hardware device like com4. any idea how to find what is causing this error? is it the \\//? how do I fix the / to \?I tried flashing the bin file with the j-link software directly. it does not work. I modified a blink example so PC13 would match LED pin of the STM32F103C8T6 I have here. I am using a pre compiled binary for the stm32duino. I can flash the bin file for the bootloader without problems. the ardiono IDE is able to get info from the board. I used the WDI driver installer for maple that was modded to work with STM32F103C8T6. I know the bootloader works.Code:BN: Maple MiniVID: 1EAFPID: 0004SN: (null)

author: ETITsynthesizer
author_rank: Contributor
timestamp: August 25, 2020, 09:39:05 pm
content: maple_upload.bat depends on java being in the path environment variable on win 10I added java to the path. now I can type java from any directory. however I have a new error. attached the log file.

author: thm_w
author_rank: Super Contributor
timestamp: August 25, 2020, 09:44:48 pm
content: maybehttp://stm32duinoforum.com/forum/viewtopic_f_20_t_3995.html

author: ETITsynthesizer
author_rank: Contributor
timestamp: August 25, 2020, 10:35:29 pm
content: thank you I followed along. I uninstalled and reinstalled using the downloaded installer. I allowed the javaw.exe local area network access. I rebooted. I added the repo and installed the board package. this is the error now. making progress beyond "access denied"Code: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=13628, tid=5480## JRE version: Java(TM) SE Runtime Environment (13.0.2+8) (build 13.0.2+8)# Java VM: Java HotSpot(TM) 64-Bit Server VM (13.0.2+8, 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\Robert\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2020.8.9\win\hs_err_pid13628.log## If you would like to submit a bug report, please visit:# http://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.#

author: ETITsynthesizer
author_rank: Contributor
timestamp: August 25, 2020, 11:17:56 pm
content: problem solved. I used the arduinio IDE with JLink.exe. from within the arduino IDE set upload method to JLink. it is super broken. I did it manually. I have to grab it from the temp folder before I close the arduinio IDE. but it works. do I need to add the jlink folder to my path environment variable?

author: thm_w
author_rank: Super Contributor
timestamp: August 25, 2020, 11:19:57 pm
content: Not sure if it matters, but the JRE version I have installed is 8, but you are showing 13.Try using the one bundled with the Arduino installer.