-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with rclc_support_init() on STM32H743ZI using FreeRTOS 10.3.1 #119
Comments
hello , I'm having the same problem as you. It seems that the connect with agent is not well established yet. You can try a few more times on rclc_support_init(). That's what I did.
|
Hello there @danielallstar encountering the exact same problem with the exact same MCU. Wondering if you fixed it. Thanks |
Hey, I did not solve that problem. You could try the solution of @Hao-Lion-ZJU, but I did not try that myself. |
Thanks! Yeah, did try it, does not work and cannot work because the default task never resumes once it has entered Also, tried using default allocators as suggested in #110 but it does not fix the problem. Seems that micro-ros support for the stm32h743 is essentially broken. I wished we didn't design a custom PCB thinking it would work... |
|
Hello @nikitax75 could you open a PR for fixing the issue you mentioned? |
Hello,
I'm encountering a similar issue as described in tickets #116 and #107 while working with an STM32H743ZI2. Specifically, the problem lies with the rclc_support_init() function, which does not appear to be functioning correctly. I've configured the settings in line with those mentioned in ticket #116.
The issue manifests as follows: after calling the rclc_support_init() function, the MCU exits the Task function but fails to return. When halting the debugger at various points, I've observed that the FreeRTOS functions vTaskSwitchContext() and vPortExitCritical() are being invoked.
It's worth noting that on another STM32 MCU using an older version of FreeRTOS (10.2.1), there were no issues. However, the STM32H743ZI2 MCU comes with FreeRTOS 10.3.1 as the default from MXCube. Since I managed to get micro-ROS working on a similar MCU I am quite certain I followed the right steps. I however suspect something changed in versions or there is some hardware incompatibility. It is mentioned that micro-ROS is compatible with the STM32H743ZI, so I am curious which versions/setup is used to make this work.
This problem appears to be a recurring issue that has been reported multiple times. The most recent suggested solution (#116) involves modifying the allocator functions, but this solution lacks clarity and hasn't resolved the problem for me.
I have attempted to use custom functionsi instead of the microros_xx functions by using the standard C malloc, free, realloc and calloc without improvement.
Also the FreeRTOS pvPortMalloc and vPortFree functions were attempted, but does not solve the problem.
When running the micro-ROS agent no sign of connection can be seen and no session is established, as is the case with my other MCU. The USB is connected since /dev/ttyACM0 is detected.
It's also worth noting that ticket #107 does not contain any suggestions on how to address this problem.
I would greatly appreciate any assistance or suggestions that could help me address this issue conclusively. Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: