nRF Connect SDK Intermediate Lesson 2 exercise 2, unable to locate the path

Hi, I need help with these tasks in Lesson 2 ex 2 (step 7. and 8.)

Looking for that path and python file everywhere, unable to find it,  I don't have zephyr folder, none of these.

Need help where I can get it from?

Thank you!

7. Convert the file into a bin file.

Run the Python script coredump_serial_log_parser.py located in ncs_install_path/zephyr_version/zephyr/scripts/coredump/coredump_serial_log_parser.pyto convert the text file to a bin file used in the next step.

python ncs_install_path/zephyr_version/zephyr/scripts/coredump/coredump_serial_log_parser.py dump.log dump.bin

8. Start the custom GDB server.

Inside the same directory as step 7, start the custom GDB server using the script coredump_gdbserver.py, located in ncs_install_path/zephyr_version/zephyr/scripts/coredump/coredump_gdbserver.py, with the core dump binary log file we created in step 7, and the Zephyr ELF file as parameters which can be found inside build/zephyr/zephyr.elf.

python /ncs_install_path/zephyr_version/zephyr/scripts/coredump/coredump_gdbserver.py build/zephyr/zephyr.elf dump.bin -v
Parents
  • Hi,

    Do you have the nRF Connect SDK installed? If not, you need to install it. (You can learn about that in the nRF Connect SDK fundamentals course or in the SDK documentation under Installation). If you do, you will have the files refered to in the SDK where it is installed. You need to replace the "ncs_install_path" with the path to wherever NCS is installed on your computer. There, you have a zephyr folder.

  • Hi Einar, 

    Thank you for reply,

    I was able to find the folders after reinstalling and updating nRF Connect SDK v.2.5.0 to v.2.6.0

    Now, after I ran 

    python3 ncs_install_path/nordic/ncs/v2.6.0/zephyr/scripts/coredump/coredump_serial_log_parser.py dump.log dump.bin

    I get an error:

    Traceback (most recent call last):

      File "ncs_install_path/nordic/ncs/v2.6.0/zephyr/scripts/coredump/coredump_serial_log_parser.py", line 99, in <module>

        main()

      File "/ncs_install_path/nordic/ncs/v2.6.0/zephyr/scripts/coredump/coredump_serial_log_parser.py", line 32, in main

        infile = open(args.infile, "r")

                 ^^^^^^^^^^^^^^^^^^^^^^

    FileNotFoundError: [Errno 2] No such file or directory: 'dump.log'

    I have created dump.log file previously.

    Python 3.12.1

    What can be the reason for that?

  • Hi,

    The error indicate that it cannot find the file dump.log. As you write it exists, that must mean that the path is incorrect. Perhaps the simplest is to provide the full path?

    PS: This particular part of the course, regarding coredumps is quite excotic, so unless you feel a paricular need to deep-dive into it, it should be OK to skip it.

Reply Children
Related