Time stamp issue in nrf52811

I am currently working on direction finding using the nRF Connect SDK in VS Code. I am using an nRF52811 custom board, and my logs work properly. I wanted to include timestamps to see the log in real-time, but when I include this in prj.conf, it shows an error. Is there another configuration in prj.conf to enable logs with timestamps

CONFIG_LOG=y
CONFIG_LOG_TIMESTAMP_64BIT=y
CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP=y

CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG=y
CONFIG_LOG_PRINTK=y

CONFIG_LOG_USES_TIMESTAMP=y

Parents
  • t shows an error.

    Which error?

    Also, which version of the SDK do you use?

    Regards,
    Sigurd Hellesvik

  • when i include this (CONFIG_LOG_USES_TIMESTAMP=y) in prj.conf to print log with time stamp  

    this error occur (build failed)

    -- Configuring incomplete, errors occurred!
    See also "C:/Embel_project/direction_finding_peripheral/build/direction_finding_peripheral/CMakeFiles/CMakeOutput.log".
    See also "C:/Embel_project/direction_finding_peripheral/build/direction_finding_peripheral/CMakeFiles/CMakeError.log".
    FAILED: build.ninja
    C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --regenerate-during-build -SC:\Embel_project\direction_finding_peripheral -BC:\Embel_project\direction_finding_peripheral\build\direction_finding_peripheral
    ninja: error: rebuilding 'build.ninja': subcommand failed
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/Embel_project/direction_finding_peripheral/build/direction_finding_peripheral

Reply
  • when i include this (CONFIG_LOG_USES_TIMESTAMP=y) in prj.conf to print log with time stamp  

    this error occur (build failed)

    -- Configuring incomplete, errors occurred!
    See also "C:/Embel_project/direction_finding_peripheral/build/direction_finding_peripheral/CMakeFiles/CMakeOutput.log".
    See also "C:/Embel_project/direction_finding_peripheral/build/direction_finding_peripheral/CMakeFiles/CMakeError.log".
    FAILED: build.ninja
    C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --regenerate-during-build -SC:\Embel_project\direction_finding_peripheral -BC:\Embel_project\direction_finding_peripheral\build\direction_finding_peripheral
    ninja: error: rebuilding 'build.ninja': subcommand failed
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/Embel_project/direction_finding_peripheral/build/direction_finding_peripheral

Children
Related