Page 1 of 3

Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Sun Jun 16, 2019 7:24 am
by StatsDoctor
Hello All,

I just received my DM15L. I am very pleased with this calculator.

I am seeking advice from other DM15L owners who also use a Mac computer. I am trying to update the firmware for the first time. I have closely followed the instructions on the SwissMicros website to update this. Please note that this is the first time that I have ever used Terminal (even though I have been using Macs for 10 years), MacPort, and the recommended bridge drivers. The drivers install smoothly (as does XCode), as does MacPort. I have the latest versions of these. I then run sudo port self update (this runs fine) and sudo port upgrade outdated (this also runs fine). When I run sudo port install lpc21isp, I receive the following error message:

Error: Failed to build lpc21isp: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port lpc21isp failed

Do you have any advice on how to resolve this? I have not attempted to connect the DM15L to my Mac since that requires the lpc21isp port to be installed.

I have Mojave 10.14.5 installed on the Mac.

Upgrading the firmware via the Mac appears to be my only option since I don’t use Windows or Linux.

I have another question related to the firmware update. Do the DM15Ls ship with the M1B variant firmware? Is there any harm in downloading the M1B variant firmware, under the assumption that more memory is better?

Thanks in advance for any suggestions that you can provide.

Best,

Bob O.

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Sun Jun 16, 2019 12:52 pm
by pcscote
I am the one who gave SwissMicros the macOS update procedure on their web page that you followed.

To diagnose your issue, I need the content of that log file, from the command line, type:

Code: Select all

cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/main.log [return]
then copy/paste the text in the terminal and post it here.

Sylvain

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Sun Jun 16, 2019 2:19 pm
by cdmackay
As an aside, if you're already using HomeBrew, note that it also has lpc21isp. That's what I'm using, on Mojave, and it's working fine for me. If you're starting from scratch, you could use either HomeBrew or MacPorts, of course.

Code: Select all

mbp2018 $ brew info lpc21isp
lpc21isp: stable 1.97 (bottled)
In-circuit programming (ISP) tool for several NXP microcontrollers
https://lpc21isp.sourceforge.io/
/usr/local/Cellar/lpc21isp/1.97 (4 files, 56.2KB) *
  Poured from bottle on 2019-02-22 at 19:36:13
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/lpc21isp.rb

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Sun Jun 16, 2019 10:20 pm
by StatsDoctor
Sylvain,

Thanks for offering to diagnose the issue. Below is content of the log file. Note that the error appears to start with the following:

:info:build ld: library not found for -lgcc_s.10.5
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [lpc21isp] Error 1

In the process of installing XCode and MacPorts, did I forget (or not know) to type in a specific command line?

The full contents of the log file are as follows.

version:1
:debug:sysinfo macOS 10.14 (darwin/18.6.0) arch i386
:debug:sysinfo MacPorts 2.5.4
:debug:sysinfo Xcode 10.2.1
:debug:sysinfo SDK 10.14
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.14
:debug:main lpc21isp has no conflicts
:debug:main Executing org.macports.main (lpc21isp)
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Skipping completed org.macports.archivefetch (lpc21isp)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (lpc21isp)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (lpc21isp)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (lpc21isp)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (lpc21isp)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (lpc21isp)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sun Jun 16 14:53:31 CDT 2019
:notice:build ---> Building lpc21isp
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build system: make -C /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/work/lpc21isp_197 clean
:info:build rm -f adprog.o lpcprog.o lpcterm.o lpc21isp
:debug:build Executing org.macports.build (lpc21isp)
:debug:build Environment:
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.14'
:info:build Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/work/lpc21isp_197" && /usr/bin/make -j12 -w all CFLAGS="-mmacosx-version-min=10.5"
:debug:build system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/work/lpc21isp_197" && /usr/bin/make -j12 -w all CFLAGS="-mmacosx-version-min=10.5"
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/work/lpc21isp_197'
:info:build /usr/bin/clang -mmacosx-version-min=10.5 -c -o adprog.o adprog.c
:info:build /usr/bin/clang -mmacosx-version-min=10.5 -c -o lpcprog.o lpcprog.c
:info:build /usr/bin/clang -mmacosx-version-min=10.5 -c -o lpcterm.o lpcterm.c
:info:build /usr/bin/clang -mmacosx-version-min=10.5 -o lpc21isp lpc21isp.c adprog.o lpcprog.o lpcterm.o
:info:build ld: library not found for -lgcc_s.10.5
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [lpc21isp] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/work/lpc21isp_197'
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/work/lpc21isp_197" && /usr/bin/make -j12 -w all CFLAGS="-mmacosx-version-min=10.5"
:info:build Exit code: 2
:error:build Failed to build lpc21isp: command execution failed
:debug:build Error code: CHILDSTATUS 1390 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_lpc21isp/lpc21isp/main.log for details.

I look forward to hearing back from you.

Thanks,

Bob

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Sun Jun 16, 2019 10:22 pm
by StatsDoctor
cdmackay:

I have been trying to use MacPorts (I installed XCode and then MacPorts). If we are not able to get things to work using MacPorts, I am certainly willing to try using HomeBrew, but as of now, I don’t have this installed.

After doing what you noted, did you then type in the suggested command line (on the SwissMicros website) beginning with sudo lpc21isp -control -controlinv -hex? Or does HomeBrew have a separate set of commands?

Thanks,

Bob

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Sun Jun 16, 2019 10:43 pm
by cdmackay
StatsDoctor wrote:
Sun Jun 16, 2019 10:22 pm
cdmackay:

I have been trying to use MacPorts (I installed XCode and then MacPorts). If we are not able to get things to work using MacPorts, I am certainly willing to try using HomeBrew, but as of now, I don’t have this installed.

After doing what you noted, did you then type in the suggested command line (on the SwissMicros website) beginning with sudo lpc21isp -control -controlinv -hex? Or does HomeBrew have a separate set of commands?
hi Bob, you're probably better off listening to Sylvain as to how to get it working, as you're already using MacPorts (well, you are now). My comment was more aimed at existing HomeBrew users. I've used Ports in the past, but currently only have Brew on my Mac, so didn't want to install a new system just for lpc21isp, so was happy to find it also in Brew.

And yes, once you have lpc21isp installed, the commands to use it are the same: it's the same pkg, just a different way of installing it.

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Mon Jun 17, 2019 12:35 am
by StatsDoctor
Thanks, cdmackay.

Do you have any thoughts on my other questions, which do not concern installing lpc21isp? These are as follows.

Do the DM15Ls ship with the M1B variant firmware? Is there any harm in downloading the M1B variant firmware, under the assumption that more memory is better?

Thanks again,

Bob

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Mon Jun 17, 2019 12:51 am
by rprosperi
StatsDoctor wrote:
Mon Jun 17, 2019 12:35 am
Thanks, cdmackay.

Do you have any thoughts on my other questions, which do not concern installing lpc21isp? These are as follows.

Do the DM15Ls ship with the M1B variant firmware? Is there any harm in downloading the M1B variant firmware, under the assumption that more memory is better?

Thanks again,

Bob
I believe the DM15 ships with the 'normal' (original HP-15C) memory configuration, since it is nominally a clone; but go ahead and update it to the M1B flavor. There is no downside, only advantages, due to the extra RAM.

You can check the configuration of your machine by holding down the E key [1/x], then press and release the [ON] key.

There are several commands like this described here:

https://www.swissmicros.com/instructions.php

Also, I can't help but note that it's a shame that these easy-to-use Macs have such trouble. :x As a Windows user, I had trouble too; I had to click on the setup program. ;)

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Mon Jun 17, 2019 1:00 am
by ctrclckws
Pretty sure the DM15's ship with the M1B firmware version. It may not be the most current, depending on assembly and release date.

You can check the firmware version of the voyager types by

Calculator off
Press and hold 9, press the on key.
The firmware version will appear on the display.
Note that this also changes the CPU frequency.

The 9 key is the 8 key on the DM41's.
See this page:

https://www.swissmicros.com/instructions.php

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Mon Jun 17, 2019 1:05 am
by StatsDoctor
Thanks for your response, Bob. This answer those two questions.

I checked the configuration of my machine as you described. It actually shipped with the M1B configuration. It has version 28 installed (I think I checked this before), which is why I am trying to upgrade to version 29.

Bob