qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.09k stars 38.89k forks source link

[Bug] Compiled firmware for yandrstudio/yr6095 do not work #20982

Open daviddgm opened 1 year ago

daviddgm commented 1 year ago

Describe the Bug

I tried to compile and update firmware for yandrstudio/yr6095 with bootloader stm32duino, uf2boot and tinyuf2, but none of them work in this board.

Keyboard Used

yandrstudio/yr6095

Link to product page (if applicable)

https://www.aliexpress.com/item/1005004689966255.html

Operating System

Linux

qmk doctor Output

No response

Is AutoHotKey / Karabiner installed

Other keyboard-related software installed

No response

Additional Context

For every firmware that do not work need to program bootloader again.

sigprof commented 1 year ago

The fact that the bootloader declared for yandrstudio/yr6095 does not match what is installed on real PCBs is known for some time: https://github.com/qmk/qmk_firmware/pull/18278#issuecomment-1460567301. Some other Y&R boards using STM32F103 MCUs (or clones) are probably also affected with the same problem.

Unfortunately, it seems that the maintainer of those boards is not really interested in getting them properly supported in upstream QMK (they apparently have their own fork with some core modifications related to their customized bootloader), and I don't actually have that PCB, so I'm not 100% sure what should be the proper bootloader setup for that hardware.

daviddgm commented 1 year ago

Hi. Please one basic question, I need to use .hex or .uf2 file to update the board?

sigprof commented 1 year ago

That depends on which bootloader you actually have on your PCB:

Note that you can't simply convert a .bin file which was compiled for the stm32duino bootloader to the .uf2 format, because the firmware intended for use with the uf2boot bootloader needs to be compiled for a different base address.

bartman commented 3 months ago

I need to reflash the bootloader onto my yr6095. I have found the Flashing STM32Duino Bootloader. Unfortunately the pads on the board are not labeled.

Anyone figure out which pin is which?

Also there are no jumpers on the yr6095, is that going to be a problem?

fauxpark commented 3 months ago

Per the datasheet the third pin from the left appears to be connected to PA13 (SWDIO). From this we can reasonably infer the second pin is PA14 (SWCLK). Then the first pin with the thicker traces is probably VCC, and the remaining pin GND. Double check this with a multimeter first though.

bartman commented 3 months ago

Thanks. Found the data sheet here: STM32F103

with multimeter I see, from left to right:

Here is my current guess https://imgur.com/BESNPOm

ST-Link ordered... will update.