完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好
“SPC560x参考手册”的6.1.1节说“为了从闪存中成功启动,必须将两个32位字段编程为5个可能的启动块之一。” 我已经相应地写了0x005A005A到地址0x00000000(在我们的SPC56B发现套件上)但忽略了编程有效的32位复位向量。现在电路板处于复位状态(我甚至无法连接JTAG探头)。 有什么方法可以解决这个问题吗?不仅要“开发”硬件开发硬件,而且要“在现场”发生这种情况。 谢谢 凯文 以上来自于谷歌翻译 以下为原文 Hi Section 6.1.1 of the SPC560x Reference Manual says that ''in order to successfully boot from flash memory, you must program two 32-bit fields into one of 5 possible boot blocks.'' I have written 0x005A005A to address 0x00000000 accordingly (on our SPC56B Discovery Kit) but neglected to program a valid 32-bit reset vector. Now the board is stuck in reset (I can't even connect the JTAG probe). Is there any way of resolving this? Not just to ''unbrick'' the development hardware but if this were to happen ''in the field''. Thanks Kevin |
|
相关推荐
24个回答
|
|
谢谢Erwan。禁用看门狗会停止重置。
但是在连接调试器之前I / O不起作用。如果我从UDE连接的“复位时执行初始化命令”中删除脚本,但是勾选方框,I / O(GPIO闪烁)工作正常。如果没有勾选框,则没有闪烁的LED(尽管代码正在运行)。调试器必须启用其他功能才能设置I / O.我将看一下手册,但与此同时,如果有任何明显的东西我应该看一下,请告诉我。 以上来自于谷歌翻译 以下为原文 Thanks Erwan. Disabling the watchdog stops the resets. But I/O does not function until I connect the debugger. If I remove the script from the UDE connection's ''Execute Initialisation Commands on reset'' but leave the box ticked the I/O (GPIOs flashing) works fine. Without the box ticked there are no flashing LEDs (although the code is running). There must be something else enabled by the debugger to set up I/O. I'll have a look through the manual but in the meantime if there's anything obvious I should look at please let me know. |
|
|
|
好的,我放弃了。除非连接调试器,否则写入填充配置寄存器(0xC3F90084)无效。据推测,UDE会绕过一些内存保护设置(当我通过调试器重新启动程序时会提到它然后工作)。我设置什么来启用此写入?
谢谢 凯文 以上来自于谷歌翻译 以下为原文 Ok I give up. There's a write to a pad configuration register (0xC3F90084) that isn't taking effect unless I connect the debugger. Presumably UDE bypasses some memory protection settings (as mentioned when i ''restart program'' via the debugger it then works). What do I set to enable this write? Thanks Kevin |
|
|
|
你好凯文,
您尝试配置PC [0]: PC [0:1]可用作JTAG引脚(分别为TDI和TDO)。 PH [9:10]可用作JTAG引脚(分别为TCK和TMS)。 如果用户在GPIO模式下配置这些JTAG引脚,则器件不再符合IEEE 1149.1-2001。 Pinfile向导无法配置此引脚。 您可以尝试手动iosettings。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Kevin , You try to configure PC[0] : PC[0:1] are available as JTAG pins (TDI and TDO respectively). PH[9:10] are available as JTAG pins (TCK and TMS respectively). If the user configures these JTAG pins in GPIO mode the device is no longer compliant with IEEE 1149.1-2001. This pin is not configurable by the Pinmap Wizard. You can try by the manual iosettings. Best regards Erwan |
|
|
|
我正在尝试配置PC [2]和PC [3],它们连接到SPC560B Discovery Board上的用户LED。它们分别由PCR34(0xC3F90084)和PCR35(0xC3F90086)配置。
凯文 以上来自于谷歌翻译 以下为原文 I'm trying to configure PC[2] and PC[3], which are connected to the User LEDs on the SPC560B Discovery Board. These are configured by PCR34 (0xC3F90084) and PCR35 (0xC3F90086) respectively. Kevin |
|
|
|
我测试了另一个版本,这也影响了UART。我猜测Pad配置寄存器是只读的,直到设置其他东西。我们应该处于特定模式(例如DRUN,RUN0)来设置这些吗?建议请。
谢谢 凯文 * EDIT *通过设置ME_MCTL和ME_RUN_PC0以在DRUN模式下启用外设来解决此问题。 以上来自于谷歌翻译 以下为原文 I've tested another build and this affects UART as well. I'm guessing that the Pad Configuration Registers are read-only until something else is set up. Should we be in a particular mode (e.g. DRUN, RUN0) to set these? Advice please. Thanks Kevin *EDIT* Resolved this by setting ME_MCTL and ME_RUN_PC0 to enable peripherals in DRUN mode. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2634 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3609 浏览 6 评论
5987 浏览 21 评论
939浏览 4评论
1315浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
582浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1302浏览 3评论
1358浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 21:54 , Processed in 1.034349 second(s), Total 53, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号