mirror of
				https://github.com/Rockbox/rockbox.git
				synced 2025-10-26 23:36:37 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| ## Example GDB script for loading a bootloader binary using OpenOCD
 | |
| 
 | |
| # Set target binary and connect to OpenOCD
 | |
| file "./bootloader.elf"
 | |
| target extended-remote localhost:3333
 | |
| 
 | |
| # Reset target and flush register cache since GDB is apparently
 | |
| # not smart enough to do this itself.
 | |
| monitor reset halt
 | |
| maintenance flush register-cache
 | |
| 
 | |
| # Download binary to target
 | |
| load "./bootloader.elf"
 |