Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:57 03 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 : CMM2 - update firmware MacOS

Author Message
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 03:55pm 04 Nov 2020
Copy link to clipboard 
Print this post

Hi,
did somebody of you have luck to update firmware of CMM2 on MacOS? I know the GUI version of STM32CubeProgrammer has issues, but it should be possible with CLI. I'm able to run the SW, but I have no experience with it (until now I'm updating firmware on Win8 im VMware, but I'm looking for easier method).
If somebody already tried it and was successful, what settings should I use?

Thanks.
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 12:58am 05 Nov 2020
Copy link to clipboard 
Print this post

  jirsoft said  Hi,
did somebody of you have luck to update firmware of CMM2 on MacOS? I know the GUI version of STM32CubeProgrammer has issues, but it should be possible with CLI. I'm able to run the SW, but I have no experience with it (until now I'm updating firmware on Win8 im VMware, but I'm looking for easier method).
If somebody already tried it and was successful, what settings should I use?

Thanks.



See this thread:

Update firmware on Mac

This is now my preferred method for updating the firmware on CMM2.  It only takes maybe 30 seconds for the entire operation.  I keep the commands in a text document and then just a quick edit-copy-paste into the terminal window and done.
Edited 2020-11-05 11:28 by Sasquatch
-Carl
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 504
Posted: 05:55am 05 Nov 2020
Copy link to clipboard 
Print this post

I have done the update from a Linux machine. What I'm doing is running the STM32CubeProgrammer as a super user.
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 12:56pm 05 Nov 2020
Copy link to clipboard 
Print this post

  Sasquatch said  
See this thread:

Update firmware on Mac

This is now my preferred method for updating the firmware on CMM2.  It only takes maybe 30 seconds for the entire operation.  I keep the commands in a text document and then just a quick edit-copy-paste into the terminal window and done.


Thanks a lot! I will try it today...

PS: I have already done quick&dirty app for compile C function, make CSUB of it and either SAVE or send through serial to CMM2, so I will just extend it for firmware update function. If someone wants the app, I can store it somewhere (Xojo, so Macos, but I can compile it for Linux or Windows). The paths to ggc/ld (and now STM32_Programmer_CLI) can be modified...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 504
Posted: 05:02am 06 Nov 2020
Copy link to clipboard 
Print this post

  jirsoft said  
  Sasquatch said  
See this thread:

Update firmware on Mac

This is now my preferred method for updating the firmware on CMM2.  It only takes maybe 30 seconds for the entire operation.  I keep the commands in a text document and then just a quick edit-copy-paste into the terminal window and done.


Thanks a lot! I will try it today...

PS: I have already done quick&dirty app for compile C function, make CSUB of it and either SAVE or send through serial to CMM2, so I will just extend it for firmware update function. If someone wants the app, I can store it somewhere (Xojo, so Macos, but I can compile it for Linux or Windows). The paths to ggc/ld (and now STM32_Programmer_CLI) can be modified...


Hey Jiri

I was thinking of converting the basic program that is used for creating the CSUB from the compiled C code to Python. Python is a good language to do it because it supported for all platforms and it is not necessary to compile the code.

Maybe I can do it from your C code. Could you share your source code through Github?
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 10:02am 06 Nov 2020
Copy link to clipboard 
Print this post

Hi Leo,
I can do it, it's actually BASIC code (XOJO is RealBasic child), but I have taken it from Peter's MMBASIC code (it's in every update). The reason, why I did it is, that I can drop C file on app, look for errors in the windows and when is OK, it created CSUB, that can be directly sent to CMM2 (I simply point cursor im CMM2 EDITOR and receive CSUB).

I put it on Github this weekend inclusive compiled code...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 504
Posted: 07:44pm 06 Nov 2020
Copy link to clipboard 
Print this post

I'm using Linux and to convert the binary file to CSUB using the MMBasic code is not straightforward. Any other solution will help a lot
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 03:04pm 07 Nov 2020
Copy link to clipboard 
Print this post

Hi Leo,
I have put the source and binaries for MacOS and Linux into Github ELF2CSUB. The app is also able to update firmware, but TESTED JUST IN MACOS!!!. You need to have installed arm-none-eabi-gcc and arm-none-eabi-ld from ARM for compiling of the .c source and STM32_Programmer_CLI from ST for firmware update (paths are configurable in CONFIG).
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 03:11pm 07 Nov 2020
Copy link to clipboard 
Print this post

  Sasquatch said  
  jirsoft said  Hi,
did somebody of you have luck to update firmware of CMM2 on MacOS? I know the GUI version of STM32CubeProgrammer has issues, but it should be possible with CLI. I'm able to run the SW, but I have no experience with it (until now I'm updating firmware on Win8 im VMware, but I'm looking for easier method).
If somebody already tried it and was successful, what settings should I use?

Thanks.



See this thread:

Update firmware on Mac

This is now my preferred method for updating the firmware on CMM2.  It only takes maybe 30 seconds for the entire operation.  I keep the commands in a text document and then just a quick edit-copy-paste into the terminal window and done.


Hi Carl,
thanks a lot for your help, I included your methods in my CMM2 app and it's working perfectly. I'm using the virtual serial port and it takes about 150 sec to update...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 04:18pm 07 Nov 2020
Copy link to clipboard 
Print this post

  Quote  
Hi Carl,
thanks a lot for your help, I included your methods in my CMM2 app and it's working perfectly. I'm using the virtual serial port and it takes about 150 sec to update...


You're very welcome!  I'll check out your CMM2 app when I get a bit of time.  Using a USB A-A cable with a USB2 port on my MacBook Pro it takes about 11 seconds to update the firmware and then another ~15 seconds to verify.
Edited 2020-11-08 02:19 by Sasquatch
-Carl
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 504
Posted: 05:04pm 07 Nov 2020
Copy link to clipboard 
Print this post

I've tried to update my CMM2 via USB port but the computer even turns on. I'll try to buy a new USB A-A cable.
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 05:12pm 07 Nov 2020
Copy link to clipboard 
Print this post

  Sasquatch said  
  Quote  
Hi Carl,
thanks a lot for your help, I included your methods in my CMM2 app and it's working perfectly. I'm using the virtual serial port and it takes about 150 sec to update...


You're very welcome!  I'll check out your CMM2 app when I get a bit of time.  Using a USB A-A cable with a USB2 port on my MacBook Pro it takes about 11 seconds to update the firmware and then another ~15 seconds to verify.


For me is an advantage to use virtual serial, because I have it still connected to iMac for CSUB development. So, the speed is no so big issue for me...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025