You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've flashed the SD card of my Raspberry Pi 3B with the beta4 LeoOS and then installed the core2_firmware_ros2 as described. However, when trying to start the micro_ros_agent, it crashes with the following error message:
The memory usage looks fine to me, with barely 50% used. I also want to note that during flashing of the firmware, I get another error, which does not seem to cause any obvious issues, though:
Write 703 chunks at address 0x8000000...
[====================] 100.0% address:0x802be00
Writing finished!
Read 703 chunks at address 0x8000000...
[====================] 100.0% address:0x802be00
Reading finished!
Verification FAILED: Data length does not match: 179940 bytes vs 179956 bytes.
Traceback (most recent call last):
File "/opt/ros/humble/lib/leo_fw/flash", line 29, in <module>
leo_fw.flash_firmware(
File "/opt/ros/humble/local/lib/python3.10/dist-packages/leo_fw/flash.py", line 182, in flash_firmware
write_binary(firmware_path, reset_high=True)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/leo_fw/flash.py", line 53, in write_binary
subprocess.check_call(f"{base_cmd} -wv {binary_path}", shell=True)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'stm32loader -c rpi -f F4 -R -wv core2_firmware.bin' returned non-zero exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_opt_ros_humble_lib_leo_fw_flash.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/opt/ros/humble/lib/leo_fw/flash", line 29, in <module>
leo_fw.flash_firmware(
File "/opt/ros/humble/local/lib/python3.10/dist-packages/leo_fw/flash.py", line 182, in flash_firmware
write_binary(firmware_path, reset_high=True)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/leo_fw/flash.py", line 53, in write_binary
subprocess.check_call(f"{base_cmd} -wv {binary_path}", shell=True)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'stm32loader -c rpi -f F4 -R -wv core2_firmware.bin' returned non-zero exit status 1.
[ros2run]: Process exited with failure 1
Thanks for the help!
The text was updated successfully, but these errors were encountered:
After investigating this thoroughly, I can give some more details on what is happening. From what I understand, the OS already starts some sort of node that allows communication with the firmware so the command I first executed doesn't actually seem necessary. However, what is problematic is that if the firmware node crashes, for example when a ros2 jazzy device tries to communicate with the humble LeoOS, it never restarts, even when power cycling. If I then try to manually start a micro ros agent again, I get the same error message as described above. Nothing short of completely flashing the OS and the Core2 firmware again seems to recover from this.
For the second error message I mentioned, this only occurs when flashing from the LeoOS full image, on the lite image it works fine.
I've also found that using CycloneDDS makes it significantly harder to accidentally crash the firmware node, so I'll just be using that for now.
Heya, thanks for the aliases, that's really useful. Yea, I've figured out the part with the micro ros agent already, guess I misunderstood the readme, thanks!
For the firmware issue, I've tested it with the core2_firmware_ros2 version 1.3.0 and 1.2.0, both of them fail with the same error message. However, it only fails when LeoOS-ros2-beta4-2024-11-19-full is installed on the pi,
LeoOS-ros2-beta4-2024-11-19-lite works correctly. I have not tested the older versions.
Hey all,
I've flashed the SD card of my Raspberry Pi 3B with the beta4 LeoOS and then installed the core2_firmware_ros2 as described. However, when trying to start the micro_ros_agent, it crashes with the following error message:
The memory usage looks fine to me, with barely 50% used. I also want to note that during flashing of the firmware, I get another error, which does not seem to cause any obvious issues, though:
Thanks for the help!
The text was updated successfully, but these errors were encountered: