完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
早上好,
使用SPC56EL60L3在dicscovery板上使用通用debbuger,我有这个错误:各种寄存器似乎对我来说无法访问。如果我尝试使用SFR监视它们,我看不到值,但是''???????'',如果我尝试对其中一个(读或写)进行操作,那么微观去例外。 行为类似的模块例如是CRC,ADC,LINFLEX。 对于ADC模块,我尝试了向导的各种配置,但没有。 我无法理解为什么ude看不到它们。 P. S:我在关于STM寄存器的讨论中报告了这个问题,因为我对它进行了细化,它与单个模块(CRC)相关,但经过各种试验后,它似乎是一组与一组模块相关的通用问题,由于某种原因,我无法访问。 谢谢, 伊万 #UDE-SFR寄存器的访问 以上来自于谷歌翻译 以下为原文 Good morning, working with the universal debbuger on the dicscovery board with SPC56EL60L3, I have this error: various registers seem inaccesible to me. If I try to monitor them with SFR, I don't see the values, but ''???????'', and if I try to do an operation on one of them (reading or writing), the micro go in exception. Modules that behave like this are, for example, CRC, ADC, LINFLEX. For the ADC module I tried various configurations with the wizard, but nothing. I cannot understand why the ude cannot see them. P. S: I reported the problem in the discussion on the STM register, because I thincked it was related to a single module (CRC), but after various trials it seems a generic problem related to a group of modules that, for some reason, I cannot access. Thank you, Ivan #ude-sfr-registers-access |
|
相关推荐
4个回答
|
|
你好伊万,
您已通过关联的PCTL启用了一些IP(参见RM) (比较内存映射以获得相关的数字) 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Ivan , you have enable some IPs by associated PCTL (cf in RM) (cf memory map to have the associated number)
Best regards Erwan |
|
|
|
你好,Erwan,
感谢您的建议。 我尝试了你的解决方案,但它没有成功。我无法理解你建议在哪里找到。如果我在项目中复制了函数名(我用向导生成了板代码),我找不到该函数。 遵循建议一直很有帮助。我发现了ME模块以及必须激活外围设备的事实。据我所知,我发现在RUN模式下,设备的外设已停用。 我用过这段代码: 它的工作原理。 你对这段代码有什么建议吗?我不知道为什么我不能应用你的解决方案?可能我误解了它。 谢谢, 伊万 以上来自于谷歌翻译 以下为原文 Hello Erwan, thanks for the advice. I tried your solution, but it didn't work out. I cannot understand where to find that you suggested. If I copy the function name in my project (where I generated the board code with the wizard), I cannot find the function. Following the advice has been helpful. I discovered the ME module and the fact that peripherals must be activated. I found that the device, in RUN mode, had the peripherals deactivated, as you told. I used this code:
and it works. Do you have any suggestions regarding this piece of code? Any idea on why I cannot apply your solution? Probably I misinterpreted it. Thank you, Ivan |
|
|
|
我在这里发帖补充说,我发现的解决方案有一个奇怪的问题。
如果我使用调试器逐步运行代码,在我发布的代码之后,我可以使用ADC0寄存器。 但在运行模式下,激活码后,寄存器仍保留在?????状态和我进入异常。 似乎我错过了一些重要的东西。 有人有想法吗? 谢谢, 伊万 编辑: 我明白问题在哪里。我错过了这两行(抱歉有点符号): ME.MCTL.R = 0b01000000000000000101101011110000; ME.MCTL.R = 0b01000000000000001010010100001111; 这样,我控制转换到RUN0状态并加载配置(因此ADC转换器被激活)。首先写:模式选择+键。第二次写:模式选择+反转键。有关模式控制寄存器(ME_MCTL),请参见RM。 我在调试时没有出现问题,因为在断点处停止执行,命令自动从DRUN转换到RUN0模式加载配置。 但是,如果我没有停止应用程序,系统的状态仍然在DRUN中,因此我的配置未加载。 问候, 伊万 以上来自于谷歌翻译 以下为原文 I post here to add that the solution that I found have a strange problem. If I run the code step by step using the debugger, after the code that I posted I can use the ADC0 register. But in run mode, after the activation code, the register remains in ????? status and I go in exception. It seems that I miss something important. Someone have ideas? Thanks, Ivan Edit: I understood where the problem was. I missed this two lines (sorry for the bit notation): ME.MCTL.R = 0b01000000000000000101101011110000; ME.MCTL.R = 0b01000000000000001010010100001111; With this, I control a transition to the RUN0 state and configuration is loaded (so ADC converter is activated). First write: mode selection + key. Second write: mode selection + inverted key. See RM for Mode Control Register (ME_MCTL). The problem didn't arise when I was debugging, beacuse stopping the execution on a break point commanded automaticcaly a transition from DRUN to RUN0 mode loading the config. But if I didn't stop the application, the status of the system remained in DRUN and so my configuration were not loaded. Regards, Ivan |
|
|
|
你好伊万,
很好,你找到你的问题.. 不容易找到,但往往解决方案是在RM ;-) 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Ivan , Good that you find your issue .. not easy to find , but often the solution is in the RM;-) Best regards Erwan |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2718 浏览 1 评论
3235 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3643 浏览 6 评论
6031 浏览 21 评论
1333浏览 4评论
208浏览 3评论
195浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
348浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
440浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-19 23:10 , Processed in 1.155195 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号