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 - - - - - - - -