完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好,
我正在尝试超过一个星期来确定为什么eMIOS1不能在我的SPC564B74L7上工作。我现在真的没有想法,我需要你的支持! 首先,我想向您提交我认为的错误。请参阅icu_bug1.png:我必须添加突出显示的代码,因为单独激活eMIOS1时,它会导致未处理的异常。它位于600号线附近。 在附加项目(SPC5Studio v3.7)中,当icu_bug2.png中显示的代码被注释掉(icu_start和icu_enable)时,我的eMIOS0 ch.1正常工作(我在uart上发送消息告诉“ICUD2更多(或更少)超过1kHz“) 但是当没有注释掉的时候,eMIOS0 ch.1和eMIOS1 ch.9都在工作了......单独的eMIOS1 ch.9也没有用。 我在icu_lld.c和icu_lld.h中手动添加了与eMIOS1 ch.9 / ICUD16相关的声明。我多次检查它们,做了一些调试,但我找不到它为什么不起作用。引脚配置正常(eMIOS1 ch.9仅映射到PH [7]并配置为高级模式以与IBE交替1)。 能否请您查看附带的基本项目并告诉我这里有什么问题? 感谢您的支持 以上来自于谷歌翻译 以下为原文 Hello, I’m trying since more than a week to determine why is eMIOS1 not working on my SPC564B74L7. I’m now really out of idea and I need your support! First I would like to submit you what I think is a bug. See icu_bug1.png: I had to add the highlighted code because when activating eMIOS1 alone, it was causing an unhandled exception. It is located around line 600. In the attached project (SPC5Studio v3.7) when the code shown in icu_bug2.png is commented out (icu_start and icu_enable), my eMIOS0 ch.1 is working properly (I’m sending a message on the uart telling “ICUD2 is more (or less) than 1kHz”) But when not commented out, both eMIOS0 ch.1 and eMIOS1 ch.9 are working anymore… eMIOS1 ch.9 alone is also not working. I added manually the declarations related to eMIOS1 ch.9 / ICUD16 in icu_lld.c and icu_lld.h. I checked them many times, doing some debug but I can’t find why it not working. Pins config are ok (eMIOS1 ch.9 is only mapped on PH[7] and is configured in Advanced mode to alternate 1 with IBE). Can you please review the basic project attached and tell me what is wrong here?? Thank your for your support |
|
相关推荐
3个回答
|
|
我终于发现icu_lld不能用于激活多个通道,因为A2临时寄存器与所有通道共享......我使它们成为处理所有通道的数组并激活eMIOS0_ch0,eMIOS1_ch24现在正在工作。
请考虑更新我附加的更改icu_lld。 我参与了ICU-PWM向导项目,现在我将其应用于我的个人项目,因为我仍然不知道为什么eMIOS1_ch9单独工作。 最好的祝福, 光环©留置权 以上来自于谷歌翻译 以下为原文 I finally found that icu_lld is NOT made to work with more than one channel activated because A2 temp registers are shared with all channels... I made them arrays to handle all channels and activating eMIOS0_ch0 and eMIOS1_ch24 is now working. Please consider updating icu_lld with my changes attached. I worked on the ICU-PWM wizard project and I will now apply this to my personnal project because I still don't know why eMIOS1_ch9 alone was not working. Best Regards, Aurélien |
|
|
|
你好Aurelien,
干得好,谢谢你的分享;-) 我也在提交HAL和RLA的ER。 1)我在尝试启用IPWM(用于超声波传感器)时发现了另一个问题(使用ICU) (警告此补丁适用于RLA) 2)奇怪你的pinamp向导在B64而不是B74上设置 您是否尝试进入icu_lld_serve_interrupt并分析温度寄存器? 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Aurelien , good job and thanks for your sharing ;-) i am submitting an ER on HAL and RLA too. 1) i have found an other issue in trying to enable IPWM (For Ultrasonic sensor) (with ICU) (Warning this patch is for RLA)
2) Strange your pinamp wizard is set on B64 not B74 Did you try to go in icu_lld_serve_interrupt and Analyse the Temp Registers ? Best Regards Erwan |
|
|
|
你好,Erwan,
我没有使用pin向导,而是使用了board init组件中的手动设置。 对于不工作的通道,计算的周期始终为1,如果时钟/计数器未激活/计数... 任何想法? 问候 以上来自于谷歌翻译 以下为原文 Hello Erwan, I didn't use pin wizard but the manual setting in the board init component. For channels which are not working, the period calculated is always 1 like if the clock/counter was not activated/counting... Any idea? Regards |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2738 浏览 1 评论
3241 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1810 浏览 1 评论
3650 浏览 6 评论
6039 浏览 21 评论
1339浏览 4评论
201浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
353浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
444浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
275浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 17:56 , Processed in 1.114365 second(s), Total 81, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号