Problem building calc.bin?

I can flash my WP34s with calc.bin downloaded from sourceforge reliably, but I cannot flash an image if I build it myself. I run flash.cmd and the log file indicates the build was successful. The error I get from the flash programmer is "no answer to packet xx." That's not an exact quote; I'm not at the right computer now, but it's pretty close. xx is not always the same number. Has anyone seen this or know what I have wrong?


Check the size of the file! I assume that your compiler does not produce the same output as mine. The file size must not exceed 128 KB. Has the post processing step been successfully executed? It takes the file calc.tmp, strips off a part that contains the original 4 byte jump addresses in the command tables and replaces the dummy entries by 2 byte equivalents of the original addresses. The resulting file should then be shorter then 128 KB. Without this step the binary will not work.



Thanks for the quick reply. Yes, the file is less than 128k. It appears the post processing completed. Below is a cut & paste of the end of the flash-build.log, in case it provides a clue.

I am using an older XP machine with a native serial port, no USB-to-serial adapter.

Revision number(s): 2713M
Revision number will be 2714
arm-none-eabi-gcc -mthumb -mcpu=arm7tdmi -Os -fira-region=one -Wall -Werror -g -fno-common -fno-exceptions -DREALBUILD -Dat91sam7l128 -Iatmel -DXTAL -DNO_BACKUP_INIT -DNO_RAM_COPY -IdecNumber -o realbuild/calc_xtal -nostartfiles -T -Wl,--gc-sections,-Map=realbuild/mapfile_xtal.txt \
atmel/board_cstartup.S asone.c -nostdlib -lgcc -Lwindows32_realbuild/obj -lconsts -fwhole-program -ldecNum34s -save-temps
arm-none-eabi-nm -n realbuild/calc_xtal >realbuild/symbols_xtal.txt
arm-none-eabi-nm -S realbuild/calc_xtal >>realbuild/symbols_xtal.txt
arm-none-eabi-objcopy -O binary --gap-fill 0xff realbuild/calc_xtal realbuild/calc_xtal.tmp
windows32_realbuild/post_process.exe realbuild/calc_xtal.tmp realbuild/calc_xtal.bin
Post-processing address tables
Monadic commands: 139
Dyadic commands: 42
Triadic commands: 10
Niladic commands: 194
Argument commands: 138
Multi word commands: 11
.fixed 0x00100000 0x1da48
.revision 0x0011da48 0xb8
0x0011db00 UserFlash = .
0x00001d00 UserFlashSize = (. - UserFlash)
.backupflash 0x0011f800 0x800
.cmdtab 0x000f0000 0x1d8c
.bss 0x00200000 0x188
.slcdcmem 0x00200188 0x30
.volatileram 0x002001b8 0x1d0
.persistentram 0x00300000 0x800


Which "flash programmer" do you use? There are 3 of them.


Ed, the log looks perfect.


Not MySamba or Samba, but the one from the flash directory on sourceforge. It only fails using my builds and never using builds I download.


If its name is WP34sFlash, it is the new one and still in beta.

You should try with MySamba. If you still have the problem, then it comes from your build. If not, from WP34sFlash and then, I would very much like to get one of you calc.bin file to try to reproduce it.

Edited: 30 Mar 2012, 12:10 a.m.


Yes, I was using WP34sFlash. I will try MySamba and let you know the resuly, although it may be a couple days before I get back to that XP machine with native serial port. If MySamba works, I will get a copy of my build to you.



I tried flashing my calc.bin file using MySamba and it works. Unfortunately, I made another change at the same time so I don't know which change made the difference. I also added the crystal mod. The next time I flash, I will go back to WP34sFlash and see if that works now. The only issue I see now is that when I flash with my version of calc_xtal_full.bin, I don't seem to have the "full" capability. The file size seems correct - very close to the release version of calc_xtal_full.bin. Crystal functionality seems to work, I can run the stopwatch, etc.


Ed, send me the contents of your realbuild directory and I can check it out.

Possibly Related Threads…
Thread Author Replies Views Last Post
  wp34s calc to calc communication Andrew Nikitin 1 1,169 07-29-2013, 01:57 AM
Last Post: Marcus von Cube, Germany
  Building WP 34s emulator on Linux Eric Smith 3 1,530 07-25-2013, 03:03 PM
Last Post: Marcus von Cube, Germany
  Questions about building a RAM card for hp 48 Waon Shinyoe (China) 0 1,112 07-09-2013, 09:53 PM
Last Post: Waon Shinyoe (China)
  Building WP-34S calc.bin from source - long post (sorry!) Nigel J Dowrick 5 2,278 07-14-2012, 07:41 AM
Last Post: Paul Dale
  [WP-34s] can't flash with calc_ir.bin Alexander Oestert 11 2,865 05-03-2012, 11:23 AM
Last Post: Katie Wasserman
  [WP34S] Creating My Own calc_full.bin Les Wright 14 3,696 04-05-2012, 03:39 PM
Last Post: Marcus von Cube, Germany
  Problems building WP34s Harald 7 2,137 03-12-2012, 10:56 AM
Last Post: Marcus von Cube, Germany
  Help building WP34s calc.bin Ed Wright 11 3,033 02-19-2012, 04:26 AM
Last Post: Marcus von Cube, Germany
  Instructions for building WP-34s loads. Dominic Richens 27 6,420 09-27-2011, 01:39 AM
Last Post: Walter B
  Found in a rubbish bin. Stuart Sprott 7 2,112 09-13-2011, 04:56 PM
Last Post: Bob Patton

Forum Jump: