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
Hardware description: Custom board with STM32F765BIT
RTOS: N/A
Installation type: micro-ROS for PlatformIO with Arduino Framework.
Version or commit hash: Humble
I'm trying to debug why I occasionally see RCL_RET_ERR sometimes return from rclc_executor_spin_some() in my main project. To do so I'm trying to print out additional debug information from the executor to narrow down what the root cause of the RCL_RET_ERR. I've tried to create a simple project to print out the debug information from rclc_executor_spin_some() but I can't get it to output anything!
Steps to reproduce the issue
Program the board using main.cpp and colcon.meta linked below.
See "test log debug print" printed to Serial.
No messages from rclc_executor_spin_some() are printed.
[platformio]src_dir = mcu
workspace_dir = ../../build/mcu_pio
[env]board_microros_distro = humble
check_flags =
cppcheck: --inconclusive --inline-suppr --suppress=*:*/libdeps/*
check_skip_packages = yes
lib_deps =
https://github.com/micro-ROS/micro_ros_platformio#48096f8[env:ststm32]; pin platform version to 17.4, as 17.5 has build; issues with undefined reference to `SerialUSB`platform = [email protected]framework = arduino
board = rev_b
extra_scripts = pre:boards/config_board.py
monitor_dtr = 1
build_src_filter =
+<stm32/*>
build_flags =
${env.build_flags}
; enable SerialUSB
-I mcu/stm32/
-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC_WITHOUT_SERIAL
-DUSBCON
; Increase USB buffer sizes. Each TX and RX buffer is calculated based; on the teensy 4.0 default USB buffer sizes (TX: 8192, RX: 4096); (see https://github.com/PaulStoffregen/cores/blob/master/teensy4/usb_serial.c)). Note the TX/RX buffer; sizes are calculated by multiplying the packet number by 64.; Default buffer sizes:; CDC_TRANSMIT_QUEUE_BUFFER_PACKET_NUMBER 2; CDC_RECEIVE_QUEUE_BUFFER_PACKET_NUMBER 3; Minimum buffer sizes:; CDC_TRANSMIT_QUEUE_BUFFER_PACKET_NUMBER 1; CDC_RECEIVE_QUEUE_BUFFER_PACKET_NUMBER 2
-DCDC_TRANSMIT_QUEUE_BUFFER_PACKET_NUMBER=128
-DCDC_RECEIVE_QUEUE_BUFFER_PACKET_NUMBER=64
-DSERIAL_TX_BUFFER_SIZE=256
-DSERIAL_RX_BUFFER_SIZE=256
; Reduce timeout of I2C from 100 to 10. This should still allow; 1000 bytes of data to be sent via I2C at 100 kHz, more than enough for; the BME environemntal and pressure sensor comms.
-DI2C_TIMEOUT_TICK=10
-DRCUTILS_LOG_MIN_SEVERITY=RCUTILS_LOG_MIN_SEVERITY_DEBUG
board_microros_user_meta = ststm32_custom.meta
lib_deps =
${env.lib_deps}
The text was updated successfully, but these errors were encountered:
jeevan-vexev
changed the title
How to enable rclc debug logging?
❓ How to enable rclc debug logging?
Sep 25, 2024
I'm trying to debug why I occasionally see RCL_RET_ERR sometimes return from
rclc_executor_spin_some()
in my main project. To do so I'm trying to print out additional debug information from the executor to narrow down what the root cause of the RCL_RET_ERR. I've tried to create a simple project to print out the debug information fromrclc_executor_spin_some()
but I can't get it to output anything!Steps to reproduce the issue
rclc_executor_spin_some()
are printed.Expected behavior
Actual behavior
Additional information
Code snips
Let me know if more context is needed!
main.cpp:
colcon.meta:
The text was updated successfully, but these errors were encountered: