Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:15 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 : CMM2 firmware - advice

Author Message
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 420
Posted: 09:41am 01 Sep 2020
Copy link to clipboard 
Print this post

Good morning all.

Upfront - a huge thanks on behalf of the community for all the work that takes place in maintaining / bug squashing and generally improving the platform.  

Diolch (Welsh for thanks).

My CMM2 is used as a prototype for use in education settings - ie to train teachers how to use hardware like this.  As such, they are largely uninitiated (and often reluctant) users of technology like this.

As firmware is updated, I need the simplest possible process to update the CMM2 -- via a Windows platform.   For the question (as I know much of this is in forum posts) --- what is the single, simplest way of updating the firmware -- and one that is "least" likely to go wrong?

Most users will never have tinkered with bioses, flashing and rom files etc -- so I will need to write a guide for them -- but need to know where is best to start.

Any pointers greatly received.

Bendigedig work  (Welsh for wonderful)

Cheers
Nim
Entropy is not what it used to be
 
mclout999
Guru

Joined: 05/07/2020
Location: United States
Posts: 490
Posted: 10:40am 01 Sep 2020
Copy link to clipboard 
Print this post

The best way i5 in the manual and is already well documented and easy as hell.  Get the STM32CubeProgrammer and preferably the A to A USB cable and use that method from the manual.  The reason is that the A to A method is very fast.  Look at the end of the manual it is all illustrated and very clear.
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 420
Posted: 10:46am 01 Sep 2020
Copy link to clipboard 
Print this post

Thank you.

I think my confusion stemmed from the "STM32CubeProgrammer"  --> I thought this was a piece of hardware, not software.

RTFM (carefully) in my case.

Cheers
Entropy is not what it used to be
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 04:59pm 01 Sep 2020
Copy link to clipboard 
Print this post

Hello Nimue,

It turns out that the Windows installation of STM32CubeProgrammer includes a command line interface version called STm32_programmer_cli.  You can set up a batch file or script to automate most of the process.

For example:

Stm32_programmer_cli -c port=USB1 -w MMBasic5.05.05.bin 0x08000000 -v


will program the binary file into the CMM2 and verify that the information was successfully loaded.  Note that you will first need to get the CPU into "System" mode by setting the jumper/switch or using the UPDATE FIRMWARE command to place the CMM2 into update mode.

It should be possible to put everything needed on a USB drive such that the process can be carried out on multiple systems from a portable device.  I have tested the CLI version of the programmer but not with the software on a USB drive yet.
-Carl
 
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