Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:11 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MINT: STCube Programmer in Linux....

     Page 1 of 4    
Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:19am 11 Dec 2021
Copy link to clipboard 
Print this post

Hello.

This one IS micro-controller based, and I have also signed up at the ST forums.
Well, I tried to, but the email confirmation never arrived, so I don't know how I am going to complete the process, but there you go....

Anyway, I installed the Cube programmer for Linux just fine, it runs just fine in Mint, but it refuses to talk to a Black Pill module.

Interestingly, Mint itself CAN see the module, as confirmed by getting a system information report - see this image:





Note that the Cube programmer is looking for the DFU with a PID of 0xdf11, and a VID of 0x0483, and that Mint sees the Black Pill module in DFU mode, with EXACTLY those settings - but Cube Programmer just says that no DFU was detected.

I have highlighted the Black Pill module as seen by Mint in green in the left-side image, so I would have thought that at this point - if Mint can see the module with the correct PID and VID, that the Cube programmer should also be able to see the module at this point.

Weirdness.....  

Any ideas?

I will update this thread if I ever get a reply to my request to join the ST forums, but as yet....nothing.

EDIT: Image is too fuzzy and cropped for you to be able to read any of it.  I will try to crop the image into two separate ones and upload them here.
Edited 2021-12-11 16:21 by Grogster
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:28am 11 Dec 2021
Copy link to clipboard 
Print this post

Cropped images:







Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:41am 11 Dec 2021
Copy link to clipboard 
Print this post

Have you given yourself permission to use serial ports (modems)?

Jim
VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:51am 11 Dec 2021
Copy link to clipboard 
Print this post

NO.

I have given myself permission to use the USB flash-drives etc, to get USB flash-drives and printers working inside the XP VM.

If you can give me a console command I can run to give myself those permissions, that would be fantastic.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:00am 11 Dec 2021
Copy link to clipboard 
Print this post

Using the GUI
start
Administration
Users and Groups
select the user
Advanced settings
User privileges
Put a tick in Use modems

You might have to log out and back in for it to take effect.

(I tried using command line to do this but didn't have much success)

Jim
VK7JH
MMedit
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 07:06am 11 Dec 2021
Copy link to clipboard 
Print this post

hi grogster,
   to add the current user to the dialout group:

sudo adduser $USER dialout


and to remove the accursed modemmanager:

sudo apt-get purge modemmanager
sudo apt autoremove



cheers,
rob   :-)
Edited 2021-12-11 17:07 by robert.rozee
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:07am 11 Dec 2021
Copy link to clipboard 
Print this post

Thanks, but no "Advanced Settings"....





Any pointers?
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:08am 11 Dec 2021
Copy link to clipboard 
Print this post

@ Rob: Do I replace "$USER" with "$Graeme"?
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:11am 11 Dec 2021
Copy link to clipboard 
Print this post

No. $USER is the current user who is you.
VK7JH
MMedit
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 07:11am 11 Dec 2021
Copy link to clipboard 
Print this post

  Grogster said  @ Rob: Do I replace "$USER" with "$Graeme"?


no, "$USER" (hmmm, or is it "USER$") is a parameter that the shell program substitutes for you automatically.


cheers,
rob   :-)


addendum: it is $USER
Edited 2021-12-11 17:13 by robert.rozee
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:13am 11 Dec 2021
Copy link to clipboard 
Print this post

Excellent, thanks both of you!

I'm learning more Linux then ever before now this machine is now my main one.

I'll run the console commands and update this thread.
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:23am 11 Dec 2021
Copy link to clipboard 
Print this post

OK, completed that all fine, but still no detection.
Do I need to reboot Mint at this point?
Perhaps I will try that anyway....
Smoke makes things work. When the smoke gets out, it stops!
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 07:30am 11 Dec 2021
Copy link to clipboard 
Print this post

you do need to at least log out for the adduser to take effect. rebooting is a good thing, given that linux boots so quickly anyway    

i take it your computer has an SSD? this cuts the boot time considerably.


cheers,
rob   :-)
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:40am 11 Dec 2021
Copy link to clipboard 
Print this post

Yes, this Mint 20.2 is on a 500GB SSD.
I will reboot after I have finished watching the rest of "The Seekers"...

Stay tuned, and thanks so much for helping.
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:02am 11 Dec 2021
Copy link to clipboard 
Print this post

OK, have rebooted, STCube still refuses to see the Black Pill module at all.
System report still shows it connected with the same settings as above.

Anything else I can try?

What IS encouraging, is that Mint can see the module, and can see it with the correct chip VID and PID, so it has to be something between Mint and STCube.
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 01:49pm 11 Dec 2021
Copy link to clipboard 
Print this post

  robert.rozee said  hi grogster,
   to add the current user to the dialout group:

sudo adduser $USER dialout


cheers,
rob   :-)

I think you'll need

sudo adduser $USER -G dialout


(using -G not -g)

Try
man adduser

to read the manual page.

John
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 03:53am 12 Dec 2021
Copy link to clipboard 
Print this post

Hi John.

This is the response I get:



Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 04:40am 12 Dec 2021
Copy link to clipboard 
Print this post

You were missing the -a switch

sudo adduser $USER dialout
or
sudo usermod -a -G dialout $USER


The first version is specific to Ubuntu and derivatives
The second version should work for all Linux

and
groups

should list the groups you are in.

Jim
Edited 2021-12-12 14:42 by TassyJim
VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 10:38pm 12 Dec 2021
Copy link to clipboard 
Print this post

Thank, I have added that, and that command was successful.





Cube programmer still flatly refuses to talk to the module, or even see it at all.

Does anyone else have anything else they would like me to try?

This is interesting.
I was expecting Linux to assign it to a folder in the tree as it does with something like the E28 module, and then I could point the Cube programmer to that location, but it does not show up as any kind of USB device at all as I was expecting.

I'll dig out an E28 and connect that, just to make sure that Mint is actually doing what I would expect in the first place.

EDIT:  Yep, an E28 module shows up fine on the expected path, and I can talk to that just fine via GFXterm for Linux.





So, it has to be still something else I/we need to find out that is blocking Cube programmer from being able to see the Black Pill module.  For a test, I will now connect a CMM2 and see if the Cube programmer can see that.

EDIT: Just tried plugging in a Picomite module for a quick test in upload mode, and Mint sees that just fine and treats it like a small USB flash drive as you would expect, so that's good.  Mint also assigns it /dev/ttyACM1, and I can talk to the Picomite with GFXterm for Linux also, so I think everything is working OK at the USB side of things.
Edited 2021-12-13 09:01 by Grogster
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 11:38pm 12 Dec 2021
Copy link to clipboard 
Print this post

Do you still have it showing up the way you previously posted (as Cropped images above)?

Being seen as DFU etc looked good!

John
 
     Page 1 of 4    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025