McHCK USB WORKS!!
- McHCK uses FLL instead of the PLL for USB (startup, not usb init) - Added optional debug for the pjrc USB module - Cleaned up compiler flags
This commit is contained in:
		
							parent
							
								
									f9e1600b28
								
							
						
					
					
						commit
						54c11ebd07
					
				
					 12 changed files with 128 additions and 58 deletions
				
			
		| 
						 | 
				
			
			@ -109,7 +109,7 @@ set( WARN "-Wall -g" )
 | 
			
		|||
#| Tuning Options
 | 
			
		||||
#|  -f...:        tuning, see GCC manual
 | 
			
		||||
#| NOTE: -fshort-wchar is specified to allow USB strings be passed conveniently
 | 
			
		||||
set( TUNING "-mthumb -nostdlib -fdata-sections -ffunction-sections -fshort-wchar -fno-builtin -flto -fno-use-linker-plugin" )
 | 
			
		||||
set( TUNING "-mthumb -nostdlib -fdata-sections -ffunction-sections -fshort-wchar -fno-builtin" )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#| Optimization level, can be [0, 1, 2, 3, s].
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -287,7 +287,7 @@ set_target_properties( ${TARGET_ELF} PROPERTIES
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
#| Convert the .ELF into a .bin to load onto the McHCK
 | 
			
		||||
set( TARGET_BIN ${TARGET}.dfu.bin )
 | 
			
		||||
set( TARGET_BIN ${TARGET}.bin.dfu )
 | 
			
		||||
add_custom_command( TARGET ${TARGET_ELF} POST_BUILD
 | 
			
		||||
	COMMAND ${CMAKE_OBJCOPY} ${BIN_FLAGS} ${TARGET_ELF} ${TARGET_BIN}
 | 
			
		||||
	COMMENT "Creating binary file to load:  ${TARGET_BIN}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue