# Stm32F4 ###### tags: `stm32` 重辦了stm的帳號...信箱密碼不讓我重設 email: jerry9701611@yahoo.com.tw 密碼: ghyi@jklm7 1. keil的下載區:https://www.keil.com/demo/eval/arm.htm#/DOWNLOAD 2. cubeMX的下載區: https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html 3. 下載對應的板子要用的硬件庫:http://www.keil.com/dd2/pack/#/eula-container  4. 監看資料的時候官方推薦stm studio(stlink會在這個時候問你是否安裝) 使用方式如下: [Tutorial 13 Debug + STM Studio](https://www.youtube.com/watch?v=DOxks_34RVk)  5. StLink的設定: 如果是直接用keil編寫,則需要照著下方做,用cubeMX的話,stlink所需要的軟體會自動的載好 [STM32 tutorial part.1 - Set up a project in KEIL μVision] (https://www.youtube.com/watch?v=_QXoTNP9GIw)  [运行keil uvision4的时候总是提示error 56,can't open file](https://zhidao.baidu.com/question/235030758.html) 不要忘記load前要先按translate,build 亮個led來看看: [Tutorial 1 Blinking LED ](https://www.youtube.com/watch?v=uJvPwxa5n00&list=PLfExI9i0v1sn_lQjCFJHrDSpvZ8F2CpkA) ```c++=1 while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_12|GPIO_PIN_13); HAL_Delay(1000); } /* USER CODE END 3 */ ``` 成功:D
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up