This commit is contained in:
2026-09-01 14:09:31 +08:00
parent 653c7ec412
commit dac0e92ac9
11 changed files with 127 additions and 62 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ extern "C" {
/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
#define VERSION_STR "V1.0.0"
#define VERSION_STR "V1.1.0"
#ifdef BOOTLOADER
#define SW_VER "BL for " VERSION_STR
#else
+4 -4
View File
@@ -151,9 +151,9 @@ int main(void)
{
/* USER CODE BEGIN 1 */
// #ifndef BOOTLOADER
// SCB->VTOR = 0x30000000;
// #endif
#ifndef BOOTLOADER
SCB->VTOR = 0x30000000;
#endif
/* USER CODE END 1 */
/* MPU Configuration--------------------------------------------------------*/
@@ -542,7 +542,7 @@ static void MX_SPI1_Init(void)
hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
hspi1.Init.CRCPolynomial = 0x0;
hspi1.Init.NSSPMode = SPI_NSS_PULSE_ENABLE;
hspi1.Init.NSSPMode = SPI_NSS_PULSE_DISABLE;
hspi1.Init.NSSPolarity = SPI_NSS_POLARITY_LOW;
hspi1.Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA;
hspi1.Init.TxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN;