![](/img/trans.png)
[英]HAL_CAN_ERROR_PARAM with STM32f103c8t6 Bluepill and can bus
[英]How to setup STM32f103c8T Bluepill + Platformio + UART the right way?
我一直在試圖弄清楚如何將代碼上傳到 STM32103c8T bulepill 板。 我的設置是
1- MacOs Catalina 2- STM32103c8T bulepill 板 3- SLAB UART USB-TTL CP2012 V3.0 4- Platformio IDE 5- STM32 CUBE Programmer 軟件,通過 UART 檢測並連接到我的板。 表示連接沒有問題,但設置 Platformio 有問題
順便說一句,我是 ARM 世界的新手,我買了這個板來檢查它的速度、深度睡眠和中斷,我的意思是 Arduino Uno 做不到的所有事情。
問題是我不知道如何設置 platformio.ini 文件以使用 UART 方法與板通信,而不是請求 ST-link 加密狗!
我現在在Platformio.ini中擁有的是:
[環境:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
upload_protocol = stlink
upload_port = tty.slab_usbtoUART
當嘗試上傳程序時,我得到:
Uploading.pio/build/bluepill_f103c8/firmware.elf xPack OpenOCD, x86_64 Open On-Chip Debugger 0.10.0+dev-00378-ge5be992df (2020-06-26-12:31) 在 GNU GPL v2 下獲得許可有關錯誤報告,請閱讀http://openocd.org/doc/doxygen/bugs.html
調試級別:1
hla_swd
沒有分開的
錯誤:打開失敗
在程序“程序”中
OpenOCD 初始化失敗
調用的關機命令
[上傳] 錯誤 1
我只需要幫助讓系統互相交談並互相看到
PS我想go盡可能bareMetal而不是使用arduino固件HAL
您可以使用以下配置:
upload_protocol = serial
upload_port = COMX/ttyx //whichever applies
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.