From: AceVest Date: Wed, 5 Jun 2019 02:29:04 +0000 (+0800) Subject: F103RE GPIO X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/mdoc.7.txt?a=commitdiff_plain;h=93d23558a9ea11f8265fbb960b5876130383f529;p=acecode.git F103RE GPIO --- diff --git a/learn/stm32/F103RE/F103RE.elf.cfg b/learn/stm32/F103RE/F103RE.elf.cfg new file mode 100644 index 0000000..a8296a7 --- /dev/null +++ b/learn/stm32/F103RE/F103RE.elf.cfg @@ -0,0 +1,30 @@ +# This is an genericBoard board with a single STM32F103RETx chip +# +# Generated by STM32CubeIDE +# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s) + +source [find interface/stlink-tcp.cfg] + +set WORKAREASIZE 0x8000 + +transport select "hla_swd" + +set CHIPNAME STM32F103RETx +set BOARDNAME genericBoard + +# Enable debug when in low power modes +set ENABLE_LOW_POWER 1 + +# Stop Watchdog counters when halt +set STOP_WATCHDOG 1 + +# STlink Debug clock frequency +set CLOCK_FREQ 4000 + +# use software system reset +reset_config none +set CONNECT_UNDER_RESET 0 + +# BCTM CPU variables + +source [find target/stm32f1x.cfg] diff --git a/learn/stm32/F103RE/F103RE.elf.launch b/learn/stm32/F103RE/F103RE.elf.launch new file mode 100644 index 0000000..4e9145b --- /dev/null +++ b/learn/stm32/F103RE/F103RE.elf.launch @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/learn/stm32/F103RE/Src/main.c b/learn/stm32/F103RE/Src/main.c index 8458d3e..4555c88 100644 --- a/learn/stm32/F103RE/Src/main.c +++ b/learn/stm32/F103RE/Src/main.c @@ -96,6 +96,8 @@ int main(void) /* USER CODE BEGIN WHILE */ while (1) { + HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); + HAL_Delay(100); /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */