From 75c2f9b9540d0a544638cb9916acac8ddbd2f2bb Mon Sep 17 00:00:00 2001 From: ZYQ-FEIYUE <1404806582@qq.com> Date: Mon, 29 Aug 2022 22:45:20 +0800 Subject: [PATCH 1/2] fix upload program bug --- .../Generic_Examples/examples/01.Basics/Blink/Blink.ino | 6 +++--- platform.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/Generic_Examples/examples/01.Basics/Blink/Blink.ino b/libraries/Generic_Examples/examples/01.Basics/Blink/Blink.ino index 9abb8f5..32d7b88 100644 --- a/libraries/Generic_Examples/examples/01.Basics/Blink/Blink.ino +++ b/libraries/Generic_Examples/examples/01.Basics/Blink/Blink.ino @@ -25,13 +25,13 @@ // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. - pinMode(LED_BUILTIN, OUTPUT); + pinMode(PC13, OUTPUT); } // the loop function runs over and over again forever void loop() { - digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) + digitalWrite(PC13, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second - digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW + digitalWrite(PC13, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } diff --git a/platform.txt b/platform.txt index cb73c0b..f9fc48e 100644 --- a/platform.txt +++ b/platform.txt @@ -26,8 +26,8 @@ compiler.cpp.flags=-mthumb -Wall -MMD -std=gnu++11 -ffunction-sections -g -Os -f compiler.elf.flags=-mthumb -g -Wl,--gc-sections -Wall -lstdc++ -lm compiler.hex.flags=-Oihex compiler.bin.flags=-Obinary -compiler.combine.flags=-u _printf_float -u _sbrk -u link -u _close -u _fstat -u _isatty -u _lseek -u _read -u _write -u _exit -u kill -u _getpid -compiler.c.elf.extra_flags="-L{build.variant.path}/ld" -specs=nosys.specs -specs=nano.specs {compiler.combine.flags} +compiler.combine.flags=-u _sbrk -u link -u _close -u _fstat -u _isatty -u _lseek -u _read -u _write -u _exit -u kill -u _getpid +compiler.c.elf.extra_flags=-specs=nosys.specs -specs=nano.specs {compiler.combine.flags} build.common_flags=-mthumb ##===============================================## From 718ee377cff546100a883645f1448d4b723839dd Mon Sep 17 00:00:00 2001 From: ZYQ-FEIYUE <1404806582@qq.com> Date: Mon, 29 Aug 2022 22:47:04 +0800 Subject: [PATCH 2/2] fix upload program bug --- package_at32_index.json | 2 +- platform.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package_at32_index.json b/package_at32_index.json index 4bc0066..8899dcc 100644 --- a/package_at32_index.json +++ b/package_at32_index.json @@ -12,7 +12,7 @@ { "name": "AT32F403ACGU7 Core Board", "architecture": "at32f403a", - "version": "0.0.3", + "version": "0.0.4", "category": "Contributed", "url": "https://github.com/WeActStudio/ArduinoCore-AT32F4/archive/refs/heads/main.zip", "archiveFileName": "ArduinoCore-AT32F4-main.zip", diff --git a/platform.txt b/platform.txt index f9fc48e..d7db39f 100644 --- a/platform.txt +++ b/platform.txt @@ -1,6 +1,6 @@ ##==============================================## name=WeActStudio AT32F403A Boards -version=0.0.1 +version=0.0.4 ##==============================================## ####AT32 compile variables