Pinguino Forum

Full Version: [resolu] bootloader bug limit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Bonjour,

J'utilise une carte a base 18f2550,booloader V4.14 et Pinguino 11.0 béta 3:

J'ai les derniéres versions uploader.py  et  uploaderVSC.py

J'ai constaté que:
Code size: 16316 download OK

Code size: 16318 download erreur

Donc dès que la taille dépasse 16316 impossible de télécharger. Angry

Ci joint log identique  avec une plus grande taille  

[OUT] Compilation terminée
[OUT] Code size: 18958 / 29696 bytes (63% used)
[OUT] 3.124 seconde passe
[DEBUG] Starting '__upload__' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Starting 'upload' from 'qtgui.pinguino_api.uploader.uploader'
[DEBUG] Looking for a Pinguino device ...
[DEBUG] Found device 0x04D8:0xFEAA
[DEBUG] Pinguino found ...
[DEBUG] OS is windows
[DEBUG] Configuration set
[DEBUG] Interface claimed
[DEBUG] Everything OK so far
[DEBUG]  - with PIC18f2550 (id=1240)
[DEBUG]  - with 29696 bytes free (29 KB)
[DEBUG]    from 0x00C00 to 0x08000
[DEBUG]  - with USB bootloader v4.14
[DEBUG] Uploading user program ...
[DEBUG] Traceback (most recent call last):
[DEBUG]   File 'C:\pinguino-11\qtgui\pinguino_api ools.py', line 23, in inset
[DEBUG]     ret = f(*args, **kwaargs)
[DEBUG]   File 'C:\pinguino-11\qtgui\pinguino_api\uploader\uploader.py', line 177, in upload
[DEBUG]     self.uploader.uploadDevice(self.hexfile, self.board)
[DEBUG]   File 'C:\pinguino-11\qtgui\pinguino_api\uploader\uploader8.py', line 514, in uploadDevice
[DEBUG]     status = self.writeHex(handle, filename, board)
[DEBUG]   File 'C:\pinguino-11\qtgui\pinguino_api\uploader\uploader8.py', line 430, in writeHex
[DEBUG]     self.eraseFlash(board.memstart, 255)
[DEBUG] TypeError: eraseFlash() takes exactly 4 arguments (3 given)
[DEBUG]
[DEBUG] Traceback (most recent call last):
[DEBUG]   File 'C:\pinguino-11\qtgui\pinguino_api ools.py', line 23, in inset
[DEBUG]     ret = f(*args, **kwaargs)
[DEBUG]   File 'C:\pinguino-11\qtgui\pinguino_api\pinguino_tools.py', line 228, in __upload__
[DEBUG]     result = filter(lambda line: not line.isspace(), result)
[DEBUG] TypeError: 'NoneType' object is not iterable
Salut,

Peux-tu éditer le fichier uploader8.py et remplacer la ligne 430 par :

            self.eraseFlash(handle, board.memstart, 255)

Ça devrait aller mieux ...
Bonjour Regis,

Bien vu correction ok .

Merci

JF