Author Topic: QMK for bluepill (STM32F103C8T6)  (Read 2356 times)

0 Members and 1 Guest are viewing this topic.

Offline fpazos

  • Thread Starter
  • Posts: 32
QMK for bluepill (STM32F103C8T6)
« on: Tue, 23 October 2018, 14:22:34 »
Hi guys!!

I have been working the last months on a QMK version that uses a chinese/generic "bluepill" STM32F103C8T6. Thanks to Xydane (here in GH) who oriented me very well and showed me it's repository, I was able to keep working on it.

That's quite a powerful and cheap microcontroller for a keyboard (around 2$), I made a 70% layout and if someone is interested in creating more layouts, or adding functionanilities is welcome.
Maybe when the QMK pronton-c is finished has a similar firmware (probably better hahahaha) due to it is an ARM microcontroller too.

I made it to be easy to add more layouts and revisions. It has dual color backlight based on layers and capslock light.

I haven't used it on a real keyboard and, pluged into my laptop, somewhere in the top row (printscreen or start) make it hang the computer, but really I'm not very versed on C programming and microcontrollers, it has been everything about error/try.

I hope you enjoy it and improve it/use it.

https://github.com/qmk/qmk_firmware/tree/master/keyboards/handwired/bluepill

Original post from Xydane:
https://geekhack.org/index.php?topic=93537.0;topicseen
« Last Edit: Tue, 23 October 2018, 14:24:29 by fpazos »

Offline DiodeHead

  • Posts: 10
  • Location: Spain
Re: QMK for bluepill (STM32F103C8T6)
« Reply #1 on: Thu, 25 October 2018, 01:15:24 »
Thanks, I also have a blue pill in my current project, so this would be a perfect start for the software side of things :)

Offline upas

  • Posts: 7
Re: QMK for bluepill (STM32F103C8T6)
« Reply #2 on: Thu, 08 November 2018, 08:38:20 »
So I've been trying to get a blue pill working on my own build - I'm running into some issues and thought maybe you could help.

I have successfuly flashed the stm32dunio bootloader and had it recognized by my computer.
But when I flash the compiled blue pill .bin file from your handwire, it isn't recognized by the computer.

Should I be flashing the hex file? Is that the issue?

And if not, do you have any suggestions?

Offline fpazos

  • Thread Starter
  • Posts: 32
Re: QMK for bluepill (STM32F103C8T6)
« Reply #3 on: Thu, 08 November 2018, 09:11:16 »
Hi upas!

I'm sorry to say I'm not very helpful about this matter. I used a ftdi serial programmer. If you compare the code with the one at https://github.com/fpazos/qmk_firmware/blob/master/keyboards/chibios_test/stm32_f103_onekey/bootloader_defs.h you will realize that this file don't exists on my version. You should try to add it but unfortunately as I weren't able to use it I didn't keep trying, if you achieve something pull it to the main repository. Thanks!

Offline angelbirth

  • Posts: 2
  • Location: ID
Re: QMK for bluepill (STM32F103C8T6)
« Reply #4 on: Tue, 13 November 2018, 10:34:05 »
So I've been trying to get a blue pill working on my own build - I'm running into some issues and thought maybe you could help.

I have successfuly flashed the stm32dunio bootloader and had it recognized by my computer.
But when I flash the compiled blue pill .bin file from your handwire, it isn't recognized by the computer.

Should I be flashing the hex file? Is that the issue?

And if not, do you have any suggestions?
ah, you should try resetting the board (or unplug-replug) after flashing

Sent from my AUM-AL20 using Tapatalk


Offline upas

  • Posts: 7
Re: QMK for bluepill (STM32F103C8T6)
« Reply #5 on: Thu, 06 December 2018, 21:02:00 »
Hi upas!

I'm sorry to say I'm not very helpful about this matter. I used a ftdi serial programmer. If you compare the code with the one at https://github.com/fpazos/qmk_firmware/blob/master/keyboards/chibios_test/stm32_f103_onekey/bootloader_defs.h you will realize that this file don't exists on my version. You should try to add it but unfortunately as I weren't able to use it I didn't keep trying, if you achieve something pull it to the main repository. Thanks!

Just wanted to give an update on this matter -  I had the wrong ARM toolchain installed. The default Ubuntu one is wrong! So I downloaded the proper one off of the ARM website itself, and everything was fine.

Offline fpazos

  • Thread Starter
  • Posts: 32
Re: QMK for bluepill (STM32F103C8T6)
« Reply #6 on: Fri, 07 December 2018, 02:01:35 »
Just wanted to give an update on this matter -  I had the wrong ARM toolchain installed. The default Ubuntu one is wrong! So I downloaded the proper one off of the ARM website itself, and everything was fine.
Good to know it. Maybe I'll give it a second opportunity as it would be interesting and ARM will be the future of microcontrollers.

Offline angelbirth

  • Posts: 2
  • Location: ID
Re: QMK for bluepill (STM32F103C8T6)
« Reply #7 on: Mon, 10 December 2018, 00:49:23 »
Hi upas!

I'm sorry to say I'm not very helpful about this matter. I used a ftdi serial programmer. If you compare the code with the one at https://github.com/fpazos/qmk_firmware/blob/master/keyboards/chibios_test/stm32_f103_onekey/bootloader_defs.h you will realize that this file don't exists on my version. You should try to add it but unfortunately as I weren't able to use it I didn't keep trying, if you achieve something pull it to the main repository. Thanks!

Just wanted to give an update on this matter -  I had the wrong ARM toolchain installed. The default Ubuntu one is wrong! So I downloaded the proper one off of the ARM website itself, and everything was fine.

can the toolchain from ppa:team-gcc-arm-embedded be used?