Hilfe zu Bootloader für PIC

Gast #529920
Lesenswert?

Hallo!!
Ich habe gestern im Internet einen Bootloader 
(http://www.etc.ugal.ro/cchiculita/software/picbootloader.htm)gefunden. 
Kennt den irgendeiner von euch??
Mein Frage:
Wie muss ich die im Anhang mitgelieferte .ASM umwandeln damit sie für 
meinen PIC (18F448) passen (im Mplab bekomme ich immer Fehler beim 
kompeilieren)???
Danke an alle die mir helfen!!!!
Gast #529959
Lesenswert?

Wie zuerst? Bootloader drauf und fertig. Den Rest machst du dann über 
die Schnittstelle, die der Bootloader nutzt.

Natürlich mußt du an die Konfigurationsbits denken, dies lassen sich 
aber in MPLAB konfortabel einstellen.
Gast #529970
Lesenswert?

Is mir schon klar, aber wenn ich die Datei die zu meinem PIC gehört 
kompeilieren will (es wird nur eine .ASM Datei mitgeliefert) um sie 
danach mit der ICD2 in den PIC zu brennen um danach über die Serielle 
programmieren zu können, liefert mir Mplab immer ca. 46 Fehlermeldungen, 
also habe ich gedacht da muss man sicher noch was verändern (in den 
ersten Zeilen der .ASM  Datei steht sogar das man diese Zeilen an den 
PIC anpassen sollte), nur ich weis nicht was!!
Gast #529985
Lesenswert?

Error[105]   L:\BOOTLOADER\BOOTLOADER.ASM 14 : Cannot open file (Include 
File "../icdpictypes.inc" not found)
Error[105]   L:\BOOTLOADER\BOOTLOADER.ASM 15 : Cannot open file (Include 
File "../spbrgselect.inc" not found)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 19 : Symbol not previously 
defined (_CONFIG1H)
Warning[230] L:\BOOTLOADER\BOOTLOADER.ASM 19 : __CONFIG has been 
deprecated for PIC18 devices.  Use directive CONFIG.
Error[126]   L:\BOOTLOADER\BOOTLOADER.ASM 19 : Argument out of range 
(not a valid config register address)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 20 : Symbol not previously 
defined (_CONFIG2L)
Warning[230] L:\BOOTLOADER\BOOTLOADER.ASM 20 : __CONFIG has been 
deprecated for PIC18 devices.  Use directive CONFIG.
Error[126]   L:\BOOTLOADER\BOOTLOADER.ASM 20 : Argument out of range 
(not a valid config register address)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 21 : Symbol not previously 
defined (_CONFIG2H)
Warning[230] L:\BOOTLOADER\BOOTLOADER.ASM 21 : __CONFIG has been 
deprecated for PIC18 devices.  Use directive CONFIG.
Error[126]   L:\BOOTLOADER\BOOTLOADER.ASM 21 : Argument out of range 
(not a valid config register address)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 22 : Symbol not previously 
defined (_CONFIG4L)
Warning[230] L:\BOOTLOADER\BOOTLOADER.ASM 22 : __CONFIG has been 
deprecated for PIC18 devices.  Use directive CONFIG.
Error[126]   L:\BOOTLOADER\BOOTLOADER.ASM 22 : Argument out of range 
(not a valid config register address)
Error[126]   L:\BOOTLOADER\BOOTLOADER.ASM 49 : Argument out of range 
(-192 not between 0 and 16383)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 59 : Symbol not previously 
defined (max_flash)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 64 : Symbol not previously 
defined (max_flash)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 68 : Symbol not previously 
defined (TXSTA)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 69 : Symbol not previously 
defined (spbrg_value)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 70 : Symbol not previously 
defined (SPBRG)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 72 : Symbol not previously 
defined (RCSTA)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 42 : Symbol not previously 
defined (IdTypePIC)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 43 : Symbol not previously 
defined (TXREG)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 43 : Symbol not previously 
defined (TXREG)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 83 : Symbol not previously 
defined (TBLPTRU)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 86 : Symbol not previously 
defined (TBLPTRH)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 87 : Symbol not previously 
defined (EEADR)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 89 : Symbol not previously 
defined (TBLPTRL)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 90 : Symbol not previously 
defined (EEDATA)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 95 : Symbol not previously 
defined (FSR0)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 97 : Symbol not previously 
defined (TABLAT)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 99 : Symbol not previously 
defined (PREINC0)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 127 : Symbol not previously 
defined (FSR0)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 132 : Symbol not previously 
defined (POSTINC0)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 133 : Symbol not previously 
defined (TABLAT)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 146 : Symbol not previously 
defined (WREN)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 146 : Symbol not previously 
defined (EECON1)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 43 : Symbol not previously 
defined (TXREG)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 156 : Symbol not previously 
defined (EECON1)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 158 : Symbol not previously 
defined (EECON2)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 160 : Symbol not previously 
defined (EECON2)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 161 : Symbol not previously 
defined (WR)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 161 : Symbol not previously 
defined (EECON1)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 175 : Symbol not previously 
defined (RCIF)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 175 : Symbol not previously 
defined (PIR1)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 177 : Symbol not previously 
defined (RCREG)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 189 : Symbol not previously 
defined (SPEN)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 189 : Symbol not previously 
defined (RCSTA)
Error[113]   L:\BOOTLOADER\BOOTLOADER.ASM 190 : Symbol not previously 
defined (max_flash)
#530016
Lesenswert?

Hast Du denn die beiden Files icdpictypes.inc und spbrgselect.inc in 
Dein Projekt eingefügt?
Siehe Fehlermeldung:

Error[105]   L:\BOOTLOADER\BOOTLOADER.ASM 14 : Cannot open file (Include
File "../icdpictypes.inc" not found)
Error[105]   L:\BOOTLOADER\BOOTLOADER.ASM 15 : Cannot open file (Include
File "../spbrgselect.inc" not found)

Eventuell kannst Du versuchen, im Sourcecode:
#include "../icdpictypes.inc"  ;takes care of: #include "p18fxxx.inc", 
max_flash, IdTypePIC
#include "../spbrgselect.inc"  ; RoundResult and baud_rate

das ../ zu entfernen, also:

#include "icdpictypes.inc"  ;takes care of: #include "p18fxxx.inc", 
max_flash, IdTypePIC
#include "spbrgselect.inc"  ; RoundResult and baud_rate

Versuchs mal

Severino
Gast #530180
Lesenswert?

Merke:

Das Einfügen von

   Bei mir tritt folgender Fehler auf wenn ich 'xyz' mache:
   [... Fehlermeldung(en) ... ]

im ersten Posting hätte viel schneller zum "Juuuuuuuuuhhhhhuuuu" 
geführt.

Also immer soviel Infos zum Problem wie möglich geben (Schaltplan, 
Codeausschnitte, Fehlermeldungen, verwendete Hardware und 
Software/Tools). Das erspart anderen das Polieren der Glaskugeln...

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren