$ python botload.py -d dump.hex ~/electronics/pic/proj/2520test/2520test.hex
Conectando con el bootloader (intento 1 de 10)... Conectado
Detectado el dispositivo 1105 (PIC18F2520, revisión 5)
Relocalizando vectores...
Hi there, it's me, the bootloader program.
You know what, I'm sick of this.
Coding around random crap when patching the vectors is a pain in the rear.
Now you have a goto in the middle of the end boundary of the vector.
Do you even know what you've done?
It's people like you that create the world's problems.
Yeah, I could replace it with a branch and put it in the branch table.
You know what? I don't care.
What was supposed to be a simple ten-line relocation has turned into a 190-line monster.
That's not counting the constant database in devices.py.
I'm depressed now. It's 7am and I'm still working on this.
I'm raising an exception now.
You get to fix this one.
See you later.
Traceback (most recent call last):
File "botload.py", line 142, in ?
BotLoader()._main()
File "botload.py", line 102, in _main
self.run(args)
File "botload.py", line 20, in run
self.put()
File "botload.py", line 133, in put
self.relocator.relocate(self.data)
File "/home/marcansoft/ek15/robots/euskalbot/botload/host/relocate.py", line 181, in relocate
self.device.bootloader_reset)
File "/home/marcansoft/ek15/robots/euskalbot/botload/host/relocate.py", line 114, in _relocate_vector
raise Exception("Program is depressed")
Exception: Program is depressed