Skip to content

Running into issues with Teensy 4.1 #1192

Closed
@avibrown

Description

@avibrown

Hi! Hoping to get some help getting my Teensy 4.1 running the publisher example.

Using micro-ROS Arduino on Ubuntu 22.04 running Humble.

Steps to reproduce the issue

  • Install Teensyduino for Arduino 1.8.19 (Blink example uploads successfully)
  • Try to upload "publisher" example from micro-ROS Arduino examples

Expected behavior

  • This example works fine using the Portenta H7, so I expected it to work the same with the Teensy. Maybe I need to change something though first..?

Actual behavior

  • Seeing the following error output:
Arduino: 1.8.19 (Linux), TD: 1.57, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"

WARNING: library micro_ros_arduino-2.0.5-humble claims to run on stm32, OpenCR, Teensyduino, samd, sam, mbed, esp32, mbed_portenta architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
Library micro_ros_arduino-2.0.5-humble has been declared precompiled:
Precompiled library in "/root/Arduino/libraries/micro_ros_arduino-2.0.5-humble/src/imxrt1062/fpv5-d16-hard" not found
Precompiled library in "/root/Arduino/libraries/micro_ros_arduino-2.0.5-humble/src/imxrt1062" not found
The platform does not support 'compiler.libraries.ldflags' for precompiled libraries.
/tmp/arduino_build_130983/sketch/sketch_oct19b.ino.cpp.o: In function `timer_callback(rcl_timer_s*, long long)':
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:36: undefined reference to `rcl_publish'
/tmp/arduino_build_130983/sketch/sketch_oct19b.ino.cpp.o: In function `set_microros_transports':
/root/Arduino/libraries/micro_ros_arduino-2.0.5-humble/src/micro_ros_arduino.h:40: undefined reference to `rmw_uros_set_custom_transport'
/tmp/arduino_build_130983/sketch/sketch_oct19b.ino.cpp.o: In function `setup':
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:49: undefined reference to `rcutils_get_default_allocator'
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:52: undefined reference to `rclc_support_init'
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:55: undefined reference to `rclc_node_init_default'
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:58: undefined reference to `rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int32'
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:58: undefined reference to `rclc_publisher_init_default'
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:66: undefined reference to `rclc_timer_init_default'
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:73: undefined reference to `rclc_executor_init'
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:74: undefined reference to `rclc_executor_add_timer'
/tmp/arduino_build_130983/sketch/sketch_oct19b.ino.cpp.o: In function `loop':
/home/avi/Downloads/sketch_oct19b/sketch_oct19b.ino:81: undefined reference to `rclc_executor_spin_some'
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 4.1.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Happy to provide any additional information as needed. Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions