Newbie cannot get DTR reset working on standard Blue Pill
Posted: Wed Jul 07, 2021 6:04 pm
New to STM32duino. Not new to Arduinos generally. Apologies if this is an FAQ but I did not find it in the "Please read first" or the "FAQs" pages.
Can anyone here help me ?
Windows 10 21H1 Intel x64.
Everything works fine using standard ST-LinkV2 so my board is definitely alive.
Board is a pretty standard looking Blue Pill with a F103C8T6. I've also checked it has the correct 1.5K pullup on USBD-/A12.
I flashed Roger's generic_boot20_pc13.bin from github binaries dir into it at 0x08000000 using ST-Link with BOOT0 and BOOT1 both jumpered to gnd.
Arduino IDE is 1.8.13 been installed for a while, other (not STM32 things but AVR and SAMD stuff) all working fine.
All the arduino bits installed OK.
Opening a Terminal Window in Arduino gives me Roger's default message that the bootloader installed OK.
Settings in Tools menu are :-
Board: Generic STM32F1 series
Board Part Number: "BluePill F103C8"
USART Support: Disabled
USB Support: CDC supercedes USART
USB Speed: Low/Full
Upload method: Maple DFU Bootloader2.0
Port: COM16 (identified using device manager)
I think those are right (anyone confirm?). It's hard to be sure as there are older versions of the instructions about that don't quite match what options I see.
So, I tried to build and download the standard BLINK sketch but I get this error :-
Sketch uses 10860 bytes (16%) of program storage space. Maximum is 65536 bytes.
Global variables use 824 bytes (4%) of dynamic memory, leaving 19656 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=5128, tid=0x00000000000031ac
#
# JRE version: Java(TM) SE Runtime Environment (8.0_291-b10) (build 1.8.0_291-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.291-b10 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
#
# An error report file with more information is saved as:
# C:\Users\andy\AppData\Local\Arduino15\packages\STMicroelectronics\tools\STM32Tools\2.0.0\win\hs_err_pid5128.log
Can anyone here help me ?
Windows 10 21H1 Intel x64.
Everything works fine using standard ST-LinkV2 so my board is definitely alive.
Board is a pretty standard looking Blue Pill with a F103C8T6. I've also checked it has the correct 1.5K pullup on USBD-/A12.
I flashed Roger's generic_boot20_pc13.bin from github binaries dir into it at 0x08000000 using ST-Link with BOOT0 and BOOT1 both jumpered to gnd.
Arduino IDE is 1.8.13 been installed for a while, other (not STM32 things but AVR and SAMD stuff) all working fine.
All the arduino bits installed OK.
Opening a Terminal Window in Arduino gives me Roger's default message that the bootloader installed OK.
Settings in Tools menu are :-
Board: Generic STM32F1 series
Board Part Number: "BluePill F103C8"
USART Support: Disabled
USB Support: CDC supercedes USART
USB Speed: Low/Full
Upload method: Maple DFU Bootloader2.0
Port: COM16 (identified using device manager)
I think those are right (anyone confirm?). It's hard to be sure as there are older versions of the instructions about that don't quite match what options I see.
So, I tried to build and download the standard BLINK sketch but I get this error :-
Sketch uses 10860 bytes (16%) of program storage space. Maximum is 65536 bytes.
Global variables use 824 bytes (4%) of dynamic memory, leaving 19656 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=5128, tid=0x00000000000031ac
#
# JRE version: Java(TM) SE Runtime Environment (8.0_291-b10) (build 1.8.0_291-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.291-b10 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
#
# An error report file with more information is saved as:
# C:\Users\andy\AppData\Local\Arduino15\packages\STMicroelectronics\tools\STM32Tools\2.0.0\win\hs_err_pid5128.log