![]() |
Forum Index : Microcontroller and PC projects : CMM2 - update firmware MacOS
Author | Message | ||||
jirsoft![]() Guru ![]() Joined: 18/09/2020 Location: Czech RepublicPosts: 533 |
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 StatesPosts: 377 |
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: CanadaPosts: 504 |
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 RepublicPosts: 533 |
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: CanadaPosts: 504 |
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 RepublicPosts: 533 |
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: CanadaPosts: 504 |
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 RepublicPosts: 533 |
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 RepublicPosts: 533 |
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 StatesPosts: 377 |
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: CanadaPosts: 504 |
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 RepublicPosts: 533 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |