Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add instructions on how to compile the keyboard firmware #9

Open
SamusAranX opened this issue Oct 2, 2023 · 1 comment
Open

Comments

@SamusAranX
Copy link

See title.

@cuu
Copy link
Contributor

cuu commented Oct 3, 2023

The development process is as same as devterm

https://github.com/clockworkpi/DevTerm/wiki/Compile-keyboard-bootloader-and-firmware

Difference

in later uconsole keyboard , I've edited bootloader with following code

diff --git a/config.h b/config.h
index b377f98..f8ce81a 100644
--- a/config.h
+++ b/config.h
@@ -156,7 +156,7 @@
 // Use Boot1 PB2 as the button, as hardly anyone uses this pin as GPIO
 // Need to set the button input mode to just CR_INPUT and not CR_INPUT_PU_PD because the external pullup on the jumplink is very weak
        #define BUTTON_INPUT_MODE       CR_INPUT
-    #define BUTTON_BANK GPIOB
+    #define BUTTON_BANK GPIOD
     #define BUTTON_PIN 2
     #define BUTTON_PRESSED_STATE 1

this modification can make cli flashing more stable, but cause one issue is I can not use Arduino IDE to flash the code

I need to run this command in a right timing manually

for example if you compiled the code in IDE ,try uploading once
upload will fail and
you will get a console command output from Arduino IDE like (verbose output in Arduino IDE) in bottom:

/root/.arduino15/packages/stm32duino/tools/stm32tools/2021.5.31/linux/maple_upload ttyACM0 2 1EAF:0003 /tmp/arduino_build_303517/devterm_keyboard_mini.ino.bin /home/cuu/data/Downloads/arduino-1.8.13

I use root to run arduino ide btw

so copy this command in terminal (dont close arduino IDE)

and plug the keyboard ,right after the LED on the keyboard started to flash

press Enter in terminal to run above cli command, then the flashing will success

tricky way but it works

uconsole_keyboard_flash.tar.gz works by this mod bootloader

so try not to flash the bootloader unless you know what is going on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants