Add initial support for tinyuf2 bootloader (when hosted on F411 blackpill) (#12600)
* Add support for jumping to tinyuf2 bootloader. Adds blackpill UF2 example. * Update flashing.md * Update chconf.h * Update config.h * Update halconf.h * Update mcuconf.h
This commit is contained in:
		
							parent
							
								
									2a61a500de
								
							
						
					
					
						commit
						891d18d356
					
				
					 14 changed files with 349 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -13,7 +13,22 @@
 | 
			
		|||
#    define STM32_BOOTLOADER_DUAL_BANK FALSE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if STM32_BOOTLOADER_DUAL_BANK
 | 
			
		||||
#ifdef BOOTLOADER_TINYUF2
 | 
			
		||||
 | 
			
		||||
#    define DBL_TAP_MAGIC 0xf01669ef  // From tinyuf2's board_api.h
 | 
			
		||||
 | 
			
		||||
// defined by linker script
 | 
			
		||||
extern uint32_t _board_dfu_dbl_tap[];
 | 
			
		||||
#    define DBL_TAP_REG _board_dfu_dbl_tap[0]
 | 
			
		||||
 | 
			
		||||
void bootloader_jump(void) {
 | 
			
		||||
    DBL_TAP_REG = DBL_TAP_MAGIC;
 | 
			
		||||
    NVIC_SystemReset();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void enter_bootloader_mode_if_requested(void) { /* not needed, no two-stage reset */ }
 | 
			
		||||
 | 
			
		||||
#elif STM32_BOOTLOADER_DUAL_BANK
 | 
			
		||||
 | 
			
		||||
// Need pin definitions
 | 
			
		||||
#    include "config_common.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue