For Arduino IDE
Was there a change to the STM32 boards core link vs the link 'here' in Adafruit infopage?:
https://learn.adafruit.com/adafruit-stm ... -ide-setup
this appears to be the current github version:
https://github.com/stm32duino/Arduino_Core_STM32
using this in preferences/additional boards manager:
https://raw.githubusercontent.com/stm32 ... index.json
thx!
XRAD'S STM32 core update?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- XRAD
- Posts: 754
- Joined: Sat Nov 19, 2016 3:28 pm
Re: XRAD'S STM32 core update?
OK...so I got the feather STM32F405 working just fine with another tft touch feather project. I am using Arduino 1.8.19 IDE. There was a core board update as well.
For those of you using the Arduino IDE, follow these steps:
1) download the new STM32 board core using the preferences/additional boards manager shown above (Note: this is not a library..it is a core)
2) download the newest version of https://www.st.com/en/development-tools ... t-software (this will require an email and user name)
Unpack and run the cube programmer. The Arduino IDE will look for it automatically when compiling so it has to be installed. Follow all the adafruit directions 'after' the preferences/board manager is updated to the new version. IDE will have the correct drop down menus now. Then select your new STM32 board from the drop down menus and find the only correct adafruit STM32 feather selection. Make sure to use all the suggested selections as well...so 'tools' dropdown should look like this:
AFTER COMPILING SKETCH, AND BEFORE UPLOADING, you must:
1) Connect the USB C cord (if not already connected)
2) Select the correct COM PORT (if not automatic)
2) Put the STM32 into boot mode by jumping 3.3v to B0 and pressing the reset button once (Arduino will let you know by two tones)
5) Then upload your sketch
6) Then disconnect the jumper....
and your IDE should display these comments:
For those of you using the Arduino IDE, follow these steps:
1) download the new STM32 board core using the preferences/additional boards manager shown above (Note: this is not a library..it is a core)
2) download the newest version of https://www.st.com/en/development-tools ... t-software (this will require an email and user name)
Unpack and run the cube programmer. The Arduino IDE will look for it automatically when compiling so it has to be installed. Follow all the adafruit directions 'after' the preferences/board manager is updated to the new version. IDE will have the correct drop down menus now. Then select your new STM32 board from the drop down menus and find the only correct adafruit STM32 feather selection. Make sure to use all the suggested selections as well...so 'tools' dropdown should look like this:
AFTER COMPILING SKETCH, AND BEFORE UPLOADING, you must:
1) Connect the USB C cord (if not already connected)
2) Select the correct COM PORT (if not automatic)
2) Put the STM32 into boot mode by jumping 3.3v to B0 and pressing the reset button once (Arduino will let you know by two tones)
5) Then upload your sketch
6) Then disconnect the jumper....
and your IDE should display these comments:
Code: Select all
Sketch uses 55300 bytes (5%) of program storage space. Maximum is 1048576 bytes.
Global variables use 6044 bytes (4%) of dynamic memory, leaving 125028 bytes for local variables. Maximum is 131072 bytes.
-------------------------------------------------------------------
STM32CubeProgrammer v2.11.0
-------------------------------------------------------------------
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : 205A3070594D
DFU protocol: 1.1
Board : --
Device ID : 0x0413
Device name : STM32F405xx/F407xx/F415xx/F417xx
Flash size : 1 MBytes (default)
Device type : MCU
Revision ID : --
Device CPU : Cortex-M4
Memory Programming ...
Opening and parsing file: YOUR PROGRAM HERE.ino.bin
File : YOUR PROGRAM HERE.ino.bin
Size : 54.45 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 3]
erasing sector 0000 @: 0x08000000 done
erasing sector 0001 @: 0x08004000 done
erasing sector 0002 @: 0x08008000 done
erasing sector 0003 @: 0x0800c000 done
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:02.940
RUNNING Program ...
Address: : 0x8000000
Start operation achieved successfully
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: XRAD'S STM32 core update?
Good info.. thanks for posting it!
Please be positive and constructive with your questions and comments.