-
Notifications
You must be signed in to change notification settings - Fork 0
Changes for native posix builds #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
CONFIG_MICROROS_AGENT_IP="192.168.1.42" | ||
# CONFIG_NET_IPV6 is not set | ||
CONFIG_MICRO_XRCE_DDS_CLIENT_CUSTOM=y | ||
CONFIG_MAIN_THREAD_PRIORITY=3 | ||
CONFIG_MAIN_STACK_SIZE=25000 | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000 | ||
CONFIG_CONSOLE=y | ||
CONFIG_CPLUSPLUS=y | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_SHELL=y | ||
CONFIG_NET_MAX_CONTEXTS=10 | ||
CONFIG_NET_PKT_RX_COUNT=32 | ||
CONFIG_NET_PKT_TX_COUNT=32 | ||
CONFIG_NET_BUF_RX_COUNT=32 | ||
CONFIG_NET_BUF_TX_COUNT=32 | ||
CONFIG_NET_STATISTICS=y | ||
CONFIG_NET_LOG=y | ||
CONFIG_NET_CONFIG_NEED_IPV4=y | ||
CONFIG_NET_CONFIG_SETTINGS=y | ||
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" | ||
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
CONFIG_MICROROS_AGENT_IP="192.168.1.42" | ||
# CONFIG_NET_IPV6 is not set | ||
CONFIG_MICRO_XRCE_DDS_CLIENT_CUSTOM=y | ||
CONFIG_BOARD_NATIVE_POSIX_64BIT=y | ||
CONFIG_MAIN_THREAD_PRIORITY=3 | ||
CONFIG_MAIN_STACK_SIZE=25000 | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000 | ||
CONFIG_CONSOLE=y | ||
CONFIG_CPLUSPLUS=y | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_SHELL=y | ||
CONFIG_NET_MAX_CONTEXTS=10 | ||
CONFIG_NET_PKT_RX_COUNT=32 | ||
CONFIG_NET_PKT_TX_COUNT=32 | ||
CONFIG_NET_BUF_RX_COUNT=32 | ||
CONFIG_NET_BUF_TX_COUNT=32 | ||
CONFIG_NET_STATISTICS=y | ||
CONFIG_NET_LOG=y | ||
CONFIG_NET_CONFIG_NEED_IPV4=y | ||
CONFIG_NET_CONFIG_SETTINGS=y | ||
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" | ||
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
CONFIG_ETH_DRIVER=y | ||
CONFIG_MAIN_THREAD_PRIORITY=3 | ||
CONFIG_MICROROS_AGENT_IP="192.168.1.42" | ||
CONFIG_GPIO=y | ||
CONFIG_PINCTRL=y | ||
CONFIG_CLOCK_CONTROL=y | ||
CONFIG_SERIAL=y | ||
CONFIG_MAIN_STACK_SIZE=25000 | ||
|
||
CONFIG_POSIX_API=y | ||
CONFIG_MICRO_XRCE_DDS_CLIENT_CUSTOM=y | ||
CONFIG_SOC_SERIES_STM32F4X=y | ||
CONFIG_SOC_STM32F429XX=y | ||
CONFIG_ARM_MPU=y | ||
CONFIG_HW_STACK_PROTECTION=y | ||
CONFIG_MAIN_THREAD_PRIORITY=3 | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
CONFIG_ENTROPY_STM32_THR_THRESHOLD=4 | ||
CONFIG_ENTROPY_STM32_ISR_THRESHOLD=12 | ||
CONFIG_PICOLIBC=y | ||
CONFIG_PTHREAD_IPC=n | ||
|
||
CONFIG_POSIX_API=y | ||
# CONFIG_PTHREAD_IPC is not set | ||
CONFIG_CPLUSPLUS=y | ||
CONFIG_MICROROS_AGENT_IP="192.168.1.42" | ||
CONFIG_MICRO_XRCE_DDS_CLIENT_CUSTOM=y | ||
|
||
CONFIG_NETWORKING=y | ||
CONFIG_NET_SOCKETS=y | ||
CONFIG_NET_CONFIG_NEED_IPV4=y | ||
CONFIG_NET_DHCPV4=y | ||
CONFIG_NET_CONFIG_NEED_IPV4=y | ||
CONFIG_NET_SOCKETS=y |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# CONFIG_NET_IPV6 is not set | ||
# CONFIG_ETH_DRIVER is not set | ||
#CONFIG_MINIMAL_LIBC_RAND=y | ||
#CONFIG_MINIMAL_LIBC_STRING_ERROR_TABLE=y | ||
CONFIG_POSIX_API=y | ||
CONFIG_SERIAL=y | ||
CONFIG_QEMU_ICOUNT_SHIFT=6 | ||
CONFIG_SOC_TI_LM3S6965=y | ||
CONFIG_SCHED_MULTIQ=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
CONFIG_PICOLIBC=y | ||
CONFIG_POSIX_API=y | ||
CONFIG_CPLUSPLUS=y |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ void main(void) | |
|
||
while(1){ | ||
rclc_executor_spin_some(&executor, 100); | ||
usleep(100000); | ||
k_msleep(100); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmmm. I'm not sure why. Would you mind enlightening me? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm assuming that with host's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your assumption is correct. However, I wasn't too concerned about this as it only has to work well enough for CI tests on native_posix builds. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That's easy to fix. See yashi/rclc#1 |
||
} | ||
|
||
// free resources | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind explaining to me why the main thread must be priority 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CONFIG_MAIN_THREAD_PRIORITY=3
comes directly from the original prj.conf file of the micro_ros_zephyr_module application.
There was no indication why it was set to that value in the original project.
I had no reason to change it so left it as is.