Firmware: Yes, it's a bit tricky to set things up correctly, especially for those of you who have an old winavr installation still sitting on your drives

I'll try to create a zip file with everything included, so you can just unpack and compile.
That's an interesting look for sure, with the rubber bumps right on the PCB. Whatever works, I suppose.hasu wrote: I finally configured my keymap for this tiny and typing on it. I don't have case and plate and it is bare PCB just with rubber feet but not bad on desktop. I played with split space bar for a while, I love it and came to believe that there is nothing to lose for me and it is beneficial option for less key keyboard.
my current keymap here if someone are interested.
https://github.com/tmk/flabber_kbs/blob ... map_hasu.c
Thanks flabber!
From earlier in the thread. You have to pay attention to the directory structure.flabbergast wrote: Pretty nice!
And it's true that it's not easy to even get ALPS keycaps with the right profiles, and almost impossible to get some with the right legendsHopefully Alpine Winter will have been enough of a success that something similar is going to run again and we'll be able to get at least blanks for the more tricky keys.
Also: the compiling instructions are perhaps not so clear, and before the little bits get merged into TMK and Chibios, please use this for compiling:
1) getting an ARM toolchain plus development tools
ARM toolchain from here: https://launchpad.net/gcc-arm-embedded
You'll also need misc dev tools (make, grep, ...); these are either: http://www.mingw.org/wiki/msys
or: https://www.cygwin.com/
2) Getting the sources:
a) my sources for kb45p:
zip
b) tmk_core (newapi branch ATM):
zip
c) chibios (there's been some recent changes in chibios git that will make adjusting the sources inevitable; so you can use my branch which hasn't been updated to these (link below), or you can also probably use the latest stable chibios release):
zip
{These will change with time, as the code is being merged to upstream tmk and chibios, but at the moment these forks should be sychronised just right.}
Now unpack these: the directory structure you should end up with is:Now go to 'flabber_kbs/kb45p' and run 'make'. This should compile the firmware, and the resulting freshly built one is 'build/ch.bin'.Code: Select all
<empty_dir_of_your_liking> |-- flabber_kbs (unpacked and renamed contents of the zip from a) \-- tmk_core (unpacked and renamed contents of the zip from b) \-- tool/chibios/chibios (unpacked and renamed contents of the zip from c)
GOT IT!!!!! thank you very much.chuckdee wrote:From earlier in the thread. You have to pay attention to the directory structure.flabbergast wrote: Pretty nice!
And it's true that it's not easy to even get ALPS keycaps with the right profiles, and almost impossible to get some with the right legendsHopefully Alpine Winter will have been enough of a success that something similar is going to run again and we'll be able to get at least blanks for the more tricky keys.
Also: the compiling instructions are perhaps not so clear, and before the little bits get merged into TMK and Chibios, please use this for compiling:
1) getting an ARM toolchain plus development tools
ARM toolchain from here: https://launchpad.net/gcc-arm-embedded
You'll also need misc dev tools (make, grep, ...); these are either: http://www.mingw.org/wiki/msys
or: https://www.cygwin.com/
2) Getting the sources:
a) my sources for kb45p:
zip
b) tmk_core (newapi branch ATM):
zip
c) chibios (there's been some recent changes in chibios git that will make adjusting the sources inevitable; so you can use my branch which hasn't been updated to these (link below), or you can also probably use the latest stable chibios release):
zip
{These will change with time, as the code is being merged to upstream tmk and chibios, but at the moment these forks should be sychronised just right.}
Now unpack these: the directory structure you should end up with is:Now go to 'flabber_kbs/kb45p' and run 'make'. This should compile the firmware, and the resulting freshly built one is 'build/ch.bin'.Code: Select all
<empty_dir_of_your_liking> |-- flabber_kbs (unpacked and renamed contents of the zip from a) \-- tmk_core (unpacked and renamed contents of the zip from b) \-- tool/chibios/chibios (unpacked and renamed contents of the zip from c)
Thank you, that is a useful simplification.flabbergast wrote: Hi folks, because the above instructions point to github and the sources there get updated quite often, it may happen that the three repos are out-of-sync. So I've created just one archive with all the sources (including TMK and ChibiOS), you can download here, link below. Just unpack, 'cd kb45p' and 'make'.
https://dl.dropboxusercontent.com/u/638 ... sources.7z
You'll still need to get an ARM toolchain up and running.
Thanks a lot, that's really helpful, I'm finding the stock layout quite intuitive.flabbergast wrote: You can see the default layout in the sources.
EDIT: Note that the symbols like @ is really 'shift+2'. 'minus' and 'equal' are missing from the current layout.
I'm trying to flash the new keymap on win7, and I got winusb installed.flabbergast wrote: OK, so some instructions for flashing firmware on Windows.
When you enter the "bootloader" mode, a.k.a. "DFU mode", Windows should automatically install drivers (you can read about this on pages 7-8 of this pdf).
This may not exactly work for some reason (google "STM32 DFU bootloader windows driver" to see some reports).
However you should see something like "STM32 BOOTLOADER" or "STM32 device in DFU mode" in the 'device manager' under 'USB devices' or 'USB controllers'.
We'll need to replace this driver with a winusb one anyway. So, get zadig. Run it while the keyboard is plugged in *and* in DFU mode. Select the relevant "STM32 DFU" device from the drop down list (you may need to do "Options" -> "List all devices"). Select "winusb" driver in the list to the right of the green arrow. Punch "replace driver" or "install driver" button. This should install/replace the current driver for the DFU device with a winusb one - which is what's needed for dfu-util to work.
Second step: dfu-util. You can get a binary from here: dfu-util-static.exe. You can use this from the command line (get into one with <Win+R>cmd.exe<Enter>). Running 'dfu-util-static.exe -l' should list the STM32 DFU device (actually 2 of them).
I took this for a ride and can confirm that it is super easy to use rather than having to move and rename folders.flabbergast wrote: Hi folks, because the above instructions point to github and the sources there get updated quite often, it may happen that the three repos are out-of-sync. So I've created just one archive with all the sources (including TMK and ChibiOS), you can download here, link below. Just unpack, 'cd kb45p' and 'make'.
https://dl.dropboxusercontent.com/u/638 ... sources.7z
You'll still need to get an ARM toolchain up and running.
Code: Select all
dfu-util -a 0 -s 0x8000000 -D default-fw.bin
Code: Select all
dfu-util: Invalid DFU suffix signature
Code: Select all
Deducing device DFU version from functional descriptor length
Found Runtime: [0a5c:217f] ver=0360, devnum=4, cfg=1, intf=3, path="1-1.4", alt=0, name="UNKNOWN", serial="78DD08B552AC"
Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="2-1.2", alt=1, name="@Option Bytes /0x1FFFF800/01*016 e", serial="FFFFFFFEFFFF"
Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="2-1.2", alt=0, name="@Internal Flash /0x08000000/032*0001Kg", serial="FFFFFFFEFFFF"
Code: Select all
-s FFFFFFFEFFFF or 0x08000000/032*0001Kg
Code: Select all
-d 0483:df11