nRF54L15 BM - how to disable MCUMGR log

Hi,

I am developing on nRF54L15-DK BM (bare metal) for another board with a different pinout.

I need to disable the the MCUMGR log that prints to UART TX pin 1. 04.

The printout mentioned is:

*** Booting nRF Connect SDK Bare Metal v0.9.0-9b7766ff2787 ***
I: SoftDevice forward address: 0x162000
I: BLE MCUmgr sample started
I: State change request: enable
I: SoftDevice enabled
I: Bluetooth enabled
I: Services initialized
I: Fast advertising
I: Advertising as nRF_BM_MCUmgr

Thank you!

Regards,

Aryeh

Parents
  • Hello Aryeh,

    It should be sufficient to change the project configuration to disable the LOG and CONSOLE:

    Best regards,

    Vidar

  • Hello Vidar,

    Thank You!

     

    If I understand right, this is a global change, in

    C:\ncs\nrf-bm\v0.9.0\nrf-bm\samples\mcumgr\ble_mcumgr\prj.conf 

     

    I am looking for a portable, local project only solution.

    For example, for the app I added the setting in CMakeLists.txt to redirect the pin

    add_compile_definitions(BOARD_CONSOLE_UARTE_PIN_TX=43) # default 36=P1.04

    before the line

    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

    and for the mcuboot I added in sysbuild/mcuboot.conf

    CONFIG_LOG=n
    CONFIG_LOG_BACKEND_BM_UARTE=n
    CONFIG_CONSOLE=n
    CONFIG_BM_UARTE_CONSOLE=n
    CONFIG_UART_CONSOLE=n

    and it does the job.

    Now I am looking for a portable solution for the MCUmgr (firmware_loader) as well.

    Is it exists?

     

    Best Regards,

    Aryeh

Reply
  • Hello Vidar,

    Thank You!

     

    If I understand right, this is a global change, in

    C:\ncs\nrf-bm\v0.9.0\nrf-bm\samples\mcumgr\ble_mcumgr\prj.conf 

     

    I am looking for a portable, local project only solution.

    For example, for the app I added the setting in CMakeLists.txt to redirect the pin

    add_compile_definitions(BOARD_CONSOLE_UARTE_PIN_TX=43) # default 36=P1.04

    before the line

    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

    and for the mcuboot I added in sysbuild/mcuboot.conf

    CONFIG_LOG=n
    CONFIG_LOG_BACKEND_BM_UARTE=n
    CONFIG_CONSOLE=n
    CONFIG_BM_UARTE_CONSOLE=n
    CONFIG_UART_CONSOLE=n

    and it does the job.

    Now I am looking for a portable solution for the MCUmgr (firmware_loader) as well.

    Is it exists?

     

    Best Regards,

    Aryeh

Children
Related