Generating coredump and saving into flash, Is there is any proper steps are there?

I am following the document provided for generating core dump . I follow the step 

1. after enable all the config, i am able to do coredump find , coredump verify, coredump print.

2. I copied the serial logs and and save as the coredump.log

3. i am able to convert the coredump.log to coredump.bin  using 1st command shown in the screenshot.
 

4. I have tried the 2 nd command for this i am getting the waiting for the gdb connection port.Do i need to do something else here?

5. I have tried 3 rd command gdb server is opening but for the after firing the 4 th command i am able to open the port using target remote localhost:2331.

6. when i connecting server i did bt but all files it showing for the sdk so not able to understand from where program got crash. Do i need to 2 nd command and not 3 rd one ?

And why we are converting the coredump.log to coredump.bin and where we are using those files?

please help me with this is i miss any steps in between. Some example code is there of this? i am referring this nordic ticket https://devzone.nordicsemi.com/f/nordic-q-a/101071/saving-coredumps-to-external-flash/448143