![]() |
Forum Index : Microcontroller and PC projects : Updating Firmware Question
Author | Message | ||||
William Leue Guru ![]() Joined: 03/07/2020 Location: United StatesPosts: 405 |
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: AustraliaPosts: 6283 |
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 StatesPosts: 405 |
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: AustraliaPosts: 6283 |
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 StatesPosts: 405 |
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: AustraliaPosts: 1642 |
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 RepublicPosts: 533 |
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 StatesPosts: 405 |
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 KingdomPosts: 4311 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |