ST意法半导体
直播中

温洁

7年用户 200经验值
私信 关注
[问答]

什么STM8S MCU是最接近的对应物?

嗨,
STM8有一个很好的外设库,可以隐藏寄存器配置的复杂性。 STLUX也有一个库,但它没有STM8那么丰富。我使用stm8s_i2c。{c,h}成功了STLUX并希望对stm8s_flash执行相同操作。{s,h}因为stlux_flash。{c,h}与stm8版本相比非常有限:stlux_flash只能运行EEPROM,而stm8_flash可以操作任何内存区域(闪存,eeprom,选项字节)。
所以这是一个问题:这可能吗?
我的理解是STLUX有一个FLASH外设,可以进行IAP。我只需要为所选部分(int stm8s_flash.h)正确设置内存映射,并验证在操作期间是否设置和监视了正确的位(stm8s_flash.c中的选项很少)。
我的MCU选择是STLUX385A。什么STM8S MCU是最接近的对应物?
谢谢,
马克西姆。

#stlux #iap #flash

以上来自于谷歌翻译


以下为原文




Hi,
STM8 has a great Peripheral Library, which can hide complexity of register configuration. STLUX also has a library but it is not as rich as the STM8 one. I used stm8s_i2c.{c,h} for STLUX with success and want to do the same for stm8s_flash.{s,h} since stlux_flash.{c,h} is very limited compared to the stm8 version: stlux_flash can operate only EEPROM, while stm8_flash can operate any memory region (flash, eeprom, option bytes).
So here is the question: Is this possible?
My understanding is that STLUX has a FLASH peripheral and is able to do IAP. I just need to setup memory map correctly for the chosen part (int stm8s_flash.h) and verify that correct bits are set and monitored during operation (there are few options in the stm8s_flash.c).
My MCU of choice is STLUX385A. What STM8S MCU is the closest counterpart?
Thanks,
Maksim.

#stlux #iap #flash

回帖(2)

温洁

2019-1-28 17:14:50
我的假设是正确的(至少对选项字节的编程)。所以其余部分也应该是好的,因为STLUX设备中存在相同的寄存器。
马克西姆

以上来自于谷歌翻译


以下为原文




My assumption was correct (at least for programming of option bytes). So the rest should be good too, since same registers are present in STLUX devices.
Maksim
举报

刘艺星

2019-1-28 17:27:52
嗨马克西姆,
是的,你是对的,你可以使用stm8s_flash命令来访问STLux E2PROM,flash和选项字节。
斯特凡诺

以上来自于谷歌翻译


以下为原文




Hi Maksim,
yes, you're right, you can use stm8s_flash command to have access to STLux E2PROM, flash and option bytes.
Stefano
举报

更多回帖

发帖
×
20
完善资料,
赚取积分