Post Reply 
DM42 Firmware Update on a Mac
06-11-2018, 03:56 PM
Post: #1
DM42 Firmware Update on a Mac
Hi guys,
I have release 3.1 and just saw that the newest version is 3.7.
Has anyone of you run the update on a Mac or should I borrow a Windows/Linux machine
to do this. I am barely going through the manuals but no mention of Macs.

Thanks in advance.

Nomad VeHr

HP-27, HP-67 ( both legacy), Casio FX880P, HP-35S, WP34S, DM42, HP Prime.
Find all posts by this user
Quote this message in a reply
06-11-2018, 05:11 PM (This post was last modified: 06-11-2018 05:13 PM by Thomas_Sch.)
Post: #2
RE: DM42 Firmware Update on a Mac
Please have a look at https://forum.swissmicros.com/viewtopic....917a#p8448.
Beginning with release 3.7 the procedure changed, see https://github.com/swissmicros/DM42PGM/b.../README.md

forum.swissmicros.com is recommended regarding questions about SwissMicros products.

Release 3.7 is first announced here: https://forum.swissmicros.com/viewtopic....t=20#p8372 (and on the following pages)
Find all posts by this user
Quote this message in a reply
06-11-2018, 08:36 PM
Post: #3
RE: DM42 Firmware Update on a Mac
In addition to what Thomas_Sch wrote above, it may be easier for you to upgrade to V3.5 first since it is all in one piece. Then further upgrades can be done by the FAT method. Actually, there is no real benefit in upgrading from V3.5 to V3.7 if all you want to do is use the calculator, as there are no bug fixes between the V3.5 and V3.7, just organisational changes.

Since installing dfu-util for a one time use may be a bit of a faff, it may be easier to find a friend running Windows 7 who is willing to help you update the firmware. (There are some problems with drivers when doing this on Windows 10. There are workarounds that leave Windows 10 in a slightly compromised state, so it would be unfair to borrow a friend's PC for this task.)
Find all posts by this user
Quote this message in a reply
06-11-2018, 09:27 PM
Post: #4
RE: DM42 Firmware Update on a Mac
I have actually found the upgrade path on the Mac to be easier than on the PC running Windows 10, due to the Windows 10 problems ijabbot mentions. The instructions are pretty clear, though --- follow them exactly and you should have no problems.
Find all posts by this user
Quote this message in a reply
06-13-2018, 12:32 PM
Post: #5
RE: DM42 Firmware Update on a Mac
(06-11-2018 08:36 PM)ijabbott Wrote:  In addition to what Thomas_Sch wrote above, it may be easier for you to upgrade to V3.5 first since it is all in one piece. Then further upgrades can be done by the FAT method. Actually, there is no real benefit in upgrading from V3.5 to V3.7 if all you want to do is use the calculator, as there are no bug fixes between the V3.5 and V3.7, just organisational changes.

Since installing dfu-util for a one time use may be a bit of a faff, it may be easier to find a friend running Windows 7 who is willing to help you update the firmware. (There are some problems with drivers when doing this on Windows 10. There are workarounds that leave Windows 10 in a slightly compromised state, so it would be unfair to borrow a friend's PC for this task.)

Installing dfu-util is easy if you already use Homebrew or MacPorts. (The SwissMicros documentation doesn't mention MacPorts, if I remember correctly, but since I use MacPorts myself and don't like Homebrew, I tried installing dfu-util with MacPorts; it installed a slightly older version than the one Homebrew installs, but it works fine for me.)

But yes, install 3.5 and from then on you can install from FAT, which doesn't require anything nonstandard on the Mac or PC side, since mounting USB disks is something they can all do out of the box.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-13-2018, 03:17 PM (This post was last modified: 06-13-2018 03:20 PM by NomadVehr.)
Post: #6
RE: DM42 Firmware Update on a Mac
Thanks Thomas and ljabbott!

I´m no power user myself but I will look onto these MacPorts thing. One of my friends lent me a Win 10 machine which is rather clunky, but when I tried installing the unsigned driver, it came with a message saying basically that the system policy was blocking installing unsigned drivers. I tried several workarounds after researching, but unsccesfully so far.

Since you mention about your success with MacPorts, I will try a crack at it.

Regards,

Nomad VeHr

HP-27, HP-67 ( both legacy), Casio FX880P, HP-35S, WP34S, DM42, HP Prime.
Find all posts by this user
Quote this message in a reply
06-25-2018, 07:21 PM
Post: #7
RE: DM42 Firmware Update on a Mac
(06-11-2018 09:27 PM)KF6GPE Wrote:  I have actually found the upgrade path on the Mac to be easier than on the PC running Windows 10 ...

Same experience here. Worked flawlessly.
Find all posts by this user
Quote this message in a reply
06-30-2018, 11:13 AM
Post: #8
RE: DM42 Firmware Update on a Mac
Hi guys,

I did install xcode and macports on my Mac, but now I'm a bit confused with all the instructions out there.
Can you provide me simplified instructions on how to update using the DM tool?

I am running MacOS High Sierra and downloaded the dm tool file for 64 bit Linux.

Thanks in advance.

Nomad VeHr

HP-27, HP-67 ( both legacy), Casio FX880P, HP-35S, WP34S, DM42, HP Prime.
Find all posts by this user
Quote this message in a reply
06-30-2018, 01:09 PM
Post: #9
RE: DM42 Firmware Update on a Mac
(06-30-2018 11:13 AM)NomadVehr Wrote:  I am running MacOS High Sierra and downloaded the dm tool file for 64 bit Linux.

? I think you need to use dfu-util because dm_tool hasn't been ported to OS X.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
06-30-2018, 01:43 PM (This post was last modified: 06-30-2018 10:55 PM by Sylvain Cote.)
Post: #10
RE: DM42 Firmware Update on a Mac

  1. start a terminal/console/command-line session
  2. type: cd "where_your_DM42_files_are_located [RETURN]
  3. type: sudo port selfupdate [RETURN]
  4. type: sudo port upgrade outdated [RETURN]
  5. type: sudo port install lsusb [RETURN] (not needed here, but a nice USB tool to have)
  6. type: sudo port install dfu-util [RETURN]
  7. make sure your DM42 is not connected to the USB port
  8. type: dfu-util --list [RETURN]
  9. make a copy of the devices listed. This is my output:
    Code:
    dfu-util 0.9
    ...
    Deducing device DFU version from functional descriptor length
    Found Runtime: [05ac:8218] ver=0042, devnum=7, cfg=1, intf=3, path="250-1.1.3", alt=0, name="UNKNOWN", serial="UNKNOWN"
  10. connect your DM42 to the USB port
  11. switch the calculator to bootloader mode, see Bootloader mode activation
  12. type: dfu-util --list [RETURN]
  13. you should see more devices listed. This is my output:
    Code:
    dfu-util 0.9
    ...
    Deducing device DFU version from functional descriptor length
    Found Runtime: [05ac:8218] ver=0042, devnum=7, cfg=1, intf=3, path="250-1.1.3", alt=0, name="UNKNOWN", serial="UNKNOWN"
    Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="253-1.3.1", alt=2, name="@OTP Memory /0x1FFF7000/01*0001Ke", serial="207732A34834"
    Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="253-1.3.1", alt=1, name="@Option Bytes  /0x1FFF7800/01*040 e/0x1FFFF800/01*040 e", serial="207732A34834"
    Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="253-1.3.1", alt=0, name="@Internal Flash  /0x08000000/512*0002Kg", serial="207732A34834"
  14. my DM42 is already upgraded to the latest firmware, your output may be a little bit different.
  15. there is a USB connector spacing issue with the DM42, if you dot see more devices, play with your USB cable connected to the calculator or use another USB cable.
  16. after that you just need to follow the DM42 User Manual FW Update Using dfu-util instructions

edit 1: added the forgotten boot loader step
edit 2: corrected missing port instruction for step 5 & 6, thank you Thomas
Find all posts by this user
Quote this message in a reply
06-30-2018, 07:26 PM (This post was last modified: 06-30-2018 07:30 PM by Thomas Okken.)
Post: #11
RE: DM42 Firmware Update on a Mac
(06-30-2018 01:43 PM)Sylvain Cote Wrote:  5. type: sudo install lsusb [RETURN] (not needed here, but a nice USB tool to have)
6. type: sudo install dfu-util [RETURN]

Shouldn't that be sudo port install instead of sudo install?
Visit this user's website Find all posts by this user
Quote this message in a reply
06-30-2018, 10:52 PM
Post: #12
RE: DM42 Firmware Update on a Mac
(06-30-2018 07:26 PM)Thomas Okken Wrote:  
(06-30-2018 01:43 PM)Sylvain Cote Wrote:  5. type: sudo install lsusb [RETURN] (not needed here, but a nice USB tool to have)
6. type: sudo install dfu-util [RETURN]

Shouldn't that be sudo port install instead of sudo install?

Oups! corrected, thanks! Smile
Find all posts by this user
Quote this message in a reply
07-10-2018, 03:46 PM
Post: #13
RE: DM42 Firmware Update on a Mac
OK Got to step 9
This is what I got:
Deducing device DFU version from functional descriptor length
Found Runtime: [05ac:821f] ver=0154, devnum=7, cfg=1, intf=3, path="250-1.1.3", alt=0, name="UNKNOWN", serial="UNKNOWN"

This was the result of flashing

dfu-util -D DM42_flash_3.5.bin -d 0483:df11 -a "@Internal Flash /0x08000000/512*0002Kg" -s 0x8000000
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08000000, size = 899608
Download [=========================] 100% 899608 bytes
Download done.
File downloaded successfully

And after reset just updated to version 3.5. Thank you very much guys!!!!
Sorry I was a bit slow to get back to you, WC 2018 has been taking over me these days.
I´m actually cheering for my father´s homeland so Ajmo Vatreni!!!

Thanks again!

Nomad VeHr

HP-27, HP-67 ( both legacy), Casio FX880P, HP-35S, WP34S, DM42, HP Prime.
Find all posts by this user
Quote this message in a reply
07-10-2018, 05:20 PM
Post: #14
RE: DM42 Firmware Update on a Mac
(07-10-2018 03:46 PM)NomadVehr Wrote:  OK Got to step 9
This is what I got:

... snip ...

Quote:Downloading to address = 0x08000000, size = 899608
Download [=========================] 100% 899608 bytes
Download done.
File downloaded successfully

And after reset just updated to version 3.5. Thank you very much guys!!!!

Hopefully that will be the final time you need dfu-util as any further updates can be done by flashing from the calculator menus (once you've copied the files onto the calculator's USB storage device).

Quote:Sorry I was a bit slow to get back to you, WC 2018 has been taking over me these days.
I´m actually cheering for my father´s homeland so Ajmo Vatreni!!!
Thanks again!

Come on England! Smile

— Ian Abbott
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 34C, 1 Guest(s)