Not able to update MCU

Continuing the discussion from Tone2 Pro - Firmware v1.2 + MCU Update:

Hi,

I have tone 2 pro with 1.0 firmware and macbook pro. I strictly followed the instructions and couldn’t make the MCU update.

If I understand the log correctly automated link to the file Tone2_Pro_MCU_Firmware_210417.zip is not working. File nr. 210417 is not to be found.

Please advise how to update MCU.

Kind regards, Gregor

Since I’m a new member I can’t post the entire log because it contains more than two links?!

Here is the error log. It is constantly reporting “SWIM error 0x04”. Please advise what to do to update MCU.

Warning: automake 1.16.5 is already installed and up-to-date
To reinstall 1.16.5, run:
brew reinstall automake
Warning: mk-configure 0.38.3 is already installed and up-to-date.
To reinstall 0.38.3, run:
brew reinstall mk-configure
Warning: libtool 2.4.7 is already installed and up-to-date.
To reinstall 2.4.7, run:
brew reinstall libtool
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
brew reinstall pkg-config
Warning: wet 1.21.4 is already installed and up-to-date.
To reinstall 1.21.4, run:
brew reinstall wget
-I/usr/local/Cellar/libusb/1.0.26/include/libusb-1.0
[i] please connect your ST-Link paired with Tone Board and PRESS ANY KEY
Determine FLASH area
STLink: V2, JTAG: v39, SWIM: V7, VID: 8304, PID: 4837
SWIM error 0x04
[i] UPGRADE ERROR (255)

  • check previous error messages
  • and try to resolve it
    or submit some message to us about this issue plz!

Hello @gregor_bogataj

Your issue will be followed up soon.

Happy Holidays.

Hi Gregor_bogataj,
From your upgrade log, found that::

  • Your software was install ok
  • Your ST-Link V2 version is ok
  • You are right, the script on the web page has not been updated(will fixup this later), the update is as follows:
/bin/bash -c "$(curl -fsSL https://dl.khadas.com/products/tone2/firmware/tone2_pro/mcu/upgrade_mcu.sh)" 

I checked the script again and it has issues with libusb installation. This problem can be solved simply. This error message was not found through your log files. You may have solved it.

  • The SWIM connection seem doesn’t right. I need your help to take a picture of the detailed connection diagram for me to see. When taking the picture, be careful to take a picture of the electrical network signal to facilitate troubleshooting.

  • Another possibility is that when updating the firmware, the connection is unstable. You could try to slightly press the pin header connection with your hands to allow the electrical signals to fully contact.

My update log:

[khadas@khadass-MacBook-Air ~ % /bin/bash -c "$(curl -fsSL https://dl.khadas.com/products/tone2/firmware/tone2_pro/mcu/upgrade_mcu.sh)"
[i] Tone Board MCU upgrade (online script) - PRESS ANY KEY or Escape by Ctrl+C

/opt/homebrew/bin/brew
Warning: git 2.43.0 is already installed and up-to-date.
To reinstall 2.43.0, run:
  brew reinstall git
Warning: libusb 1.0.26 is already installed and up-to-date.
To reinstall 1.0.26, run:
  brew reinstall libusb
Warning: make 4.4.1 is already installed and up-to-date.
To reinstall 4.4.1, run:
  brew reinstall make
Warning: automake 1.16.5 is already installed and up-to-date.
To reinstall 1.16.5, run:
  brew reinstall automake
Warning: mk-configure 0.38.3 is already installed and up-to-date.
To reinstall 0.38.3, run:
  brew reinstall mk-configure
Warning: libtool 2.4.7 is already installed and up-to-date.
To reinstall 2.4.7, run:
  brew reinstall libtool
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
  brew reinstall pkg-config
Warning: wget 1.21.4 is already installed and up-to-date.
To reinstall 1.21.4, run:
  brew reinstall wget
-I/opt/homebrew/Cellar/libusb/1.0.26/include/libusb-1.0
[i] please connect your ST-Link paired with Tone Board and PRESS ANY KEY

Determine FLASH area
STLink: v2, JTAG: v24, SWIM: v4, VID: 8304, PID: 4837
Due to its file extension (or lack thereof), "tone2pro-mcu-boot-app-v1.4-221128.hex" is considered as INTEL HEX format!
8192 bytes at 0x8000... OK
Bytes written: 8192
[i] MCU Upgrade Complete!