Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:29 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 : Updating Firmware Question

Author Message
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 08:23pm 09 Nov 2020
Copy link to clipboard 
Print this post

I want to update the firmware on my CMM2 from 5.05.05 to 5.05.06RC15. It is still necessary to change the jumper on the PCB? (I have the version with the CPU on the MOBO, no Waveshare board.)

I have a vague and possibly false memory of there being an update to the procedure that is not in the manual, but I may be wrong.

Thanks!
-Bill
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:29pm 09 Nov 2020
Copy link to clipboard 
Print this post

Syntax:
UPDATE FIRMWARE

Description:
Switch the STM32 CPU into firmware update mode.
This is the same as switching the BOOT CONFIG switch on the Waveshare CPU board to SYSTEM and allows for quick firmware updates without opening the Maximite's case.
You should cycle the power following a firmware update or if this command was accidentally used.
This will return the STM32 CPU to normal mode.
VK7JH
MMedit
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 08:40pm 09 Nov 2020
Copy link to clipboard 
Print this post

Thanks, TassyJim! I knew there was a command, I just could not remember it. And of course, it is indeed in the latest manual in the commands listing. I note, however, that this command is NOT described in the section at the end of the manual on how to update the firmware.

Oh, and the ERASE command documentation is still sadly missing in the manual.

-Bill
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:58pm 09 Nov 2020
Copy link to clipboard 
Print this post

I can't guarantee it's accuracy or being totally up-to-date.
Peter moves too quickly for me, but I do try to keep up...

https://www.c-com.com.au/mmhelp/index.htm

The pages are intended to cover all Maximite/Micromite variants so there are pages that are not relevant to the CMM2.

Jim
VK7JH
MMedit
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 09:29pm 09 Nov 2020
Copy link to clipboard 
Print this post

I successfully updated the firmware but the UPDATE_FIRMWARE command did not seem to work; the STMCubeProgrammer was unable to connect to the CMM2 via USB and the A-to-A cable.

So instead I opened the case and moved the jumper from Run to Program. I was then able to do the firmware update with no problems.

-Bill
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 03:47am 10 Nov 2020
Copy link to clipboard 
Print this post

I don't think the UPDATE FIRMWARE is explained fully in the Manual. After issuing the command you need to maintain power to the CMM2. But it's not wise to power it from a wall wart while connecting it to the PC or you may damage the PC's USB port!!!

This method works for me:

- Power the CMM2 from the PC (or USB hub) with the USB A to B cable
- Issue the UPDATE FIRMWARE command with the USB keyboard
- Replace the USB keyboard with the USB A to A cable and plug it into the PC (or hub).
- The PC will now recognise the USB A to A cable input.
- Use the STM32CubeProgrammer to program the CMM2
- Disconnect both cables to the CMM2.
- Reconnect the power and the keyboard to the CMM2 in your usual fashion.

Bill
Keep safe. Live long and prosper.
 
jirsoft

Guru

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

Hi,
isn't easier to update through A-B cable (virtual serial port)? It's a little bit slower (30 sec vs 150 sec), but you don't need to change cable and once in a while are those lost 2 minutes acceptable...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 10:49am 10 Nov 2020
Copy link to clipboard 
Print this post

Thanks for the detailed instructions, Bill! Yes, I was being stupid: I should have realized that power has to be applied continuously to the CMM2 for the UPDATE FIRMWARE command to work.

Jiri, I have never seen any instrucions on how to do a firmware update using the
A-B cable, so that's why I never tried it.

-Bill
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:56am 10 Nov 2020
Copy link to clipboard 
Print this post

  William Leue said  Thanks for the detailed instructions, Bill! Yes, I was being stupid: I should have realized that power has to be applied continuously to the CMM2 for the UPDATE FIRMWARE command to work.

Jiri, I have never seen any instrucions on how to do a firmware update using the
A-B cable, so that's why I never tried it.

-Bill


The A-B method is documented in the manual as the "Alternative Method" (p123 of the version I've got) and is also my preferred solution as it involves no plugging/unplugging of cables since the A-B is already connected from the CMM2 to the PC (for serial comms). Like Jiri says it's a bit slower, but I'm always happy for another excuse to make a cup of tea.

Regards,

Tom
Edited 2020-11-10 20:57 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
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