Arduino 2.0 ide with stm32 and Linux Mint 21

You are welcome. I'm glad one of the two problems is solved now at least.

donhp@donhp-HP-G61-Notebook-PC:~$ lsusb
Bus 002 Device 002: ID 0408:0f41 Quanta Computer, Inc. HP Webcam-101
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 004 Device 003: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

I can confirm that I get that line with the STM32 in boot mode.
I do not get the DFU option in tools as i do with windows.
Don

Just an update on the situation here.
Arduino 2.0 is working fine with the Arduino boards now.
However, when the STM32 Blackpill, or other STM device, is selected I still cannot see the uploader "STM32CubeProgrammer(DFU)" or other related items in the Tools Menu as I can with my Win 10 version. This appears (In Win10) as soon as I select the STM device whether or not it is plugged in.
Back to Linux Mint, I can now connect to the STM32Cube Programmer provided that i connect the device and put it into DFU mode before I boot up STMCube.
I have done searches and tried fixes but nothing so far has improved things although I have not seen others with exactly the same problem. i.e loss of the uploader.
Don

To verify, are you saying that you do not see an Upload method option under the Tools menu after you have selected an STM32 board from the Tools > Board menu, as shown here?:

Yes, that is correct. I can see the board but not the upload method at all.

Sorry not worked out how to add a screenshot.
Don
looks like it might have added the screenshot!

Nice work on figuring out how to add the screenshot. That is useful I can see that you have a different STM32 boards platform than the popular "STM32Duino" platform I am using.

It may simply be that you have installed a different platform or different version on your two machines, and this is the cause of the difference in the menu options.

I'm going to ask you to post some additional information that might help us to identify the platform you have installed.

Please do this:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Check the box next to "Show verbose output during: ☐ compilation".
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. Wait for the compilation to finish.
  6. Right click on the black "Output" panel at the bottom of the Arduino IDE window.
  7. From the context menu, click Copy All.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  10. Press Ctrl+V.
    This will paste the compilation output into the code block.
  11. Move the cursor outside of the code tags before you add any additional text to your reply.
  12. Click the Reply button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the Reply button.
  5. Click the "Upload" icon (image) on the post composer toolbar:
    image
  6. Select the .txt file you saved.
  7. Click the Open button.
  8. Click the Reply button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

Dear ptillish, after trying several install instruction from different sources and deleting each failed installation, I discovered this solution which worked for me as well - Thank you!

In case it is useful... Running on Acer c720 (Peppy) running Linux Mint 21 (MrChromebook firmware).

Awesome!

FWIW, I too used the stm32duino package for STM32 bluepill development with the Arduino IDE v2. It's also how I got the gdb debugging working using JLink and some IDE menu updates.

added this to the board input section of File->Preferences option:
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json

Hello, I also encountered a similar problem, but I am using esp32, I have installed the ch340/341 driver, but I still can not find /dev/ttyUSB0 or /dev/ttyACM0, the following is lsusb and dmesg | tail , may I ask how to deal with it


Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0408:5365 Quanta Computer, Inc. HP TrueVision HD Camera
Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 0bda:b00e Realtek Semiconductor Corp. Bluetooth Radio 
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[ 4325.303261] usbcore: registered new interface driver usb_ch341
[ 4325.303263] ch341: USB serial driver for ch340, ch341, etc.
[ 4325.303264] ch341: V1.6 On 2022.08
[ 4672.080046] rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
[ 5446.178798] audit: type=1400 audit(1680710400.898:29): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=21929 comm="cupsd" capability=12  capname="net_admin"
[ 5452.013257] rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
[ 5519.320250] traps: arduino-ide[22309] trap int3 ip:55f5af9e0763 sp:7ffdbcbd6a90 error:0 in arduino-ide[55f5acb8a000+6878000]
[ 5547.761405] traps: arduino-ide[22338] trap int3 ip:55ac24517763 sp:7ffcfec4dc60 error:0 in arduino-ide[55ac216c1000+6878000]
[ 5559.254527] traps: arduino-ide[22355] trap int3 ip:5561f8828763 sp:7ffcc7f9c020 error:0 in arduino-ide[5561f59d2000+6878000]
[ 5582.755939] traps: arduino-ide[22405] trap int3 ip:55e824e7e763 sp:7ffd699de7e0 error:0 in arduino-ide[55e822028000+6878000]

The first thing to look for is the brltty software and unless you use a brail tty device you should stop the brltty daemon and uninstall the software and then see if your serial device shows up properly.