Updated STM F1 core to support BluePill including USB Serial

Information on the latest releases
User avatar
RogerClark
Posts: 7136
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Updated STM F1 core to support BluePill including USB Serial

Post by RogerClark » Sun Nov 13, 2016 10:34 pm

Guys

Thanks to @danieleff and @vassilis (and others), we now have a version of the official STM F1 core that works in the Blue Pill and has Serial USB (using STM's own code and VID/PID etc)

I've merged @danieleff's (and @Vassilis's) code into the official STM F1 repo

If you want to try it, you'll need to do a few things by hand as the Boards Manager package has not been updated yet

1. Create a new folder in your Arduino documents hardware folder e.g. STM32_official
2. In that folder download or clone
https://github.com/stm32duino/Arduino_Core_STM32F1
and
https://github.com/stm32duino/Arduino_Tools

3. Rename Arduino_Core_STM32F1 to STM32F1
4. Rename Arduino_Tools to Tools

5. Restart the Arduino IDE
6. Select the Blue Pill from the menu under the "STM32F1xx boards" section

7. You may also need to install STM's USB Serial driver, but it seemed to work on my machine without needing to do this (or possibly I already had it installed as part of the STM32CubeMX or other STM software I have installed)

weiming
Posts: 12
Joined: Mon Jan 04, 2016 11:45 am

Re: Updated STM F1 core to support BluePill including USB Serial

Post by weiming » Mon Nov 14, 2016 12:54 am

great job

User avatar
RogerClark
Posts: 7136
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by RogerClark » Mon Nov 14, 2016 2:08 am

Thanks mostly go to @danieleff and @vassilis

I'm just pulling it all together and doing some bug fixes.

BTW.
There seems to be a problem with the Value Line Discovery F100

Code: Select all

analog.c:491: undefined reference to `__HAL_RCC_DAC1_CLK_DISABLE'
But at the moment I'm not sure whats causing this

User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by Rick Kimball » Mon Nov 14, 2016 4:50 am

Thanks guys for the effort!
RogerClark wrote: There seems to be a problem with the Value Line Discovery F100

Code: Select all

analog.c:491: undefined reference to `__HAL_RCC_DAC1_CLK_DISABLE'
I changed the line to this: __HAL_RCC_DAC_CLK_DISABLE and it compiled.

However, it is trying to use the nucleoFlasher to upload.

I must have a very old stm32 value line discovery board. It is marked MB913C. It still has an stlink v1 programmer. Is that supposed to work with this nucleo loader? I have the mass storage part of the stlink v1 disabled as it only caused me problem on linux.

-rick
-rick

User avatar
RogerClark
Posts: 7136
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by RogerClark » Mon Nov 14, 2016 4:59 am

Thanks Rick

Any ideas why this compiles on the F103 and not F100?

Possibly an anomaly in the STM32Cube ?

Re:Uploader

I'm just using the code @danieleff did for that board. I don't have one myself

We can easily change it to use STLInk instead of Mass storage. as you know ;-)

User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by Rick Kimball » Mon Nov 14, 2016 5:02 am

The header file doesn't have that define maybe?
$ pwd
/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc
$ grep HAL_RCC_DAC *
grep: Legacy: Is a directory
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_CLK_ENABLE() do { \
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN))
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_CLK_ENABLE() do { \
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN))
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) != RESET)
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) == RESET)
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) != RESET)
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_DACEN)) == RESET)
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_DACRST))
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_DACRST))
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_DACRST))
stm32f1xx_hal_rcc_ex.h:#define __HAL_RCC_DAC_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_DACRST))
Last edited by Rick Kimball on Mon Nov 14, 2016 5:06 am, edited 1 time in total.
-rick

User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by Rick Kimball » Mon Nov 14, 2016 5:04 am

Everyone seems to love the '-' character in defines ... and it just causes errors. Do any of you have your warning level turned up to the max?

"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/UARTClass.cpp" -o "/tmp/arduino_build_594941/core/UARTClass.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/USARTClass.cpp" -o "/tmp/arduino_build_594941/core/USARTClass.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/USBSerial.cpp" -o "/tmp/arduino_build_594941/core/USBSerial.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/WMath.cpp" -o "/tmp/arduino_build_594941/core/WMath.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/WString.cpp" -o "/tmp/arduino_build_594941/core/WString.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/abi.cpp" -o "/tmp/arduino_build_594941/core/abi.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/main.cpp" -o "/tmp/arduino_build_594941/core/main.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/new.cpp" -o "/tmp/arduino_build_594941/core/new.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -Os -g -Wall -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/staticlibstm32f1/include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/STM32F1xx_HAL_Driver/Inc/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Include/" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/system/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -mcpu=cortex-m3 -DARDUINO=10613 -DARDUINO_NUCLEO-F103RB -DARDUINO_ARCH_STM32F1 -mthumb -DSTM32F100xB "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino" "-I/home/kimballr/Arduino/hardware/stm32duino/stm32f1/variants/STM32F100RB-STM32VLDISCOVERY" "/home/kimballr/Arduino/hardware/stm32duino/stm32f1/cores/arduino/wiring_pulse.cpp" -o "/tmp/arduino_build_594941/core/wiring_pulse.cpp.o"
<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_594941/core/core.a" "/tmp/arduino_build_594941/core/WInterrupts.c.o"
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_594941/core/core.a" "/tmp/arduino_build_594941/core/hooks.c.o"
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_594941/core/core.a" "/tmp/arduino_build_594941/core/itoa.c.o"
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_594941/core/core.a" "/tmp/arduino_build_594941/core/syscalls_stm32.c.o"
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_594941/core/core.a" "/tmp/arduino_build_594941/core/wiring.c.o"
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_594941/core/core.a" "/tmp/arduino_build_594941/core/wiring_analog.c.o"
"/home/kimballr/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_594941/core/core.a" "/tmp/arduino_build_594941/core/wiring_digital.c.o"
[/code]
-rick

User avatar
RogerClark
Posts: 7136
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by RogerClark » Mon Nov 14, 2016 5:16 am

Rick

STM's code from the Cube already generates a load of warnings :-(

Anyway, I presume you mean the - (dash) in the name of that variant being an issue?

BTW. I did look to see where __HAL_RCC_DAC1_CLK_DISABLE was defined

But the only reference was

Code: Select all

system\Drivers\STM32F1xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h
Line 1859: #define __DAC1_CLK_DISABLE __HAL_RCC_DAC1_CLK_DISABLE
So I couldnt understand how this was actually compiling for the F103 (BluePill) either

User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by Rick Kimball » Mon Nov 14, 2016 5:18 am

something must be including the legacy header.

So how is support for pins going to work. The stm32 value line has leds on PC8 and PC9. What pin number do I use for those?
-rick

User avatar
RogerClark
Posts: 7136
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Updated STM F1 core to support BluePill including USB Serial

Post by RogerClark » Mon Nov 14, 2016 5:19 am

Update

I see the whole function is not compiled in for the other processor variants

Post Reply