2020-01-30 08:24 PM
There is a big issue I'm facing. I just installed STM32CubeIDE 1.2.0 but then I get an error when trying to install JLink_Linux_V662_x86_64.deb
I absolutely need those tools because I also do development for other boards with Segger JLink probes.
What is going on? My system is Linux Pop!_OS 18.04 LTS x86_64
Solved! Go to Solution.
2020-02-03 12:59 AM
Well,
Let's take it back from the beginning/
(assuming XXXX is your version of CubeIDE)
1) install CubeIDE debian bundle:
sudo bash st-stm32cubeide_XXXX_amd64.deb_bundle.sh
2) you should get something like this:
dpkg -l "st-st*" "segger*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-===================-===================-==============================================================
ii segger-jlink-udev-rules 6.62 all segger-jlink-udev-rules
ii st-stlink-server 1.3.0-4 amd64 stlinkserver
ii st-stlink-udev-rules 1.0.2-2 all st-stlink-udev-rules
ii st-stm32cubeide-XXXX amd64 IDE for STM32
3) Remove udev-rules-only segger package:
sudo dpkg -r --force-depends segger-jlink-udev-rules
4) Now you should have this:
dpkg -l "st-st*" "segger*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-===================-===================-==============================================================
un segger-jlink-udev-rules <none> <none> (no description available)
ii st-stlink-server 1.3.0-4 amd64 stlinkserver
ii st-stlink-udev-rules 1.0.2-2 all st-stlink-udev-rules
ii st-stm32cubeide-XXXX amd64 IDE for STM32
CubeIDE is still there:
ls /opt/st/stm32cubeide_XXXX/stm32cubeide
artifacts.xml features icon.xpm notice.html plugins stm32cubeide
configuration headless-build.sh jre p2 readme stm32cubeide.ini
5) install Segger JLink:
sudo dpkg -i JLink_Linux_V662a_x86_64.deb
(Reading database ... 239470 files and directories currently installed.)
Preparing to unpack JLink_Linux_V662a_x86_64.deb ...
Removing /opt/SEGGER/JLink ...
/opt/SEGGER/JLink not found (OK)
Unpacking jlink (6.621) ...
Setting up jlink (6.621) ...
6) Check what you have:
dpkg -l "st-st*" "segger*" "jlink*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-===================-===================-==============================================================
ii jlink 6.621 amd64 SEGGER J-Link tools
un segger-jlink-udev-rules <none> <none> (no description available)
ii st-stlink-server 1.3.0-4 amd64 stlinkserver
ii st-stlink-udev-rules 1.0.2-2 all st-stlink-udev-rules
ii st-stm32cubeide-XXXX amd64 IDE for STM32
ls /opt/st/stm32cubeide_XXXX/
artifacts.xml features icon.xpm notice.html plugins stm32cubeide
configuration headless-build.sh jre p2 readme stm32cubeide.ini
ls -l /etc/udev/rules.d/99-jlink.rules
-rw-r--r-- 1 root root 20919 janv. 24 16:20 /etc/udev/rules.d/99-jlink.rules
Can you check this on your system?
Best regards.
2020-01-31 01:56 AM
Hello m4l490n,
To install JLink_Linux_V662_x86_64.deb, you must first remove segger-jlink-udev-rules with the following command:
sudo dpkg -r --force-depends segger-jlink-udev-rules
This should not be an issue to run CubeIDE as segger-jlink-udev-rules only delivers /etc/udev/rules.d/99-jlink.rules which is also provided by JLink_Linux_V662.
Best regards.
2020-01-31 04:59 PM
I can successfully install JLink_Linux_V662_x86_64.deb now with the suggested command but then STM32CubeIDE disappears. To install it again I have to uninstall JLink_Linux_V662_x86_64.deb and then I end up as in the beginning.
2020-02-03 12:59 AM
Well,
Let's take it back from the beginning/
(assuming XXXX is your version of CubeIDE)
1) install CubeIDE debian bundle:
sudo bash st-stm32cubeide_XXXX_amd64.deb_bundle.sh
2) you should get something like this:
dpkg -l "st-st*" "segger*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-===================-===================-==============================================================
ii segger-jlink-udev-rules 6.62 all segger-jlink-udev-rules
ii st-stlink-server 1.3.0-4 amd64 stlinkserver
ii st-stlink-udev-rules 1.0.2-2 all st-stlink-udev-rules
ii st-stm32cubeide-XXXX amd64 IDE for STM32
3) Remove udev-rules-only segger package:
sudo dpkg -r --force-depends segger-jlink-udev-rules
4) Now you should have this:
dpkg -l "st-st*" "segger*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-===================-===================-==============================================================
un segger-jlink-udev-rules <none> <none> (no description available)
ii st-stlink-server 1.3.0-4 amd64 stlinkserver
ii st-stlink-udev-rules 1.0.2-2 all st-stlink-udev-rules
ii st-stm32cubeide-XXXX amd64 IDE for STM32
CubeIDE is still there:
ls /opt/st/stm32cubeide_XXXX/stm32cubeide
artifacts.xml features icon.xpm notice.html plugins stm32cubeide
configuration headless-build.sh jre p2 readme stm32cubeide.ini
5) install Segger JLink:
sudo dpkg -i JLink_Linux_V662a_x86_64.deb
(Reading database ... 239470 files and directories currently installed.)
Preparing to unpack JLink_Linux_V662a_x86_64.deb ...
Removing /opt/SEGGER/JLink ...
/opt/SEGGER/JLink not found (OK)
Unpacking jlink (6.621) ...
Setting up jlink (6.621) ...
6) Check what you have:
dpkg -l "st-st*" "segger*" "jlink*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-===================-===================-==============================================================
ii jlink 6.621 amd64 SEGGER J-Link tools
un segger-jlink-udev-rules <none> <none> (no description available)
ii st-stlink-server 1.3.0-4 amd64 stlinkserver
ii st-stlink-udev-rules 1.0.2-2 all st-stlink-udev-rules
ii st-stm32cubeide-XXXX amd64 IDE for STM32
ls /opt/st/stm32cubeide_XXXX/
artifacts.xml features icon.xpm notice.html plugins stm32cubeide
configuration headless-build.sh jre p2 readme stm32cubeide.ini
ls -l /etc/udev/rules.d/99-jlink.rules
-rw-r--r-- 1 root root 20919 janv. 24 16:20 /etc/udev/rules.d/99-jlink.rules
Can you check this on your system?
Best regards.
2020-02-08 11:20 PM
Awesome!! after following this I finally have both STM32CubeIDE and Segger JLink both working at the same time. I think the secret was to install JLink from the command line. Before, I was executing the same steps but double-clicking the .deb file to install JLink.