During the unzip, I got a nasty warning from the AV:
Seems that Windows AV decided there was a threat: *graphic attached at end.
Anyway, that was instantly quarantined.
I suspect Arduino will look into this but I'm not overly concerned. My dev box is backed up and there is nothing on this PC that cannot be remastered easily.
The next issue came from the firewall complaining that Arduino-cli.exe was attempting to open a port for communication. I allowed this to proceed.
So, time to test some STM32duino code from stuff I wrote years ago for Roger's core as sample programs.
Example, loop through all analog values the Arduino way...
Code: Select all
// MapleMini analog test by Ray Burnette
// Arduino 1.7.8 on Linux Mint 17.3 tested on 20160215
int aValue ;
int settlingmS = 5000;
void setup() {
// Configure the ADC pins
for (int x =3; x < 12; x++) {
pinMode(x, INPUT_ANALOG);
}
delay(settlingmS);
}
void loop() {
for ( int analogInPin = 3; analogInPin < 12; analogInPin++)
{
// read the analog in value:
aValue = analogRead(analogInPin);
// print the results to the serial monitor:
Serial.print("Analog pin#");
Serial.print(analogInPin);
Serial.print("\t = ");
Serial.println(aValue);
}
delay(settlingmS);
}
Code: Select all
Using board 'mapleMini' from platform in folder: C:\Users\Ray\Documents\Arduino\hardware\STM32\STM32F1
Using core 'maple' from platform in folder: C:\Users\Ray\Documents\Arduino\hardware\STM32\STM32F1
Detecting libraries used...
"C:\\Users\\Ray\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -DBOARD_maple_mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10607 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32F1 -DMCU_STM32F103CB -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1__ -DMCU_STM32F103CB -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1__ "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\variants\\maple_mini" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\sketch\\AnalogTest.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Ray\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -DBOARD_maple_mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10607 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32F1 -DMCU_STM32F103CB -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1__ -DMCU_STM32F103CB -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1__ "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\variants\\maple_mini" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\sketch\\AnalogTest.ino.cpp" -o "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\Ray\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Ray\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall -Wextra -DDEBUG_LEVEL=DEBUG_ALL -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -DBOARD_maple_mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10607 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32F1 -DMCU_STM32F103CB -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1__ -DMCU_STM32F103CB -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1__ "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\variants\\maple_mini" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\sketch\\AnalogTest.ino.cpp" -o "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\sketch\\AnalogTest.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\Ray\AppData\Local\Temp\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\core\wirish\start.S.o
Using previously compiled file: C:\Users\Ray\AppData\Local\Temp\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\core\wirish\start_c.c.o
Using previously compiled file: C:\Users\Ray\AppData\Local\Temp\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\core\wirish\syscalls.c.o
Using previously compiled file: C:\Users\Ray\AppData\Local\Temp\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\core\wirish\boards.cpp.o
Using previously compiled file: C:\Users\Ray\AppData\Local\Temp\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\core\board.cpp.o
Using previously compiled file: C:\Users\Ray\AppData\Local\Temp\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\core\wirish\boards_setup.cpp.o
Using precompiled core: C:\Users\Ray\AppData\Local\Temp\arduino-core-cache\core_STM32_STM32F1_mapleMini_2d4a391f166aa6403f9ab47e6d350f31.a
Linking everything together...
"C:\\Users\\Ray\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 "-TC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\variants\\maple_mini/ld/flash.ld" "-Wl,-Map,C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0/AnalogTest.ino.map" "-LC:\\Users\\Ray\\Documents\\Arduino\\hardware\\STM32\\STM32F1\\variants\\maple_mini/ld" -o "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0/AnalogTest.ino.elf" "-LC:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\sketch\\AnalogTest.ino.cpp.o" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\core\\wirish\\start.S.o" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\core\\wirish\\start_c.c.o" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\core\\wirish\\syscalls.c.o" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\core\\board.cpp.o" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\core\\wirish\\boards.cpp.o" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0\\core\\wirish\\boards_setup.cpp.o" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-core-cache\\core_STM32_STM32F1_mapleMini_2d4a391f166aa6403f9ab47e6d350f31.a" -Wl,--end-group
"C:\\Users\\Ray\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0/AnalogTest.ino.elf" "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0/AnalogTest.ino.bin"
"C:\\Users\\Ray\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-size" -A "C:\\Users\\Ray\\AppData\\Local\\Temp\\arduino-sketch-7C9F19D26B063DA5C2264F74A92FEDD0/AnalogTest.ino.elf"
Sketch uses 16276 bytes (14%) of program storage space. Maximum is 110592 bytes.
Global variables use 3136 bytes (18%) of dynamic memory, leaving 14272 bytes for local variables. Maximum is 17408 bytes.
--------------------------
Compilation complete.
I made absolutely no changes to the Arduino file structure or core installation made by the standard IDE .13 Things just seem to work for the Beta. No, I did not run down to the lab and grab a MapleMini to upload the code, I'll try that later on. But I was just curious about Roger's Core being off in the <home>/Arduino/hardware folder and how IDE 2.0 Beta would react. So far, so good.
Ray