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

logging data saved in flash memory.. why?

hi, all. I'm using nrf52833, pca10100, s140.

The flash memory capacity has increased, so I checked the memory, and it seems that the log values have been saved.

It should always be around 200kb, but it's increased to around 250kb, so I think I'll have to erase the data.


1. First of all, why did this happen? (It was fine until yesterday, but suddenly it was discovered while debugging today.)

2. I can erase flash memory, but where and how should I erase it? (If I erase any memory, it'll damage the program.)

BR,

lyrics

+) add

The .text memory charge for the existing project was this much.

         < and this is my wrong project..

Thank you in advance..

Parents
  • Hello Lyrics,

    To answer the question in the title; Because you are using the logger module.

    1. First of all, why did this happen? (It was fine until yesterday, but suddenly it was discovered while debugging today.)

    The logger module requires space to store all the loggings that you have present in your application. This includes all the loggings from SDK drivers and libraries that you have enabled as well. If you look at the right-most columns of the first picture you've included you see that the area contains the strings that are being printed throughout your program.
    Every NRF_LOG_*(" * ") line in your program is saved in this area.

    2. I can erase flash memory, but where and how should I erase it? (If I erase any memory, it'll damage the program.)

    If you want to reduce the size of this area in your memory map you can either change the logging level (so fewer lines are logged), or you can disable the logger all together.
    The logger module is primarily meant to be used during development, as it takes up memory and increases power consumption when in use.

    If you want to free this area of the flash all together, you must disable logging.

    Best regards,
    Karl

  • Hello, Karl. Thank you for your reply.

    I recognized that logging data is stored in memory.

    I think I misdirected the question, so I uploaded a new one.

    Could you check tihs as well?

    BR,

    Lyrics

  • Hello Lyrics,

    lyrics said:
    Thank you for your reply.

    No problem at all, I am happy to help!

    lyrics said:

    I think I misdirected the question, so I uploaded a new one.

    Could you check tihs as well?

    Sure, I will take a look! :) 

    Let us continue this in the other ticket.

    Best regards,
    Karl

Reply Children
No Data
Related