請問CH32F CortexM0/M3系列MCU可以直接用STM32CubeIDE開發(fā)環(huán)境開發(fā)嗎?

之前用STM32F103C8T6在STM32CubeIDE下開發(fā)的HAL程序可以直接燒錄到CH32F103C8T6芯片上使用嗎?還是需要做什么代碼修改移植工作?

你好,是可以直接燒錄使用的。


STM32CubeIDE 的HAL庫是完全兼容的是嗎?想了解一下在STM32CubeIDE 環(huán)境下開發(fā)CH32F系列芯片有什么需要注意的地方??吹骄W(wǎng)上有文章說CH32的bootloader和flash下載算法和stm32的不同,能具體介紹一下嗎?


附:5款國產(chǎn)ARM芯片(對標(biāo)stm32f103c8t6)測試評估



你好,st的兩字節(jié)編程ch32是兼容的,但是速度會慢一點(diǎn),如果對flash編程速度沒有要求的話可以不用在意。如果對速度有要求的話可以使用ch32的128字節(jié)快速編程,快速編程的例程可以查看ch32f103evt中的flash例程,evt可以在我們官網(wǎng)下載。


CH32F103C8T6用STM32CubeIDE開發(fā),選STM32F103C8 編譯下載時出現(xiàn)報(bào)錯:

ST-Link設(shè)備進(jìn)行初始化時出錯。

原因:(18) Could not verify ST device! Abort connection.


請問是什么地方需要設(shè)置嗎?


image.png


用STM32 ST-LINK Utility可識別出芯片是STM32F10xx Medium-density

image.png


不知道你的問題解決了沒?

STM32CubeIDE 的HAL庫是完全兼容的.

使用keil的話 下載ch32f103evt?CH32F103EVT.ZIP - 南京沁恒微電子股份有限公司 (wch.cn)

然后安裝device pack 才能成功燒錄了。


問題沒解決,我公司幾個項(xiàng)目都是用STM32CubeIDE開發(fā)的,沒用keil,CubeIDE下載時報(bào)錯,見樓上的錯誤信息。這個問題一直沒解決。


well you dont expect STM tools compatible with WCH do you??

You may ask WCH if they can proide a gdb Server or you may ask STM if the might include support in their tools for WCH chips or you may simply use OpenOCD for this.


If you use vendor locked tools you have to stay with these vendor.?


@usbman, Thanks for you replay.

?

The vendor told me that CH32F103s are totally compatible with STM32CubeIDE. That’s the reason I’m trying CH32F103 on STM32CubeIDE. However, the result is it just doesn’t works.

?

I’m expect the replay for how to make the download works or clearly let me know ?CH32F103s chips are not compatible with STM32CubeIDE for downloading.

?

What I’m exactly concern is how to make STM32F103 HAL code which developed on STM32CubeIDE work on CH32F103 chip.

?

No clear answer till now.



Well that is a misunderstanding then. The WCH chips might be comptible with the Cube framework. The programmer and GDB server are not because those tools check the ChipVendor and therefore will not find a valid STM Chip ID.

So you have to find alternate programmer and GDB server. There are plenty out there.

This is what i ment with vendor locked tools.

Personally i dont use HAL too much but use the chips bare metal. WCH might even be the better solution because they support 5V Vcc, an extra USB Port, and some other nice extra features, but again if you use them you are locked to WCH :-)


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频