2019年12月31日 星期二

STM32 on Arduino IDE



Arduino 1.8.13 
//-------------------------------------------------------------------------------------------------------------------

Arduino STM32 Nucleo-64 開發環境設定 

https://moon-half.info/p/2373

https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.json


https://dl.espressif.com/dl/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.json



Tools -->  Board:   --->  Boards Manager  

search :  stm32f1  

Install  STM32F1xx/ .. ... ..



ST Link SWD Upload ..........

https://www.st.com/en/development-tools/stm32cubeprog.html

install   STM32CubeProgrammer



Serial Com Port upload ......
FTDI  Pin to STM32 Board pin

5V     ----------   5V
Gnd  ----------   Gnd
Rx    ----------   A9
Tx    ----------   A10   

Tools --> Upload method:  Serial

Tools -->  select Port : 


Pin  Boot0  --> 1  

RESET Board 
Sketch Upload  .....

電源不穩可能會上傳失敗


https://www.st.com/en/microcontrollers/stm32f103.html?querycriteria=productId=LN1565


https://www.st.com/resource/en/datasheet/stm32f103rc.pdf


https://translate.google.com/translate?hl=zh-TW&sl=zh-CN&u=http://www.makerlab.me/guides/2/articles/8&prev=search






//============================================================
Arduino IDE 1.8.4   or  other

//------- only STM32F1  --------------------------------------------------------------------------
File  ->  Preferences--> Additional Board Manager URLs:

http://dan.drown.org/stm32duino/package_STM32duino_index.json     --> OK


//--------keep ESP32 & ESP8266 ----------------------------------------------------------------------------------
ESP8266
ESP32
STM32

https://dl.espressif.com/dl/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json,http://dan.drown.org/stm32duino/package_STM32duino_index.json



選擇不同板子在編譯時所佔記憶體容量的差異性