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

NRF_LOG to RAM fifo

Hi,

I have NRF_LOG configured with a RTT backend. This works great while debugging, but during beta-testing in the field there is no way to access the log.

Is it possible to (also) log to a RAM fifo so I can read it over BLE?

Preferably the RAM fifo simply fills all unused RAM so it's as large as possible.

What (general) steps do I have to take to make such a system work?

Thanks in advance.

Kind regards,

Remco Poelstra

  • Hi!

    Logging to RAM isn't really recommended as this would mean you lose all the information as soon as the application crashes. 

    What we do recommend for your use case is logging to flash. If you're using the nRF5 SDK, we have a flash logger backend in the Logger module library which can replace the log RTT backend you are using now.

    There a lot of tickets on DevZone regarding the use of this backend, so just take a look around before you try to implement it.

    Best regards,

    Heidi

Related