完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,
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个回答
|
|
|
我的假设是正确的(至少对选项字节的编程)。所以其余部分也应该是好的,因为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 |
|
|
|
|
|
嗨马克西姆,
是的,你是对的,你可以使用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 |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1447 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1494 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3641 浏览 1 评论
3834 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2454 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
658浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
940浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
744浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 19:05 , Processed in 0.585596 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2727