background image

DM41X User Manual

v1.01, Jan 2020

Copyright © 2016-2020 SwissMicros GmbH

Summary of Contents for DM41X

Page 1: ...DM41X User Manual v1 01 Jan 2020 Copyright 2016 2020 SwissMicros GmbH ...

Page 2: ...n 5 3 6 3 Added TURBO0 and TURB50 routines in ROM2 5 3 6 4 Extensions to the ED function ASCII file editor 5 3 6 5 Additional Functions 5 4 Modules 6 4 1 Quick Module Load 6 4 2 Plug in Printer Module 7 4 3 Supported Module formats 7 4 4 Flash Module Area 7 4 4 1 Quick Restore 8 4 5 Activating Modules plug in 8 4 5 1 Troubleshooting 9 4 6 Internals 9 4 6 1 Module Loader 9 4 6 2 RAM pages 11 5 Prog...

Page 3: ...et to DMCP menu 17 6 5 5 Format FAT Disk 17 6 5 6 FAT Disk Media Test 17 6 5 7 Power OFF mode 17 6 5 8 Self Test 18 7 Firmware Update 18 7 1 Quick Update Guide FAT disk update 19 7 2 Bootloader mode activation 19 7 3 FW Update Using dm_tool 19 7 3 1 Prerequisites for Windows 20 7 3 2 Prerequisites for Linux 20 7 3 3 Launching dm_tool 20 7 4 FW Update Using dfu util 21 7 5 DMCP System Menu 23 7 5 1...

Page 4: ...ule which is by default bundled in firmware Note that Thermal Printer module has to be plugged in first See Module Plug in for more information 2 3 Internal FAT disk The calculator has 6MB of internal flash storage formatted as a FAT filesystem that is used for loading saving programs and for backing up calculator state It is accessible as USB disk when activated via the menu File Activate USB Dis...

Page 5: ...in DM41X help that can be activated from CSTM menu MODS Default directory for module files OFFIMG Bitmap files from this directory are displayed when the calculator is turned off See OFF Images chapter for more details PROG Raw files with programs are loaded saved from to this directory SCREENS Screenshots of calculator LCD are saved into this directory See LCD Screenshots for more details STATE C...

Page 6: ...D Screenshots Hold SHIFT and press DISP to get a screenshot You will find a bmp file named according to the current time and date in the SCREENS folder of the FAT drive 3 4 OFF Images The LCD display used in DM41X calculator behaves in similar way as e ink displays and contents of the LCD is visible for a long time after the calculator is turned OFF 3 ...

Page 7: ... clock frequency correction 1 Calculate correction factor C which best matches required ppm correction P C 2 20 P 10 6 P resulting value C has to be integer and 511 C 512 2 Create file rtccalib cfg in root directory of calculator FAT disk and write value C there 3 Once the RTC correction is active the ppm value is written in Setting menu at the end of Set Time line It is possible to use approximat...

Page 8: ...ild 1 8t02 yet The header function EXT_FCN_2X is stealth for CRT a curtain finder tool To execute it use XROM 25 00 or assign to any key One additional function at the end of the CXX_XT_FCN section after the X NN functions X I Y Exchanges the contents of IND X and IND Y One additional function in the CXX TIME group plus a new Section after the TIME functions are listed labeled DM 41X containing 17...

Page 9: ...r Data etc Stack lifts if CPU F11 is set LKAOFF Turns Local KA off i e those assigned to the two top rows LKAON Turns Local KA back on RENMFL Renames an X Mem file Alpha contains OLDNAME NEWNAME RETPFL Re types an X Mem file X has the new type value 1 to 15 SLOW Sets SLOW mode for compatibility with legacyModules WORKFL Appends the name of the current Working X Mem file to ALPHA 4 Modules Integral...

Page 10: ...ules screen 6 Press ENTER to accept Active Modules list Now the module should be active 4 2 Plug in Printer Module This is quick step by step reference how to activate printer module Steps 1 Navigate to SETUP Module Active Modules 2 Press Plug 3 Select Thermal Printer and press Add or ENTER Thermal Printer module should be in Active Modules list now 4 Press ENTER to accept new Active Modules list ...

Page 11: ...filenames of required module files per line Navigate to menu SETUP Module Restore FLASH from LOADMOD TXT to load listed modules in one step Example contents of loadmod txt file MODS 41Z_BS_2X2 mod MODS Advantage mod MODS LIBRARY4 mod MODS SM_OSX_BS4X_P6 mod MODS WARP_BS3 mod MODS HEPAX_4H mod 4 5 Activating Modules plug in Here Activating module means to do an action which corresponds to module pl...

Page 12: ...le Loader section for details 4 6 Internals 4 6 1 Module Loader This section describes procedure for ROM address assignment Each time module is plugged or unplugged Module Loader assigns locations of ROMs to active modules For each step number below are all active modules processed in order specified in Active Modules screen Pass 0 ROMs assigned in mod files to fixed pages go exactly there Pass 1 ...

Page 13: ... R 3 6 0 4 3 HEPAX DISM 0 3 WARP_BS3 mod pg 8 0 4 HEPAX_4H mod pg a 1 0 SM_NUT CXX mod pg 0 1 1 LIBRARY4 mod pg ff 1 2 SM_OSX_BS4X_P6 mod pg ff 1 3 WARP_BS3 mod pg 8 F PG R0 8 R 0 8 1 1 4 WARP CORE R 1 8 1 2 4 D2C BANK2 R 2 8 1 3 4 D2C BANK3 1 4 HEPAX_4H mod pg a F PG R0 a R 0 a 1 1 5 HEPAX 4H R 1 a 1 2 5 HEPAX_BK2 R 2 a 1 3 5 HEPAX 4H R 3 a 1 4 5 HEPAX_BK4 RAM 4 a WP 0 RAM 5 b WP 0 2 0 SM_NUT CXX...

Page 14: ...that RAM doesn t support banks which is fine for HEPAX support RAM pages are available for all pages 8 F avoiding allocation in runtime and possible problems during load RAM pages are erased only after calculator RESET Otherwise the contents is preserved during all plug unplug s of modules and always remains at the same page 5 Program Decoder Encoder There is state file decoder encoder available a...

Page 15: ...menu Main Setup menu could be entered by pressing SHIFT SETUP From there other sub menus could be entered or about screen displayed 1 File menu 2 Module menu 3 Settings menu 4 System menu 5 About Displays About screen 6 2 File menu 6 2 1 Load DM41 State File Used for loading the d41 state files By default from the STATE directory of the FAT disk Note that this loads only calculator memory and does...

Page 16: ...extended memory command Only this reads from FAT disk instead of extended memory To load program file Select the program to load using the and keys ENTER to load the selected state file The program is loaded into calculator memory 6 2 4 Save RAW Program Used for saving program to a raw file to FAT disk By default to the PROG directory of the FAT disk This is functional equivalent of SAVEP extended...

Page 17: ...You can end USB disk mode by pressing EXIT key on the calculator but be sure all data are flushed to disk first The last two points Eject device and Press EXIT key on calculator if it doesn t end automatically are important to avoid unsaved data and possible FAT disk corruption 6 2 6 Show Disk Info Displays disk status and disk block info 6 3 Module menu 6 3 1 Active Modules Figure 5 Active Module...

Page 18: ...enu items Imprt Import Module Opens file selection dialog in MODS directory which is default directory for mod files Select module file and press ENTER to import it into Flash Module Area Mod Module Info Displays information about selected module ROMs Module Page Info Technical information about page assignment of currently loaded modules Flash Module Memory Flash Area Info Information about whole...

Page 19: ...s stored in the calculator state file 6 4 4 Slow Auto repeat Selecting this menu item toggles the Slow Auto repeat flag When the Slow Auto repeat flag is active auto repeat delays are prolonged Note that this value is stored in the calculator state file 6 5 System menu 6 5 1 Flash firmware from FAT Starts flashing of new firmware if the firmware file is stored in root directory of FAT disk This is...

Page 20: ...locks Disk is formatted starting from first good block after the check All data is erased from disk 6 5 7 Power OFF mode This item is purely for power OFF testing purposes to avoid time consuming switching between firmwares It is in no way mentioned to be changed by users Mode 0 means no deep sleep for QSPI giving approx 12uA sleep current Mode 1 corresponds to pre 3 9 DMCP behavior Mode 2 corresp...

Page 21: ...rupted Then other method of update based on internal CPU flashing routine should be used This method requires the calc to be switched in so called Bootloader mode Once activated the internal bootloader exposes standard DFU interface and can be programed by any DFU programming software with limitation that firmware is plain binary file not file in general dfu format so the programming software has ...

Page 22: ...e and asks for update You can confirm it immediately or press EXIT key and activate flashing process later using Flash firmware from FAT either from DM41X program SETUP System or directly from DMCP System menu Enter System Menu 6 Once finished the calculator resets and should restart to updated DM41X 7 2 Bootloader mode activation Bootloader mode can be activated from main Setup menu SETUP System ...

Page 23: ...o plugdev group 7 3 3 Launching dm_tool Switch the calculator to bootloader mode From menu or by RESET PGM buttons see Bootloader mode activation Connect the calculator to the PC Be sure the libusb driver is installed if used in Windows http www swissmicros com doc libusb_install libusb_install html Launch dm_tool It can be launched by clicking on the exe file or from command line with firmware fi...

Page 24: ...ity and you have to be able to launch terminal application and launch commands from console If you are new to this here are some tutorials macOS https blog teamtreehouse com introduction to the mac os x command line Linux https www digitalocean com community tutorials an introduction to the linux terminal Windows https www bleepingcomputer com tutorials windows command prompt introduction Now you ...

Page 25: ... alt 0 name Internal Flash 0x08000000 512 0002Kg serial 207B35994E34 Where lines Found DFU 0483 df11 indicate that calculator is correctly connected to PC and switched into bootloader mode Prepare firmware file Download latest firmware file from https www swissmicros com dm41x firmware and ensure it is accessible from current directory in console e g by ls l DMCP_flash_3 16_DM41X 1 10 bin Or you c...

Page 26: ... 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 756288 Download 100 756288 bytes Download done File downloaded successfully real 1m55 929s user 0m0 044s sys 0m0 048s 7 5 DMCP System Menu This ...

Page 27: ...irectory 7 5 5 Settings Time and Date settings 7 5 6 Activate USB Disk Used to copy files from to a host computer Connect the calculator to a computer using a USB cable The DM41X s flash disk should be visible on the computer Read write files Eject device on the host machine Calculator should end USB disk mode automatically if correctly ejected by OS You can end USB disk mode by pressing EXIT key ...

Page 28: ...7 5 7 Enter System Menu Jumps to the main System menu 7 5 8 About Displays general information about DMCP system 25 ...

Reviews: