Core dump getting rid of optimized out

Hello!

I'm reading the nRF Connect SDK Intermediate course. Specifically, I'm trying to do Exercise 2 - Debugging with core dump and addr2line. I became interested in core dump. I am trying to perform the exercise on the nRF52840 DK board. I created the project from scratch and copied the files. I added a board:

After converting logs etc. I have a problem that my output is not the same as in the course, I mean addr=<optimized out>. Can you tell me how to disable this optimization using KCONFIG?

I tried with CONFIG_NO_OPTIMIZATIONS and CONFIG_DEBUG but the result is the same. Is it possible to receive even more data? How is it different from addr2line?

Related