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

[Bug] i can't flash qmk firmware to stm32f103c6t6a #16908

Closed
izbj opened this issue Apr 21, 2022 · 5 comments
Closed

[Bug] i can't flash qmk firmware to stm32f103c6t6a #16908

izbj opened this issue Apr 21, 2022 · 5 comments

Comments

@izbj
Copy link

izbj commented Apr 21, 2022

Opening DFU capable USB device...
Device ID 1eaf:0003
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #2 ...
Determining device status...
DFU state(5) = dfuDNLOAD-IDLE, status(0) = No error condition is present
Aborting previous incomplete transfer
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 1024
Copying data from PC to DFU device
Download [=========================] 100% 21192 bytes
Download done.
DFU state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Resetting USB to switch back to runtime mode
error resetting after download (LIBUSB_ERROR_TIMEOUT)
Done!
gmake[1]: *** [platforms/chibios/flash.mk:98: flash] Error 74
gmake: *** [Makefile:413: stm32test:default:flash] Error 1
Make finished with errors

it always has a error when i flash qmk firmware to stm32f103c6t6a

the stm32duino bootloader was flashed in stm32f103c6t6a alread

@izbj
Copy link
Author

izbj commented Apr 21, 2022

i am M1 mac
i don't know if it about M1

@zvecr
Copy link
Member

zvecr commented Apr 21, 2022

Download [=========================] 100% 21192 bytes
Download done.
DFU state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present

Flash was successful, however its likely you have not applied the additional changes listed in #15297.

@izbj
Copy link
Author

izbj commented Apr 22, 2022

Download [=========================] 100% 21192 bytes
Download done.
DFU state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present

Flash was successful, however its likely you have not applied the additional changes listed in #15297.

Compiling: platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.c platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.c:34:3: error: extra brace group at end of initializer
{VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
^
platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.c:34:3: note: (near initialization for 'pal_default_config')
platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.c:34:3: error: excess elements in struct initializer [-Werror]
platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.c:34:3: note: (near initialization for 'pal_default_config')
cc1: all warnings being treated as errors
[ERRORS]
|
|
|
gmake[1]: *** [builddefs/common_rules.mk:456: .build/obj_stm32test/platforms/chibios/boards/STM32_F103_STM32DUINO/board/board.o] Error 1
gmake: *** [Makefile:413: stm32test:default] Error 1
Make finished with errors

Ⅰ update my keyboard file from #15297 ,but it has a new error

@sigprof
Copy link
Contributor

sigprof commented Jul 30, 2022

Can you test the STM32F103C6 support code from #17853?

Note that you need to use at least board.h and the bootloader-related section of rules.mk from the handwired/onekey/bluepill_f103c6 keyboard in your custom code, because the bootloader parameters also specify MCU_LDSCRIPT = STM32F103x6_stm32duino_bootloader. Also use EEPROM_DRIVER = transient for now, because the proper firmware size check which takes the EEPROM backing store into account is not implemented yet, and with only 24 KiB of flash available for QMK it would be easy to get the backing store overlapping the firmware code.

@zvecr
Copy link
Member

zvecr commented Nov 14, 2023

Closing as #17853 added tested examples.

@zvecr zvecr closed this as completed Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants