This adds bsp for ST nucleo-g491re board. This is mostly copy of nucleo-f474 only differences being: - PLL configured to 170MHz (not affecting USB which runs on HSI48) - Linker script freshly generated from STM32CubeIDE (smaller RAM) Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
		
			
				
	
	
		
			12 lines
		
	
	
		
			262 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			262 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
set(MCU_VARIANT stm32g491xx)
 | 
						|
set(JLINK_DEVICE stm32g491re)
 | 
						|
 | 
						|
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32G491RETX_FLASH.ld)
 | 
						|
 | 
						|
function(update_board TARGET)
 | 
						|
  target_compile_definitions(${TARGET} PUBLIC
 | 
						|
    STM32G491xx
 | 
						|
    HSE_VALUE=24000000
 | 
						|
    )
 | 
						|
endfunction()
 |