nuttx olimex-stm32-h407 Build Error
Dear Microros,
I can successfully build Olimex-STM32-E407 according to tutorial.
https://micro-ros.github.io/docs/tutorials/core/first_application_rtos/
But I cannot build it for olimex-stm32-h407. https://micro-ros.github.io/docs/tutorials/advanced/nuttx/add_microros_config/
Error is shown below;
urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c: In function 'rmwinit': /urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c:180:12: error: implicit declaration of function 'open' [-Werror=implicit-function-declaration] int fd = open(context->impl->connectionparams.serialdevice, ORDWR | ONOCTTY); ^~~~ /urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c:180:65: error: 'ORDWR' undeclared (first use in this function) int fd = open(context->impl->connectionparams.serialdevice, ORDWR | ONOCTTY); ^~~~~~ /urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c:180:65: note: each undeclared identifier is reported only once for each function it appears in /urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c:180:74: error: 'ONOCTTY' undeclared (first use in this function) t fd = open(context->impl->connectionparams.serialdevice, ORDWR | ONOCTTY); ^~~~~~~~ /urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c:182:20: error: storage size of 'ttyconfig' isn't known struct termios ttyconfig; ^~~~~~~~~~ /urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c:184:14: error: implicit declaration of function 'tcgetattr' [-Werror=implicit-function-declaration] if (0 == tcgetattr(fd, &ttyconfig)) { ^~~~~~~~~ /urosws/firmware/mcuws/uros/rmwmicroxrcedds/rmwmicroxrceddsc/src/rmwinit.c:186:29: error: 'CREAD' undeclared (first use in this function) ttyconfig.ccflag |= CREAD; // Enable read.
Thank you.
Regards, Thiha Kyaw
Asked by TWINBORN on 2020-07-11 04:17:35 UTC
Answers
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
Asked by TWINBORN on 2020-07-11 22:00:50 UTC
Comments
Hi,
Is there anyone can answer my question? Thanks.
Regards, Thiha Kyaw
Asked by TWINBORN on 2020-07-13 02:21:24 UTC
Comments