發(fā)現(xiàn)有很多朋友居然不知道STM32CubeProgrammer這個工具,今天暫且簡單講述一下吧。
1STM32CubeProgrammer介紹
STM32CubeProgrammer這個工具大概也是在去年這個時候推出來的,差不多有一年了。
它的主要功能就是Programmer編程,功能和STM32 ST-LINK Utility有很多相似之處,但引入了一些新的功能。比如UART and USB DFU bootloader。
主要特點
擦除,編程,查看和驗證設(shè)備閃存的內(nèi)容
支持Motorola S19,Intel HEX,ELF和二進制格式
支持調(diào)試和引導加載程序接口:
ST-LINK調(diào)試探針(JTAG / SWD)
UART和USB DFU引導加載程序接口
通過外部Flash加載器的示例來編程,擦除和驗證外部存儲器,以幫助用戶開發(fā)用于特定外部存儲器的加載器
自動執(zhí)行STM32編程(擦除,驗證,編程,配置選項字節(jié))
允許OTP內(nèi)存編程
支持選項字節(jié)的編程和配置
通過腳本提供自動化的命令行界面
ST-LINK固件更新
使用STM32 Trusted Package Creator工具實現(xiàn)安全的固件創(chuàng)建
多支持操作系統(tǒng):Windows、 Linux、 macOS
地址:
https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stm32cubeprog.html?icmp=tt6238_gl_bn_dec2017.html
2
STM32CubeProgrammer安裝問題
安裝的時候出現(xiàn)的問題基本上都是沒有安裝,或錯誤安裝JRE導致,比如出現(xiàn)如下提示:
還有,在windows上可能因為權(quán)限問題,以管理員身份方式運行有可能會得到解決。
同時,STM32CubeMX這個工具也存在同樣問題,所以需要安裝JRE才行。可以在線安裝,也可以離線安裝。
JRE地址:
https://www.java.com/en/download/manual.jsp
3
STM32CubeProgrammer升級
就在這前不久STM32CubeProgrammer升級到V1.4.0版本了。主要更新內(nèi)容:
這里新增兩條內(nèi)容:
Added STM32CubeProgrammer C++ API
Added support of secure firmware install on STM32L462CEU6F
第2條估計都還好理解,第1條是什么意思呢?
安裝好STM32CubeProgrammer-1.4.0之后,在安裝目錄下有關(guān)于api相關(guān)的說明文檔STM32CubeProgrammer_API.chm:
In addition to the graphical user interface and the commandline interface, STM32CubeProgrammer offers a C++ API that you could use to develop your own application and benefit of wide range of features to program STM32 microcontrollers memories (such as Flash, RAM, and OTP) either over debug interface or bootloder interface (USB DFU, UART, I2C, SPI and CAN).
大概意思就是:除了使用STM32CubeProgrammer這套界面和命令行工具編程之外,還提供這套API接口對STM32的FLASH、RAM和OTP編程,基于USB DFU, UART, I2C, SPI and CAN的bootloder。(主要作用還是Progrom)
API包例子
兼容Visual Studio和Qt工具的8個例子:
3 examples with ST-LINK debug interface (JTAG/SWD) with different scenarios.
One example with SPI bootloader via ST-LINK/V3
One example with CAN bootloader via ST-LINK/V3
One example with I2C bootloader via ST-LINK/V3
One example with USB DFU bootloader
One example with UART bootloader
比如基于Visual studio:
關(guān)于這個API更多詳細內(nèi)容,大家可以下載安裝了解:
-
programmer
+關(guān)注
關(guān)注
0文章
23瀏覽量
28005 -
stm32cubemx
+關(guān)注
關(guān)注
5文章
286瀏覽量
15851 -
st-link
+關(guān)注
關(guān)注
1文章
43瀏覽量
9825
發(fā)布評論請先 登錄
相關(guān)推薦
ST-LINK在STM32CubeProgrammer中無法連接到器件怎么解決?
用STM32Cubeprogrammer燒錄TrustZone的示范程序不成功怎么解決?
請問STM32cubeProgrammer是否有提供API用于設(shè)計定制化的升級軟件?
在stm32cubeprogrammer上燒錄時,取消勾選根文件系統(tǒng),燒錄后發(fā)現(xiàn)sd卡上根文件系統(tǒng)的分區(qū)沒有了,為什么?
STM32MP25x開發(fā)板Bring Up培訓課程(下)

STM32C011開發(fā)(2)----nBOOT_SEL設(shè)置

STM32WB55RG開發(fā)(2)----STM32CubeProgrammer燒錄

STM32H503開發(fā)(2)----STM32CubeProgrammer燒錄

評論