Post Reply 
More power (literally) for the HP-41, follow-up.
08-21-2023, 06:50 PM (This post was last modified: 08-25-2023 02:50 PM by Sylvain Cote.)
Post: #46
RE: More power (literally) for the HP-41, follow-up.
Test round #2 → 41CL Flash update

Flash upgrade setup
  • plug serial cable
  • 41CL
    Code:
    MMUDIS      // disable memory management unit
    MMUCLR      // clear memory management unit configuration
    "YFNX"      // CL Extreme ROM
    PLUG1L      // map ROM image to page 8
    "YUPS"      // CL Update ROM
    PLUG1U      // map ROM image to page 9
    Code:
    TURBO50     // 50x speed up
    SERINI      // initialize serial port
    BAUD48      // set speed to 4800 baud
    MMUEN       // enable memory management unit
    CAT 2       // search for CL Update ROM image : UPDAT 4D
  • Computer
    Code:
    java -jar clupdate-1.1.0.jar --update rom_files_230725.zip /dev/tty.usbserial-5230 4800
                // HH:MM:SS --update   [fileName: rom_files_230725.zip] [portName: /dev/tty.usbserial-5230]
                // HH:MM:SS File       rom_files_230725.zip loading ... done
                // HH:MM:SS Serial     /dev/tty.usbserial-5230 opened at 4800 baud.
                // HH:MM:SS Waiting    for 41CL commands ...
  • 41CL
    Code:
    ON          // disable sleep
    CF 26       // disable beeper
    FDBVER?     // get current Flash revision : ??/??/???? (MDY)
    "*"         // scan all ROM images
    CMOPEN      // open serial port communication
    CPONLY      // do CRC compare only
    FLCHK?      // scan Flash for outdated ROM images
                // HH:MM:SS Report     ? outdated pages, out of 1024 pages, spread over ? Flash blocks, estimated update time: ??h ??m ??s
    Code:
    CDBVER?     // 07/25/2023 (MDY)    [should be equal or near to rom_files_YYMMDD.zip date value]
    "*"         // update all ROM images
    FLUPD       // do the update
    CDBEXP      // to validate that all ROM images has been updated
                // HH:MM:SS Report     0 outdated pages, out of 1024 pages, spread over 0 Flash blocks, estimated update time: 00h 00m 00s
    FDBVER?     // get current Flash revision : 07/25/2023 (MDY)
    Code:
    CMCLOSE     // close serial port communication
    CDBDEL      // delete correlated ROM image
    MMUDIS      // disable memory management unit
    MMUCLR      // clear memory management unit configuration
    OFF         // power off & reactivate sleep mode
  • unplug serial cable

Flash upgrade to 2023-07-25
Code:
CL Board  :: FDBVER?    :: CDBEXP
41CLv2    :: 09/23/2022 :: Report        7 outdated pages, out of  256 pages, spread over  5 Flash blocks, estimated update time: 00h 16m 01s
41CLv3    :: 09/23/2022 :: Report       15 outdated pages, out of  512 pages, spread over  9 Flash blocks, estimated update time: 00h 29m 33s
41CLv4    :: 09/23/2022 :: Report       15 outdated pages, out of  512 pages, spread over  9 Flash blocks, estimated update time: 00h 29m 33s
41CLv5 #1 :: 09/23/2022 :: Report       73 outdated pages, out of 1024 pages, spread over 19 Flash blocks, estimated update time: 01h 14m 47s
41CLv5 #2 :: 06/03/2023 :: Report        6 outdated pages, out of 1024 pages, spread over  4 Flash blocks, estimated update time: 00h 12m 56s

All my units has been updated and the battery is not depleted.
So I will simulate a lot of update by doing a downgrade/upgrade loop until the BAT light-up between 2023-07-25 and 2018-12-28

Flash downgrade setup
  • plug serial cable
  • 41CL
    Code:
    MMUDIS      // disable memory management unit
    MMUCLR      // clear memory management unit configuration
    "00A>830"   // 00A YFNX-4C Flash location > 830 free RAM location
    YMCPY       // copy YFNX-4C from Flash to RAM
    "062>831"   // 062 YUPS-4D Flash location > 831 free RAM location
    YMCPY       // copy YUPS-4D from Flash to RAM
    Code:
    "830-RAM"   // CL Extreme location in RAM
    PLUG1L      // map YFNX ROM image in RAM to page 8
    "831-RAM"   // CL Update location in RAM
    PLUG1U      // map YUPS ROM image in RAM to page 9
    Code:
    TURBO50     // 50x speed up
    SERINI      // initialize serial port
    BAUD48      // set speed to 4800 baud
    MMUEN       // enable memory management unit
    CAT 2       // search for "YFNX 4C" and "UPDAT 4D"
    ON          // disable sleep
    CF 26       // disable beeper
  • loop
    • Computer odd step
      Code:
      java -jar clupdate-1.1.0.jar --update rom_files_181228.zip /dev/tty.usbserial-5230 4800
                  // HH:MM:SS --update   [fileName: rom_files_181228.zip] [portName: /dev/tty.usbserial-5230]
                  // HH:MM:SS File       rom_files_181228.zip loading ... done
                  // HH:MM:SS Serial     /dev/tty.usbserial-5230 opened at 4800 baud.
                  // HH:MM:SS Waiting    for 41CL commands ...
      Computer even step
      Code:
      java -jar clupdate-1.1.0.jar --update rom_files_230725.zip /dev/tty.usbserial-5230 4800
                  // HH:MM:SS --update   [fileName: rom_files_230725.zip] [portName: /dev/tty.usbserial-5230]
                  // HH:MM:SS File       rom_files_230725.zip loading ... done
                  // HH:MM:SS Serial     /dev/tty.usbserial-5230 opened at 4800 baud.
                  // HH:MM:SS Waiting    for 41CL commands ...
    • 41CL
      Code:
      FDBVER?     // get current Flash revision : 07/25/2023 (odd) | 12/18/2018 (even)
      "*"         // scan all ROM images
      CMOPEN      // open serial port communication
      CPONLY      // do CRC compare only
      FLCHK?      // scan Flash for outdated ROM images
                  // HH:MM:SS Report     315 outdated pages, out of 1024 pages, spread over 67 Flash blocks, estimated update time: 04h 40m 59s
      Code:
      CDBVER?     // 12/18/2018 (odd) | 07/25/2023 (even)
      "*"         // update all ROM images
      FLUPD       // do the update
      CDBEXP      // to validate that all ROM images has been updated
                  // HH:MM:SS Report     0 outdated pages, out of 1024 pages, spread over 0 Flash blocks, estimated update time: 00h 00m 00s
      FDBVER?     // get current Flash revision : 12/18/2018 (odd) | 07/25/2023 (even)
      CMCLOSE     // close serial port communication
      CDBDEL      // delete correlated ROM image
  • end-loop
    Code:
    MMUDIS      // disable memory management unit
    MMUCLR      // clear memory management unit configuration
    OFF         // power off & reactivate sleep mode
  • unplug serial cable

Testing on my 41CL v5 #2 ...
Code:
  FDBVER?    :: CDBVER?    :: CDBEXP
  07/25/2023 :: 12/18/2018 ::   64 outdated pages, out of 1024 pages, spread over  24 Flash blocks, were updated before the 41CL was send crashing on the floor (no comment)

Switching to my 41CL v4
Code:
  FDBVER?    :: CDBVER?    :: CDBEXP
  07/25/2023 :: 12/18/2018 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  12/18/2018 :: 07/25/2023 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  07/25/2023 :: 12/18/2018 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  12/18/2018 :: 07/25/2023 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  07/25/2023 :: 12/18/2018 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  12/18/2018 :: 07/25/2023 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks

Switching to my 41CL v3
Code:
  FDBVER?    :: CDBVER?    :: CDBEXP
  07/25/2023 :: 12/18/2018 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  12/18/2018 :: 07/25/2023 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  07/25/2023 :: 12/18/2018 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  12/18/2018 :: 07/25/2023 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  07/25/2023 :: 12/18/2018 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks
  12/18/2018 :: 07/25/2023 ::  123 outdated pages, out of  512 pages, spread over  37 Flash blocks

Switching to my 41CL v5 #1
Code:
  FDBVER?    :: CDBVER?    :: CDBEXP
  07/25/2023 :: 12/18/2018 ::  311 outdated pages, out of 1024 pages, spread over 66 Flash blocks
... the BAT annunciator went on here, but it went off after, so I am continuing the test
  12/18/2018 :: 07/25/2023 ::  311 outdated pages, out of 1024 pages, spread over 66 Flash blocks
  07/25/2023 :: 12/18/2018 ::  311 outdated pages, out of 1024 pages, spread over 66 Flash blocks
... the BAT annunciator went on permanently here after
  12/18/2018 :: 07/25/2023 ::   31 outdated pages, out of 1024 pages, spread over 13 Flash blocks

Final results on a single charge are ...
Code:
FLCHK?
   ~50 x FLDB/CFLDB ROM images downloaded/uploaded to/from RAM 
FLUPD
  2620 x ROM images downloaded to RAM
   725 x 64KiB Flash blocks read/erased/written

edit: last update 2023-08-25 10h50 UTC-4h
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: More power (literally) for the HP-41, follow-up. - Sylvain Cote - 08-21-2023 06:50 PM



User(s) browsing this thread: 1 Guest(s)