# This is a FK750M5-XBH6-SDRAM with a single STM32H750XBH6 chip. # https://item.taobao.com/item.htm?id=682521953131 # QQ交流群:536665479 # Made by Peakors
# This is for using the STLINK source [find interface/stlink.cfg]
transport select hla_swd
set CHIPNAME STM32H750XBH6
set QUADSPI 1
# enable stmqspi if {![info exists QUADSPI]} { set QUADSPI 1 }
#if defined(DUAL_CORE) && defined(CORE_CM4) /* Configure the Vector Table location add offset address for cortex-M4 ------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D2 AXI-RAM or in Internal FLASH */ #endif/* USER_VECT_TAB_ADDRESS */
#else /* * Disable the FMC bank1 (enabled after reset). * This, prevents CPU speculation access on this bank which blocks the use of FMC during * 24us. During this time the others FMC master (such as LTDC) cannot use it! */ FMC_Bank1_R->BTCR[0] = 0x000030D2;
/* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */ #endif/* USER_VECT_TAB_ADDRESS */ // 这下面这句话是添加的,意思是从0x90000000处启动 SCB->VTOR = 0x90000000; #endif/*DUAL_CORE && CORE_CM4*/ }