corrupted file - time killer
Posted: Sat Jun 14, 2014 2:28 pm
Got a time killer here. - I don't expect you to spend time on it - but am curious.
'
I have saved the files from the /temp directory; will load on request
'
I think this is the 3rd time this type of situation has occured. (win XP @ SP2)
A working (seemed to have been) file has been added to ; (ie add more SUBs - in stages)
and then all of a sudden it crashes in one area and no amount of patching it seems to fix
it. [I have gotten the 'Firmware error 032 / 007E during the process of reloading, and
perhaps a "loss of communication" popup also - - - would any of those cause a file error?
You know - like a file doesn't get a 'file_close' command??] again this is a time-killer!!
'
anyway to the present file IF YOU CHOOSE to look at it. maybe run the text file through a
HEX file editor. was created with NPP
error occurs in the ACOMP_out SUBroutine. LINE 108
LINE 114 always prints, I have changed the value at Main: line 176 for testing - no difference
ALSO NOTE there is no ENDIF in the ACOMP_out. Putting one in causes " endif without an if" error
BUT this loads okay, in DEMO and in real-time !!!
The file also has several empty lines past the END in Main: (I had one program that would only allow
one blank line - or newline - character -- (again using NPP) -- so that is my SOP!!)
Analyzing C:/Coridium/basic/BASIClib/ACMP04_bad
Programming Flash 0812...
ARMbasic[9.32c] on the PC Copyright 2014, Coridium Corp.
*+*+
... ( 0.63K code + 0.09K const)/4K 0.04/1K data programmed
run
Executing...
value out of range10
value out of range10
value out of range10
value out of range10
******************* same file - ran in DEMO mode
I quit BT, removed usb/812, started BT, loaded file, "run" from the enter window (command line)
NO "value out of range" -- shouldn't as pin is 10
Analyzing C:/Coridium/basic/BASIClib/ACMP04_bad.bas
done
run
*** WARNING !!! ARM is not connected !!! ***DEMO MODE*** loading PC...
"ARMbasic[9.32c] on the PC Copyright 2014, Coridium Corp.
"
in do_any_operand fe [8]=fe
"... 1.26K code 0.04K data programmed
"
Executing on the PC...
call PEEK( 40048080 )
call POKE( 40048080 <= 40048080 )
call PEEK( 40048234 )
call POKE( 40048234 <= 40040234 )
call PEEK( 40048238 )
call POKE( 40048238 <= 40040238 )
call PEEK( 4000c1c0 )
call POKE( 4000c1c0 <= c1c0 )
call PEEK( 40024000 )
call POKE( 40024000 <= 40024a18 )
call PEEK( 4004402c )
call POKE( 4004402c <= 40044024 )
call POKE( 40044044 <= 40044024 )
call PEEK( 40024000 )
call POKE( 40024000 <= 40024a18 )
call PEEK( 4004402c )
call POKE( 4004402c <= 40044024 )
call POKE( 40044044 <= 40044024 )
call PEEK( 4000c020 ) // this is acomp_out
call POKE( 4000c020 <= 40000a20 )
call PEEK( 40024000 )
call PEEK( 40048004 )
call POKE( 40048004 <= 40048004 )
call PEEK( 40048004 )
call POKE( 40048004 <= 40049004 )
call PEEK( 40024000 )
... Finished on the PC in 0 ms
'
I have saved the files from the /temp directory; will load on request
'
I think this is the 3rd time this type of situation has occured. (win XP @ SP2)
A working (seemed to have been) file has been added to ; (ie add more SUBs - in stages)
and then all of a sudden it crashes in one area and no amount of patching it seems to fix
it. [I have gotten the 'Firmware error 032 / 007E during the process of reloading, and
perhaps a "loss of communication" popup also - - - would any of those cause a file error?
You know - like a file doesn't get a 'file_close' command??] again this is a time-killer!!
'
anyway to the present file IF YOU CHOOSE to look at it. maybe run the text file through a
HEX file editor. was created with NPP
error occurs in the ACOMP_out SUBroutine. LINE 108
LINE 114 always prints, I have changed the value at Main: line 176 for testing - no difference
ALSO NOTE there is no ENDIF in the ACOMP_out. Putting one in causes " endif without an if" error
BUT this loads okay, in DEMO and in real-time !!!
The file also has several empty lines past the END in Main: (I had one program that would only allow
one blank line - or newline - character -- (again using NPP) -- so that is my SOP!!)
Analyzing C:/Coridium/basic/BASIClib/ACMP04_bad
Programming Flash 0812...
ARMbasic[9.32c] on the PC Copyright 2014, Coridium Corp.
*+*+
... ( 0.63K code + 0.09K const)/4K 0.04/1K data programmed
run
Executing...
value out of range10
value out of range10
value out of range10
value out of range10
******************* same file - ran in DEMO mode
I quit BT, removed usb/812, started BT, loaded file, "run" from the enter window (command line)
NO "value out of range" -- shouldn't as pin is 10
Analyzing C:/Coridium/basic/BASIClib/ACMP04_bad.bas
done
run
*** WARNING !!! ARM is not connected !!! ***DEMO MODE*** loading PC...
"ARMbasic[9.32c] on the PC Copyright 2014, Coridium Corp.
"
in do_any_operand fe [8]=fe
"... 1.26K code 0.04K data programmed
"
Executing on the PC...
call PEEK( 40048080 )
call POKE( 40048080 <= 40048080 )
call PEEK( 40048234 )
call POKE( 40048234 <= 40040234 )
call PEEK( 40048238 )
call POKE( 40048238 <= 40040238 )
call PEEK( 4000c1c0 )
call POKE( 4000c1c0 <= c1c0 )
call PEEK( 40024000 )
call POKE( 40024000 <= 40024a18 )
call PEEK( 4004402c )
call POKE( 4004402c <= 40044024 )
call POKE( 40044044 <= 40044024 )
call PEEK( 40024000 )
call POKE( 40024000 <= 40024a18 )
call PEEK( 4004402c )
call POKE( 4004402c <= 40044024 )
call POKE( 40044044 <= 40044024 )
call PEEK( 4000c020 ) // this is acomp_out
call POKE( 4000c020 <= 40000a20 )
call PEEK( 40024000 )
call PEEK( 40048004 )
call POKE( 40048004 <= 40048004 )
call PEEK( 40048004 )
call POKE( 40048004 <= 40049004 )
call PEEK( 40024000 )
... Finished on the PC in 0 ms