Fixup bootloaders. (#16256)
This commit is contained in:
		
							parent
							
								
									53a7306682
								
							
						
					
					
						commit
						a86d6fffc9
					
				
					 17 changed files with 70 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -59,3 +59,8 @@ void shutdown_user(void)
 | 
			
		|||
    // set the magic number for resetting to the bootloader
 | 
			
		||||
    *(uint32_t *)(&(RTCD1.rtc->BKP0R)) = REBOOT_MAGIC;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void bootloader_jump(void) {
 | 
			
		||||
    shutdown_user();
 | 
			
		||||
    NVIC_SystemReset();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,6 +10,9 @@ MCU_LDSCRIPT = m20add_boot
 | 
			
		|||
#  or <this_dir>/boards
 | 
			
		||||
BOARD = ST_NUCLEO64_F411RE
 | 
			
		||||
 | 
			
		||||
# Bootloader selection
 | 
			
		||||
BOOTLOADER = custom
 | 
			
		||||
 | 
			
		||||
# Build Options
 | 
			
		||||
#   change yes to no to disable
 | 
			
		||||
#
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue