You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two seperate applications. One is MCUboot and the other is the actual application. There is a single DTS, configured in application part as follows:
When I build MCU with this configuration, for CONFIG_RECOVERY_UART_DEV_NAME I get in boot/zephyr/build-mcuboot/zephyr:
CONFIG_RECOVERY_UART_DEV_NAME="UART_3"
And I am fine with that and understand how this works. What I want is the following:
# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CONSOLE := zephyr,console
config RECOVERY_UART_DEV_NAME
string "UART Device Name for Recovery UART"
default "$(dt_chosen_label,$(DT_CHOSEN_Z_CONSOLE))" if HAS_DTS
default "UART_0"
depends on BOOT_SERIAL_UART
help
This option specifies the name of UART device to be used for
serial recovery.
I don't want RECOVERY_UART_DEV_NAME to be taken from device tree, I want it to get default value (UART_0). How do I achieve this? If I just comment out zephyr,console = &usart3; from device tree, for CONFIG_RECOVERY_UART_DEV_NAME in boot/zephyr/build-mcuboot/zephyr I get: CONFIG_RECOVERY_UART_DEV_NAME="".
Which is understandable, since there is no zephyr, console defined in device tree, but device tree is used. How do I modify this to say "do not use device tree to set RECOVERY_UART_DEV_NAME, but use default value?"
Thanks for help.
The text was updated successfully, but these errors were encountered:
I can, but for some reason, the update then does not work. I managed to circumvent this by defining separate overlay file for MCUboot, and set the wanted uart there. And then I can use different zepyhr,console in application and bootloader.
Problem description
I have two seperate applications. One is MCUboot and the other is the actual application. There is a single DTS, configured in application part as follows:
MCU boot conf file for my board has the following inside:
When I build MCU with this configuration, for CONFIG_RECOVERY_UART_DEV_NAME I get in boot/zephyr/build-mcuboot/zephyr:
CONFIG_RECOVERY_UART_DEV_NAME="UART_3"
And I am fine with that and understand how this works. What I want is the following:
I don't want RECOVERY_UART_DEV_NAME to be taken from device tree, I want it to get default value (UART_0). How do I achieve this? If I just comment out
zephyr,console = &usart3;
from device tree, for CONFIG_RECOVERY_UART_DEV_NAME in boot/zephyr/build-mcuboot/zephyr I get:CONFIG_RECOVERY_UART_DEV_NAME="".
Which is understandable, since there is no
zephyr, console
defined in device tree, but device tree is used. How do I modify this to say "do not use device tree to set RECOVERY_UART_DEV_NAME, but use default value?"Thanks for help.
The text was updated successfully, but these errors were encountered: