From fb9bb7ca2236330e5192d4d87c9c1edf9c01bfbe Mon Sep 17 00:00:00 2001 From: sunlichao Date: Wed, 20 Mar 2019 12:14:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[bsp][stm32]=E6=94=AF=E6=8C=81=E6=9D=BF?= =?UTF-8?q?=E8=BD=BDLED=E7=81=AF=E5=92=8C=E8=87=AA=E5=8A=A8=E7=94=9F?= =?UTF-8?q?=E6=88=90mdk=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applications/main.c | 7 +- .../stm32f405-smdz-breadfruit/rtconfig.h | 1 - .../template.uvprojx | 111 ++++++++++-------- 3 files changed, 67 insertions(+), 52 deletions(-) diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c b/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c index 487ddf44f6..8808256690 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c +++ b/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c @@ -12,9 +12,10 @@ #include #include -/* defined the LED0 pin: PB1 */ -#define LED0_PIN GET_PIN(B, 1) - +/* defined the LED0 pin: PC4-36 PA8-8,PC5-37,PA10-10*/ +//#define LED0_PIN GET_PIN(C, 4) +//#define LED0_PIN 36 +#define LED0_PIN 10 int main(void) { int count = 1; diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.h b/bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.h index 0e41735873..1129acefb6 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.h +++ b/bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.h @@ -21,7 +21,6 @@ #define IDLE_THREAD_STACK_SIZE 256 /* RT_USING_TIMER_SOFT is not set */ #define RT_DEBUG -#define RT_DEBUG_COLOR /* RT_DEBUG_INIT_CONFIG is not set */ /* RT_DEBUG_THREAD_CONFIG is not set */ /* RT_DEBUG_SCHEDULER_CONFIG is not set */ diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/template.uvprojx b/bsp/stm32/stm32f405-smdz-breadfruit/template.uvprojx index 66fe3140e7..763618143d 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/template.uvprojx +++ b/bsp/stm32/stm32f405-smdz-breadfruit/template.uvprojx @@ -10,37 +10,33 @@ rt-thread 0x4 ARM-ADS - 5060750::V5.06 update 6 (build 750)::ARMCC - 0 - STM32F407ZGTx + STM32F405RG STMicroelectronics - Keil.STM32F4xx_DFP.2.13.0 - http://www.keil.com/pack - IRAM(0x20000000,0x20000) IRAM2(0x10000000,0x10000) IROM(0x08000000,0x100000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE + IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) CPUTYPE("Cortex-M4") FPU2 - - UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000 -FP0($$Device:STM32F407ZGTx$CMSIS\Flash\STM32F4xx_1024.FLM)) - 0 - $$Device:STM32F407ZGTx$Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h + "Startup\ST\STM32F4xx\startup_stm32f40_41xxx.s" ("STM32F40/41xxx Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000) + 6100 + stm32f4xx.h - + -DSTM32F40_41xxx - $$Device:STM32F407ZGTx$CMSIS\SVD\STM32F40x.svd + SFD\ST\STM32F4xx\STM32F40x.sfr 0 0 - - + ST\STM32F4xx\ + ST\STM32F4xx\ 0 0 @@ -52,7 +48,7 @@ rt-thread 1 0 - 0 + 1 1 0 .\build\keil\List\ @@ -86,8 +82,6 @@ 0 0 - 0 - 0 0 @@ -110,11 +104,11 @@ SARMCM3.DLL - -REMAP -MPU + -MPU -REMAP DCM.DLL -pCM4 SARMCM3.DLL - -MPU + -MPU TCM.DLL -pCM4 @@ -126,6 +120,48 @@ 0 16 + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 1 + + 0 + 6 + + + + + + + + + + + + + + Segger\JL2CM3.dll + @@ -138,7 +174,7 @@ 1 BIN\UL2CM3.DLL - "" () + @@ -183,16 +219,15 @@ 1 0 0 - 2 + 1 1 0 8 0 0 0 - 0 3 - 4 + 3 0 0 0 @@ -208,8 +243,8 @@ 0 0 0 - 0 - 1 + 1 + 0 0 @@ -324,20 +359,12 @@ 0 0 1 - 0 0 - 1 - 1 - 1 - 1 - 0 - 0 - 0 - + STM32F405xx, USE_HAL_DRIVER - + .;..\..\..\include;applications;.;board;board\CubeMX_Config\Inc;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;packages\led;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\finsh;..\libraries\STM32F4xx_HAL\STM32F4xx_HAL_Driver\Inc;..\libraries\STM32F4xx_HAL\CMSIS\Device\ST\STM32F4xx\Include;..\libraries\STM32F4xx_HAL\CMSIS\Include @@ -350,7 +377,6 @@ 0 0 0 - 0 @@ -371,24 +397,13 @@ .\board\linker_scripts\link.sct - + --keep *.o(.rti_fn.*) --keep *.o(FSymTab) - - - Source Group 1 - - - - - - - - From 4e5c28a2793a29952048dcb42d014262484692c2 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 20 Mar 2019 21:35:58 +0800 Subject: [PATCH 2/2] Update main.c --- bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c b/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c index 8808256690..453681a90a 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c +++ b/bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c @@ -13,9 +13,8 @@ #include /* defined the LED0 pin: PC4-36 PA8-8,PC5-37,PA10-10*/ -//#define LED0_PIN GET_PIN(C, 4) -//#define LED0_PIN 36 #define LED0_PIN 10 + int main(void) { int count = 1;