完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
我的设置与上一个问题中的设置非常相似:
https://community.st.com/message ... read#comment-182613 Sensortile + DataLogger示例项目+ SDCard + MotionAR 现在我正在尝试添加MotionPM。我可以调用init函数并获取库的版本号。然后我继续在循环中调用Update函数。在我们跳转到错误处理程序之前,似乎只需要更新4次。 我知道这不是很多,但是这会给任何人提供任何关于我可能缺少的线索吗? 以上来自于谷歌翻译 以下为原文 My setup is very similar to my setup in previous question: https://community.st.com/message ... read#comment-182613 SensorTile + DataLogger sample project + SDCard + MotionAR Now I'm trying to add MotionPM to the mix. I'm able to call the init function and get the version number of the library. I then proceed to call the Update function in a loop. It seem like it takes an update only 4 times before we jump into an error handler. I understand that this is not a lot to go by, but does this give anyone any clues as to what I may be missing? |
|
相关推荐
5个回答
|
|
|
我认为这可能是小堆栈大小的问题。你可以尝试增加堆栈大小吗?
以上来自于谷歌翻译 以下为原文 I think it could be problem with small stack size. Could you please try to increase stack size? |
|
|
|
|
|
嗨诺曼,
同样的情况似乎发生在我们的项目中,但经过4次以上的迭代,并且只有我们不断地移动设备。 Keil编译输出显示 “最大堆栈深度的调用链”:Sch_ExecRun⇒MotionPM_Update⇒runStepDetection⇒FilterData⇒__aeabi_drsub⇒__aeabi_dadd⇒_double_epilogue⇒_double_round “最大堆栈使用”= 5792字节+未知(循环,不可捕获的功能指针)。 我们已将堆大小配置为0x1200,将StackSize配置为0x2000,但MotionPM仍然会崩溃/生成许多FPU错误中断。 如果禁用FPU错误,系统将因HardFault而崩溃。 我们仍在寻找解决方案。 如果你找到解决方案,你能告诉我吗? 非常感谢和问候, 斯特凡诺 以上来自于谷歌翻译 以下为原文 Hi Norman, the same seems to happen in our project, but after more than 4 iterations and only if we move the device continously. The Keil Compile output shows "Call chain for Maximum Stack Depth": Sch_ExecRun ⇒ MotionPM_Update ⇒ runStepDetection ⇒ FilterData ⇒ __aeabi_drsub ⇒ __aeabi_dadd ⇒ _double_epilogue ⇒ _double_round "Maximum Stack Usage" = 5792 bytes + Unknown (Cycles, Untraceable Function Pointers). We have configured Heap Size to 0x1200 and StackSize to 0x2000, but the MotionPM is still crashing / generating many FPU Error Interrupts. If you disable the FPU error, the system will crash for HardFault. We're still looking for solutions. Could you let me know if you figure out a solution? Many Thanks and Regards, Stefano |
|
|
|
|
|
同样的建议,请尝试增加堆栈大小。
您当前的堆栈大小设置是多少? 以上来自于谷歌翻译 以下为原文 The same recommendation, please try to increase stack size. What is your current stack size settings? |
|
|
|
|
|
现在我们尝试使用0xA000并发生同样的问题。
崩溃需要更多时间。 以上来自于谷歌翻译 以下为原文 Now we've tried with 0xA000 and the same problem happen. Just it takes more time to crash. |
|
|
|
|
|
如果我不知道你的固件,很难建议。我不知道图书馆有任何问题。
在我们的示例中,我们使用堆栈大小0x8000,程序在Nucleo板上运行没有任何问题。 你可以尝试进一步增加堆栈,也许你的固件的其他部分也有很大的内存需求。 以上来自于谷歌翻译 以下为原文 It is difficult to advise, if I don't know your firmware. I'm not aware about any issue in the library. In our examples we use stack size 0x8000 and the program runs without any issue on Nucleo boards. Can you try to increase the stack even more, maybe your other part of the firmware also has big memory demand. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1447 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1494 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3641 浏览 1 评论
3834 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2454 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
658浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
940浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
744浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 17:28 , Processed in 0.639840 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
565