This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Timestamp problem

Hi team,

I am using sdk 12.1.0 and ble_app_hrs_c example.I enabled #define NRF_LOG_USES_TIMESTAMP 0 to 1 and iam usng nrf51822 dongle.my program gets hanged.I need to print the timestamp.I am unable to view the data from serial.please tell me what is the problem??

Parents
  • Hi,

    With the NRF_LOG_USES_TIMESTAMP functionality the user can create his own timestamp function. If you have enabled NRF_LOG_USES_TIMESTAMP, and have not provided the timestamp-function, initialization will fail with error NRF_ERROR_INVALID_PARAM.

    Note: Most terminal programs have their own timestamp-functionality you can enable to get timestamps. In e.g. Termite you can enable timestamp in “Settings” -> Plug-ins.

Reply
  • Hi,

    With the NRF_LOG_USES_TIMESTAMP functionality the user can create his own timestamp function. If you have enabled NRF_LOG_USES_TIMESTAMP, and have not provided the timestamp-function, initialization will fail with error NRF_ERROR_INVALID_PARAM.

    Note: Most terminal programs have their own timestamp-functionality you can enable to get timestamps. In e.g. Termite you can enable timestamp in “Settings” -> Plug-ins.

Children
No Data
Related