嗨,
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 configura
tion. 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