$ 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.
Hola, soy yo, el bootloader.
¿Sabes que? Estoy harto de todo esto.
Escribir código para controlar todos estos casos raros cuando parcheo los vectores es un coñazo.
Ahora tienes un goto en medio del borde del vector.
¿Acaso sabes lo que has hecho?
La gente como tu sois los que causais los problemas de este mundo.
Si, si, podria reemplazarlo por un branch y ponerlo en la tabla.
¿Sabes que? No me importa.
Esto se suponía que iba a ser una tontería de 10 lineas, y ahora es un monstruo de 190.
Eso sin contar la base de datos de constantes en devices.py.
Ahora estoy deprimido. Son las 7am y todavía ando trabajando en esto.
Voy a lanzar una excepción ahora.
Te toca a ti arreglar el problema esta vez.
Nos vemos.
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 198, in relocate
self.device.bootloader_reset)
File "/home/marcansoft/ek15/robots/euskalbot/botload/host/relocate.py", line 131, in _relocate_vector
raise Exception("Program is depressed")
Exception: Program is depressed