[SOLVED] J-Flash V7.54d -- ERROR: Could not open flash device list file

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] J-Flash V7.54d -- ERROR: Could not open flash device list file

    Hello,

    I get the following error when I start J-Flash in any directory under /home : ERROR: Could not open flash device list file [ETC/JFlash/Flash.csv]

    The contents of JFlash.log is following:

    Source Code: JFlash.log

    1. Application log started
    2. - J-Flash V7.54d (J-Flash compiled Sep 28 2021 16:18:47)
    3. - JLinkARM.dll V7.54d (DLL compiled Sep 28 2021 16:18:25)
    4. Reading flash device list [ETC/JFlash/Flash.csv] ...
    5. - ERROR: Could not open flash device list file [ETC/JFlash/Flash.csv]
    6. File not found!

    The host system is Ubuntu. Installation is as follows:

    Source Code

    1. > ls /opt/SEGGER
    2. drwxrwxr-x JLink_Linux_V754b_x86_64
    3. drwxrwxr-x JLink_Linux_V754d_x86_64
    4. drwxr-xr-x Ozone_Linux_V324d_x86_64
    5. drwxr-xr-x Ozone_Linux_V324f_x86_64
    6. lrwxrwxrwx JLink -> JLink_Linux_V754d_x86_64
    7. lrwxrwxrwx Ozone -> Ozone_Linux_V324f_x86_64
    8. > which JFlashExe
    9. /usr/local/bin/JFlashExe
    10. > ls /usr/local/bin/JFlashExe
    11. lrwxrwxrwx /usr/local/bin/JFlashExe -> /opt/SEGGER/JLink/JFlashExe
    Display All

    If I cd /opt/SEGGER/JLink (or cd /opt/SEGGER/JLink_Linux_V754d_x86_64 for that matter) and start JFlash from there, everything is fine, the log message is

    Source Code

    1. Application log started
    2. - J-Flash V7.54d (J-Flash compiled Sep 28 2021 16:18:47)
    3. - JLinkARM.dll V7.54d (DLL compiled Sep 28 2021 16:18:25)
    4. Reading flash device list [./ETC/JFlash/Flash.csv] ...
    5. - List of flash devices read successfully (451 Devices)
    6. Reading MCU device list ...
    7. - List of MCU devices read successfully (8788 Devices)


    It would be nice if this issue is solved.

    Kind regards,
    Vadim Barshaw
  • Hi Vadim,
    Thank you for your inquiry.
    Such an issue is not known to us.

    Just to make sure that I understood you correctly:
    - You installed J-Link via DEB-package
    - You changed your directory to the home directory (cd ..).
    - Calling "JFlashExe" or "JFlash" from there caused the mentioned error
    Is that correct?
    If so, we are not able to reproduce this issue on our side (see below).

    Could you please provide step-by-step instructions on how to reproduce this issue?



    Best regards,
    Fabian
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi Fabian,

    Here are the details.

    1. I download the tgz archive, JLink_Linux_V756d_x86_64.tgz

    2. Install it in the directory /opt/SEGGER:

    Source Code

    1. $ cd /opt/SEGGER
    2. $ sudo tar -xf ~/Downloads/SEGGER/JLink_Linux_V756d_x86_64.tgz
    J-Link is now in /opt/SEGGER/JLink_Linux_V756d_x86_64 directory

    3. Then, in /opt/SEGGER make a symbolic link to the newly untared directory:

    Source Code

    1. $ sudo ln -Tsf JLink_Linux_V756d_x86_64 JLink
    After these steps it looks as follows:

    Source Code

    1. $ ll /opt/SEGGER
    2. total 24K
    3. drwxrwxr-x 4.0K JLink_Linux_V756b_x86_64
    4. drwxrwxr-x 4.0K JLink_Linux_V756d_x86_64
    5. drwxr-xr-x 4.0K Ozone_Linux_V324d_x86_64
    6. drwxr-xr-x 4.0K Ozone_Linux_V324f_x86_64
    7. drwxr-xr-x 4.0K Ozone_Linux_V324g_x86_64
    8. lrwxrwxrwx 24 JLink -> JLink_Linux_V756d_x86_64
    9. lrwxrwxrwx 24 Ozone -> Ozone_Linux_V324g_x86_64

    4. The file JFlashExe is also a symbolic link:

    Source Code

    1. $ which JFlashExe
    2. /usr/local/bin/JFlashExe
    3. $ ll `which JFlashExe `
    4. lrwxrwxrwx 27 /usr/local/bin/JFlashExe -> /opt/SEGGER/JLink/JFlashExe

    5. The last step, in my project directory I start JFlash:

    Source Code

    1. $ cd ~/work/projectX
    2. $ JFlashExe
    and get the error Could not open flash device list file [ETC/JFlash/Flash.csv]

    6. Now go to JLink directory and start JFlash there:

    Source Code

    1. $ cd /opt/SEGGER/JLink
    2. $ JFlashExe
    Everything works, the log says

    Source Code

    1. Application log started
    2. - J-Flash V7.56d (J-Flash compiled Oct 29 2021 14:01:53)
    3. - JLinkARM.dll V7.56d (DLL compiled Oct 29 2021 14:01:31)
    4. Reading flash device list [ETC/JFlash/Flash.csv] ...
    5. - List of flash devices read successfully (451 Devices)
    6. Reading MCU device list ...
    7. - List of MCU devices read successfully (8796 Devices)



    Kind regards,
    Vadim

    The post was edited 1 time, last by vadim.b ().

  • Hi Vadim,
    Thank you for the reproducer.
    We were able to recreate the issue and will look into this as soon as possible.

    As a work around until then:

    Source Code

    1. $ sudo ln -Tsf /opt/SEGGER/JLink/JFlashExe /usr/bin/JFlashExe <- Works
    2. $ sudo ln -Tsf /opt/SEGGER/JLink/JFlashExe /usr/local/bin/JFlashExe <- Fails
    If you use line 1 instead of line 2, everything works as expected.

    Thank you for making this issue known to us.
    I will keep you posted.

    Best regards,
    Fabian
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.