[Core] Add support for RISC-V builds and GD32VF103 MCU (#12508)
* Add support for RISC-V builds and GD32VF103 MCU * Add toolchain selection in chibios.mk based on the mcu selected in mcu_selection.mk * Reorder and added comments to chibios.mk to have a streamlined makefile * Add GD32VF103 mcu to possible targets for QMK. * Add STM32 compatibility for GD32VF103 MCU, this is hacky but more efficent then rewriting every driver. * Add GigaDevice DFU bootloader as flash target, please note that dfu-util of at least version 0.10 is needed. * Add analog driver compatibility * Add apa102 bitbang driver compatibility * Add ws2812 bitbang driver compatibility * Add eeprom in flash emulation compatibility * Allow faster re-builds with ccache * Add SiPeed Longan Nano to platform files * Add SiPeed Longan Nano Onekeys * Make quine compatible with other bootloaders * Support builds with picolibc * Add risc-v toolchain to arch and debian/ubuntu scripts
This commit is contained in:
		
							parent
							
								
									7e3ff206b8
								
							
						
					
					
						commit
						e50867d52d
					
				
					 31 changed files with 900 additions and 122 deletions
				
			
		| 
						 | 
				
			
			@ -48,3 +48,9 @@ You can also use any ARM chip with USB that [ChibiOS](https://www.chibios.org) s
 | 
			
		|||
## Atmel ATSAM
 | 
			
		||||
 | 
			
		||||
There is limited support for one of Atmel's ATSAM microcontrollers, that being the [ATSAMD51J18A](https://www.microchip.com/wwwproducts/en/ATSAMD51J18A) used by the [Massdrop keyboards](https://github.com/qmk/qmk_firmware/tree/master/keyboards/massdrop).
 | 
			
		||||
 | 
			
		||||
## RISC-V
 | 
			
		||||
 | 
			
		||||
### GigaDevice
 | 
			
		||||
 | 
			
		||||
[ChibiOS-Contrib](https://github.com/ChibiOS/ChibiOS-Contrib) has support for the GigaDevice [GD32VF103 series](https://www.gigadevice.com/products/microcontrollers/gd32/risc-v/mainstream-line/gd32vf103-series/) microcontrollers and provides configurations for the [SiPeed Longan Nano](https://longan.sipeed.com/en/) development board that uses this microcontroller. It is largely pin and feature compatible with STM32F103 and STM32F303 microcontrollers.
 | 
			
		||||
| 
						 | 
				
			
			@ -93,6 +93,7 @@ The device name here is the name that appears in Zadig, and may not be what the
 | 
			
		|||
|`usbasploader`|USBasp                        |`16C0:05DC`   |libusbK|
 | 
			
		||||
|`apm32-dfu`   |APM32 DFU ISP Mode            |`314B:0106`   |WinUSB |
 | 
			
		||||
|`stm32-dfu`   |STM32 BOOTLOADER              |`0483:DF11`   |WinUSB |
 | 
			
		||||
|`gd32v-dfu`   |GD32V BOOTLOADER              |`28E9:0189`   |WinUSB |
 | 
			
		||||
|`kiibohd`     |Kiibohd DFU Bootloader        |`1C11:B007`   |WinUSB |
 | 
			
		||||
|`stm32duino`  |Maple 003                     |`1EAF:0003`   |WinUSB |
 | 
			
		||||
|`qmk-hid`     |(keyboard name) Bootloader    |`03EB:2067`   |HidUsb |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue