nuttx olimex-stm32-h407 Build Error
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