ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

nuttx olimex-stm32-h407 Build Error

asked 2020-07-11 04:17:35 -0500

TWINBORN gravatar image

Dear Microros,

I can successfully build Olimex-STM32-E407 according to tutorial.

https://micro-ros.github.io/docs/tuto...

But I cannot build it for olimex-stm32-h407. https://micro-ros.github.io/docs/tuto...

Error is shown below;

uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c: In function 'rmw_init': /uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c:180:12: error: implicit declaration of function 'open' [-Werror=implicit-function-declaration] int fd = open(context->impl->connection_params.serial_device, O_RDWR | O_NOCTTY); ^~~~ /uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c:180:65: error: 'O_RDWR' undeclared (first use in this function) int fd = open(context->impl->connection_params.serial_device, O_RDWR | O_NOCTTY); ^~~~~~ /uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c:180:65: note: each undeclared identifier is reported only once for each function it appears in /uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c:180:74: error: 'O_NOCTTY' undeclared (first use in this function) t fd = open(context->impl->connection_params.serial_device, O_RDWR | O_NOCTTY); ^~~~~~~~ /uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c:182:20: error: storage size of 'tty_config' isn't known struct termios tty_config; ^~~~~~~~~~ /uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c:184:14: error: implicit declaration of function 'tcgetattr' [-Werror=implicit-function-declaration] if (0 == tcgetattr(fd, &tty_config)) { ^~~~~~~~~ /uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/rmw_init.c:186:29: error: 'CREAD' undeclared (first use in this function) tty_config.c_cflag |= CREAD; // Enable read.

Thank you.

Regards, Thiha Kyaw

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-11 22:00:50 -0500

TWINBORN gravatar image

Hi All,

I believe there is a bug in Nuttx Menuconfig.

When I set micro-Ros to Serial Transport,

Application Configuration > micro-ROS > Transport > Serial Transport

Serial port to use -> /dev/ttyS1 (I believe this is an issue for embedded system.)

/dev/ttyS1 is only for host computer and it is not for embedded system board.

Please advise me how I can set a correct settings for Serial port to use in Nuttx menuconfig.

Thanks.

Regards, Thiha Kyaw

edit flag offensive delete link more

Comments

Hi,

Is there anyone can answer my question? Thanks.

Regards, Thiha Kyaw

TWINBORN gravatar image TWINBORN  ( 2020-07-13 02:21:24 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-07-11 04:17:35 -0500

Seen: 165 times

Last updated: Jul 11 '20