[WP-34S] Flashing/chaining and assembler problems


I just reflashed the calc with the latest svn version to try the matrix programs, and as it is rather tedious to upload every single file (the calc.bin and the five .dat files) one by one, checking the entry point for each, I tried "chaining" them into a single file, to send it in one go - but it didn't work. I got a file that is about 131Kb in size, but when I try to send it with Samba, I get an "Out of memory" error.

Also, I tried using the assembler to re-encode my programs (calc version is 1725, and assembler opcode version is 1725 too) but I get the following error: "ERROR: Cannot recognize mnemonic at line 25 of file mySrc.wp34s: -> 023 x[<->]y <-"
Has something changed? The MySrc file was created by the assembler a few weeks ago, and I didn't hand-edit it...



See Marcus' explaination at:

x[<->]y is now x[<->] Y


Thank you... I had missed that. Things happen so fast that I seem to be unable to stay up-to-date with everything :( Sorry for missing that!

The other question still stands though... unless I missed something else :)



You might try Jeff O's method of combining the flash regions using the DOS "copy /b" command.

Flashing HP 20b for WP 34S


I did the Linux equivalent of that, and the file I got is actually a binary concatenation of the input files. I'm wondering if the problem is that the calc.bin is smaller than the "official" 128Kb? But then, I don't see how that should cause an "out of memory".

Another question: am I right in thinking that if I transfer all the .dat files that are in the library folder, I end up with no free flash regions? If it is so, which would mean that the various .dat files given to us are just "modules" that we can install or not in whichever region we want, wouldn't it be better to name them something like "what_this_module_does.dat", so that we can choose easily what to install and where, and what region(s) we want to leave free?


Edited: 13 Oct 2011, 3:39 p.m.


I accidentally merged all the .dat files into calc.bin. My fault. It will be remedied soon. Until then, use the serial commands to transfer your files from the emulator to the device. For flashing you should switch to MySamba.

SAM-BA.exe may help you to overwrite the predefined dat files directly in flash. The method is described in flash.txt and should be in Walter's manual, too. You need to send each .dat file to its associated address in flash.


I've reworked the library stuff so that calc.bin is just the plain binary without any .dat files merged.

There are a few new files in the realbuild directory:

wp34s-?.dat   - copies from library for convenience
join.cmd - A command file to merge these into calc_full.bin

The command file makelib.cmd in the root directory builds the .dat files. Just take a look what goes where. This is subject to frequent changes.

Possibly Related Threads...
Thread Author Replies Views Last Post
  [WP-34S] Unfortunate key damage with update to V3 :( svisvanatha 5 1,152 12-10-2013, 11:37 PM
Last Post: Les Bell
  WP-34S (Emulator Program Load/Save) Barry Mead 1 649 12-09-2013, 05:29 PM
Last Post: Marcus von Cube, Germany
  DIY HP 30b WP 34s serial flash/programming cable Richard Wahl 2 941 12-04-2013, 11:14 AM
Last Post: Barry Mead
  WP 34S/43 ?'s Richard Berler 3 812 11-10-2013, 02:27 AM
Last Post: Walter B
  My FrankenCulator (wp-34s) FORTIN Pascal 4 866 11-09-2013, 06:18 PM
Last Post: FORTIN Pascal
  WP 34S Owner's Handbook Walter B 5 1,120 11-09-2013, 05:34 PM
Last Post: Harald
  wp 34s overlay and programming. FORTIN Pascal 6 1,172 11-08-2013, 01:28 PM
Last Post: Nick_S
  m.dy in display of WP-34S Harold A Climer 3 717 11-05-2013, 11:28 AM
Last Post: Andrew Nikitin
  WP 34s : An old problem coming back Miguel Toro 2 664 11-05-2013, 03:00 AM
Last Post: Marcus von Cube, Germany
  [WP 34s] Pressure Conversion Factors Timothy Roche 8 1,300 11-04-2013, 07:17 PM
Last Post: Dave Shaffer (Arizona)

Forum Jump: