WP34s Builds - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not quite HP Calculators - but related (/forum-8.html) +--- Thread: WP34s Builds (/thread-2339.html) |
WP34s Builds - mendesp - 10-26-2014 05:16 PM I'm trying to build bin files from Windows 7. I've read a lot about it, installed and modified files as suggested by Nigel J Dowrick in his article. I've succeeded in building wp34s-lib file but had no success with calc.bin. I keep getting this error message from flash-build log file: Modification of non-creatable array value attempted, subscript -1 at c:\WP\bin\wp34s-code\tools\wp34s_asm.pl line 1891. Makefile:402: recipe for target 'xrom.c' failed mingw32-make[1]: *** [xrom.c] Error 25 mingw32-make[1]: Leaving directory 'C:/WP/bin/wp34s-code' make: *** [realbuild/calc.bin] Error 2 I'm missing something here. I'm using makeflash.cmd. I couldn't find flash.cmd anywhere so I guess it has been replaced by makeflash. If someone could give me a hint in sloving this issue, I would appreciate it. Patrick RE: WP34s Builds - Marcus von Cube - 10-26-2014 06:59 PM (10-26-2014 05:16 PM)mendesp Wrote: Modification of non-creatable array value attempted, subscript -1 at c:\WP\bin\wp34s-code\tools\wp34s_asm.pl line 1891. It is trying to assemble the XROM code with Neil's assembler. XROM is just a keystroke program to implement some of the built-in functionality. Maybe Neil can chime in... RE: WP34s Builds - Thomas Klemm - 10-27-2014 10:37 AM Could you please verify that you are using the actual revision of the script? Code: Path: tools/wp34s_asm.pl tools/wp34s_asm.pl: Code: 1877 ####################################################################### I haven't executed the method dump_c_array but if I look at line 1891 there's only this statement that might lead to the aforementioned error message: $val_array[-1] But then this should only happen when we try to modify the array with an index that is out of range but not when it is just accessed: Code: DB<1> @val_array = (); Thus I don't think this might happen with the actual code. HTH Thomas RE: WP34s Builds - mendesp - 10-27-2014 01:05 PM Thank you, Thomas for your reply. I'll have a look at this file and let you know if I could build the bins. RE: WP34s Builds - mendesp - 10-27-2014 01:31 PM Thomas, you were right, I wasn't using the actual revision of the file. I still can't build the file as I get a different error: xrom_pre.wp34s // WP 34S assembly preprocessor enabled: '-pp' // Opcode map source: tools/wp34s.op (specified) // Opcode SVN version: -- unknown -- // Running WP 34S preprocessor from: C:/wp/bin/wp34s-code/tools/wp34s_pp.pl AccŠs refus‚. WARNING: wp34s_asm.pl::run_pp: WP 34S preprocessor failed. Temp file: '.__0.24468994140625.tmp' ERROR: wp34s_asm.pl::run_pp: Perhaps you can try running it in isolation using: $ "C:/wp/bin/wp34s-code/tools/wp34s_pp.pl" -m 235 -cat .__0.24468994140625.tmp -v3 -xrom -e2so -sd 4 -colour_mode 0 Makefile:402: recipe for target 'xrom.c' failed mingw32-make[1]: *** [xrom.c] Error 1 mingw32-make[1]: Leaving directory 'C:/WP/bin/wp34s-code' make: *** [realbuild/calc.bin] Error 2 If this can help, it seems that the script can't run wp34s_pp.pl. A message box asks me if I want to open the file instaed of running it. In Makelib.cmd, I replaced the line set LIB=%TOOLS%\wp34s_lib.pl -d %DEBUG% by set LIB=%TOOLS%\wp34s_lib.exe -d %DEBUG% to fix the issue. It worked but obviously this wasn't enough. What should I modify to run pl scripts properly ? RE: WP34s Builds - mendesp - 10-27-2014 02:50 PM Everything is working now. I had to fix a a file association issue. Thanks for your help ! Congratulations for this fantastic project !! RE: WP34s Builds - Thomas Klemm - 10-27-2014 03:12 PM In order to get some debug-information in tools/wp34s_asm.pl you can set: Code: 151 my $debug = 3; Code: 1848 print "// Running WP 34S preprocessor from: $pp_location\n"; But I must admit that I'm not familiar with the build-environment of this project. Are you sure that your Perl installation is fine? Completely unrelated: Quote: # Override the step digits as required. From perldoc -f log: Code: log EXPR RE: WP34s Builds - Thomas Klemm - 10-27-2014 03:14 PM Oops, didn't notice that you could solve the problem in the meantime. Cheers Thomas RE: WP34s Builds - mendesp - 10-27-2014 04:55 PM Well it's not quite over yet... My calc.bin file is much smaller (116 Kb) than the original one (643 Kb). Maybe I could try to disassemble the files and find what's missing. I probably missed something else that should be obvious. I tried to add the flash-build log file to this post, but this type of file seems to be not allowed. Should I copy and paste the content to this post ? Thanks, Patrick RE: WP34s Builds - Marcus von Cube - 10-27-2014 04:59 PM (10-27-2014 04:55 PM)mendesp Wrote: My calc.bin file is much smaller (116 Kb) than the original one (643 Kb).116 KB for the calc.bin file is correct. It's just a binary image of the flash contents. The larger file calc (without the extension) is an intermediate file that is used by the hardware debugger. RE: WP34s Builds - mendesp - 10-27-2014 05:07 PM So I guess I can flash my calculator with this file. Am I correct ? Thanks a lot for your help! Patrick RE: WP34s Builds - Marcus von Cube - 10-27-2014 06:41 PM (10-27-2014 05:07 PM)mendesp Wrote: So I guess I can flash my calculator with this file. Am I correct ?You can compare it to the image in the repository. If the differences are minor(*), you are on the safe side. (*) If you didn't change the source code the difference should just be in the revision number which is encoded in the file. |