1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我刚刚开始使用STM8并使用IAR。 IAR和STVP的Option Bytes都遇到了问题。他们之间有一些差异。我用的是STM8S105C6T6芯片。我也搜索了ST的数据表,用户手册,参考手册,但我还没有找到答案。也许,我错过了什么。希望有人帮助我!
_ UBC:有2个选项:禁用写保护和写保护 _ I2C:有2个选项:停止时运行并运行。 _ Timer1:有2个选项:停止和运行时冻结。 _ Timer2:有2个选项:停止和运行时冻结。 _ Timer3:有2个选项:停止和运行时冻结。 _ Timer4:有2个选项:停止和运行时冻结。 _ UBC [7..0]:8位,每位选择0到1。 _ BOOTLOADER ENABLE:启用Bootloader并启用Bootloader。 我的问题是: 1. IAR中没有BOOTLOADER ENABLE,所以它在哪里? 2.我不明白冻结停止时的选项và运行I2C,定时器[1..4]。他们是什么意思? STVP为什么没有?它们的用途是什么?在ST的所有文件中都没有“冻结时被冻结”的行! 我知道UBC代表用户启动代码区域。那是我们编写bootloader代码的内存程序区吗?使用STVP,UBC有8位,我们从第0页到第63页的内存程序中选择合适的位。但是对于IAR,只有两个选项禁用写保护和写保护;这意味着我们只有两个选项:一个没有UBC,没有写保护,一个用于定义为UBC的页面0到63,内存写保护,不是吗? 谢谢!希望有人帮助我! 以上来自于谷歌翻译 以下为原文 I have just began with STM8 and I use IAR. I'm in trouble with Option Bytes with both of IAR and STVP. They have some differences between them. I use STM8S105C6T6 chip. I also searched in datasheet, user manual, reference manual from ST but I didn't find the answer yet. Maybe, I missed something. Hope people help me! _ UBC: has 2 options: Write protection disabled and Write protected _ I2C: has 2 options: Frozen when stopped and Running. _ Timer1: has 2 options: Frozen when stopped and Running. _ Timer2: has 2 options: Frozen when stopped and Running. _ Timer3: has 2 options: Frozen when stopped and Running. _ Timer4: has 2 options: Frozen when stopped and Running. _ UBC[7..0]: 8 bit, choose between 0 and 1 for each bit. _ BOOTLOADER ENABLE: Bootloader Disabled and Bootloader enabled. My questions are: 1. There isn't BOOTLOADER ENABLE in IAR, so where is it??? 2. I don't understand the options Frozen when stopped và Running of I2C, Timer[1..4]. What does they mean? Why doesn't STVP have? What are their uses? And there isn't the line ''Frozen when stopped'' in all documents of ST!!! 3. I know UBC stands for User boot code area. Is that the memory program area which we write the code of bootloader? With STVP we have 8 bits for UBC and we choose the suitable bits from page 0 to page 63 memory program. But with IAR, there are only two options Write protection disabled and Write protected ; it means we have only two options: one for no UBC, no write protection and one for pages 0 to 63 defined as UBC, memory write-protected, doesn't it? Thank you! Hope people helping me! |
|
相关推荐
1个回答
|
|
我不知道这些特定的编译器/工具,但选项字节的含义在数据表的“选项字节”部分中描述。
OPT2用于重新映射引脚(定时器和其他),因此它可能以某种方式与那些奇怪的“冻结”选项相关,但我不知道如何。 引用: UBC [7:0]用户启动代码区域 0x00:没有UBC,没有写保护 0x01:页面0到1定义为UBC,内存写保护 0x02:页面0到3定义为UBC,内存写保护 0x03:页面0到4定义为UBC,内存写保护 ... 0x3E:页面0到63定义为UBC,内存写保护 其他值:保留 BL [7:0] Bootloader选项字节 对于STM8S产品,复位后由引导ROM代码检查此选项。 根据地址0x487E,0x487F和0x8000(复位向量)的内容, CPU跳转到引导加载程序或复位向量。请参阅UM0560(STM8L / S 引导程序手册)了解更多详情。 以上来自于谷歌翻译 以下为原文 I don't know about these specific compilers/tools but the meaning of option bytes is described in the ''Option bytes'' section in the datasheet. OPT2 is used to remap pins (timers and others) so it's probably somehow related to those weird ''frozen'' options but I have no idea how. Quote: UBC[7:0] User boot code area 0x00: no UBC, no write-protection 0x01: Page 0 to 1 defined as UBC, memory write-protected 0x02: Page 0 to 3 defined as UBC, memory write-protected 0x03: Page 0 to 4 defined as UBC, memory write-protected ... 0x3E: Pages 0 to 63 defined as UBC, memory write-protected Other values: Reserved BL[7:0] Bootloader option byte For STM8S products, this option is checked by the boot ROM code after reset. Depending on the content of addresses 0x487E, 0x487F, and 0x8000 (reset vector), the CPU jumps to the bootloader or to the reset vector. Refer to the UM0560 (STM8L/S bootloader manual) for more details. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2730 浏览 1 评论
3239 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1808 浏览 1 评论
3647 浏览 6 评论
6035 浏览 21 评论
1338浏览 4评论
198浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
273浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 23:35 , Processed in 1.002654 second(s), Total 78, Slave 62 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号