GreatWhiteNorth
New Member
I've been happily coding and downloading for the past few months but as of last night, I started getting "Hardware not found" errors when I try to download.
So I
a) switched to my "AXE Stack 28" development board in case my custom board was the problem - didn't help (board from www.hvwtech.com)
b) switched to another Picaxe 28X1 chip in case I had somehow damaged it - didn't help
c) rebooted computer (WinXP using serial com cable) - this allowed me to download the program once - before it locked up again - could be the wait with the picaxe powered down.
d) tested the serial cable by connecting tx-rx and using terminal window to send characters back to screen - no problem
e) change the COM port - didn't help
f) reduced the program size - currently at 1724 bytes out of 4096 so I reduced it using #rem/#endrem directives to 1429 bytes out of 4096 - I was able to download the reduced size
g) using msconfig, disabled all services to prevent any possible COM port conflicts. - didn't help - still had failure to download with the larger loads.
Am I approaching the code limit for the 28X1? Anyone know why I'm getting the failure to download? Does loading a larger file require a larger power supply?
Right now I'm trying to isolate any code I have that could be causing this
Here is a snippet of code that I was working on when all this started.
My full code size of 25KB exceeds maximum of 19KB to upload to this site.
Thanks
So I
a) switched to my "AXE Stack 28" development board in case my custom board was the problem - didn't help (board from www.hvwtech.com)
b) switched to another Picaxe 28X1 chip in case I had somehow damaged it - didn't help
c) rebooted computer (WinXP using serial com cable) - this allowed me to download the program once - before it locked up again - could be the wait with the picaxe powered down.
d) tested the serial cable by connecting tx-rx and using terminal window to send characters back to screen - no problem
e) change the COM port - didn't help
f) reduced the program size - currently at 1724 bytes out of 4096 so I reduced it using #rem/#endrem directives to 1429 bytes out of 4096 - I was able to download the reduced size
g) using msconfig, disabled all services to prevent any possible COM port conflicts. - didn't help - still had failure to download with the larger loads.
Am I approaching the code limit for the 28X1? Anyone know why I'm getting the failure to download? Does loading a larger file require a larger power supply?
Right now I'm trying to isolate any code I have that could be causing this
Here is a snippet of code that I was working on when all this started.
Code:
symbol battery_level_ptr = 40
symbol battery_check = 50
ptr = battery_check
if @ptr = 0 then
ptr = battery_level_ptr
readadc battery_level, @ptrinc
`sertxd ("battery level:: ",#@ptr,13,10)
calibadc @ptrdec
`sertxd ("voltage ref level:: ",#@ptr,13,10)
if @ptr > 120 then ' batteries low, switch
high portc low_pwr
ptr = battery_check
`@ptr = 100
elseif @ptr < 30 then
low portc low_pwr
ptr = battery_check
@ptr = 100
endif
else
@ptr = @ptr - 1
endif
Thanks