完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
如何通过游泳编程ROP选项字节?
#programmer#stm8 以上来自于谷歌翻译 以下为原文 How to programming ROP option byte via swim? #programmer #stm8 |
|
相关推荐
4个回答
|
|
你好,
你有这样一个STM8程序员的原理图吗?我想为我建一个。 谢谢 以上来自于谷歌翻译 以下为原文 Hello, Do you have any schematic for such a STM8 programmer? I'd like to build one for me. Thanks |
|
|
|
谢谢布拉佐夫先生。
我解决了这个问题 STM8L15x器件与其他器件有些不同。 我的代码如下。 swim_enter(); delay_10xus(Time_us(10000)); icp_eeprom_unlock(); swim_write_register(STM8_FLASH_CR2,(STM8_FLASH_CR2_ERASE)); swim_write_register(0x4800,0x00); delay_10xus(Time_us(6000)); swim_write_register(STM8_FLASH_CR2,(STM8_FLASH_CR2_OPT)); swim_write_register(0x4800,0xAA); 非常感谢.. 以上来自于谷歌翻译 以下为原文 Thanks Mr brazov. I Solved this problem STM8L15x devices are some different than others. My code is below. swim_enter(); delay_10xus(Time_us(10000)); icp_eeprom_unlock(); swim_write_register(STM8_FLASH_CR2, (STM8_FLASH_CR2_ERASE)); swim_write_register(0x4800, 0x00); delay_10xus(Time_us(6000)); swim_write_register(STM8_FLASH_CR2, (STM8_FLASH_CR2_OPT)); swim_write_register(0x4800, 0xAA); Thanks a lot.. |
|
|
|
嗨金庸苏,
我可以得到你的代码的副本,我正在努力创建自己的程序员,但我还不能成功,我想知道你是否可以分享你的代码来在我的程序员中实现它。 非常感谢你 以上来自于谷歌翻译 以下为原文 Hi Kim yongsu, Please could I have a copy of your code, I am trying to make my own programmer but I cannot make it yet, I would like to know if you can share your code to implement it in my programmer. Thank you very much |
|
|
|
你好!
请帮助! STM8S003F3 操作顺序读出保护ENABLED “” WRITE_BYTE(FLASH_DUKR,0xAE); WRITE_BYTE(FLASH_DUKR,0x56储存); WRITE_BYTE(FLASH_CR2,0x80); WRITE_BYTE(FLASH_NCR2,0x7F); uint32_t time_set = 3000; while(time_set--!= 0) { 如果(READ_BYTE(FLASH_IAPSR)及(1·;&LT; 3)) { WAIT_TIME(2000); WRITE_BYTE(OPTION_BYTE,和0xAA); } } “” 重启后,MC,读取OPTION_BYTE返回0xAA, 重启后,读取OPTION_BYTE,Flash返回0x71 操作顺序读取保护已禁用 “” WRITE_BYTE(FLASH_DUKR,0xAE); WRITE_BYTE(FLASH_DUKR,0x56储存); WRITE_BYTE(FLASH_CR2,0x80); WRITE_BYTE(FLASH_NCR2,0x7F); uint32_t time_set = 3000; while(time_set--!= 0) { 如果(READ_BYTE(FLASH_IAPSR)及(1·;&LT; 3)) { WAIT_TIME(2000); WRITE_BYTE(OPTION_BYTE,0×00); } } “” 录制OPTION_BYTE MC后停止响应任何操作。 SWIM界面不起作用。 以上来自于谷歌翻译 以下为原文 Hello! Help please! STM8S003F3 The sequence of operations Read out protection ENABLED '' write_Byte(FLASH_DUKR,0xAE); write_Byte(FLASH_DUKR,0x56); write_Byte(FLASH_CR2,0x80); write_Byte(FLASH_NCR2,0x7F); uint32_t time_set = 3000; while(time_set-- != 0) { if(read_Byte(FLASH_IAPSR)&(1<<3)) { wait_time(2000); write_Byte(OPTION_BYTE,0xAA); } } '' Upon reboot, the MC, reading OPTION_BYTE returns 0xAA, after the restart, reading OPTION_BYTE and the Flash returns 0x71 The sequence of operations Read Out Protection DISABLED '' write_Byte(FLASH_DUKR,0xAE); write_Byte(FLASH_DUKR,0x56); write_Byte(FLASH_CR2,0x80); write_Byte(FLASH_NCR2,0x7F); uint32_t time_set = 3000; while(time_set-- != 0) { if(read_Byte(FLASH_IAPSR)&(1<<3)) { wait_time(2000); write_Byte(OPTION_BYTE,0x00); } } '' After recording OPTION_BYTE MC stop responding to any action. SWIM interface does not work. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2582 浏览 1 评论
3194 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1765 浏览 1 评论
3589 浏览 6 评论
5969 浏览 21 评论
924浏览 4评论
1300浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
563浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1286浏览 3评论
1338浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-8 03:28 , Processed in 1.060647 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号