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!!!!
hängt nix dran, muss also nix verändert werden. Den Loader hab ich mal mit nem 16F88 getestet, hat funktioniert. bye Frank
Danke für die Antwort!! Aber was muss ich auf dem PIC zuerst raufladen damit der Bootloader funzt????
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.
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!!
Welches File willst du kompilieren? Gib mal den vollständigen Namen bitte.
Das Posten der Fehlermeldung(en) wäre SEHR hilfreich! Wie soll jemand helfen, wenn niemand weiss, welche Fehler auftreten? tse tse tse...
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)
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
hab ich gerade ausprobiert und es funzt immer noch nicht!! Für was sind eigentlich die icdpictypes.inc und spbrgselect.inc Files gut?? Oder wocher bekomme ich diese??
Die sind in der ZIP-Datei, die Du wohl von der Website heruntergeladen hast, oder woher hast Du den Bootloader? http://www.etc.ugal.ro/cchiculita/software/tinybld193.zip In diesen Dateien sind wohl die Symbole definiert, die Dein Assembler ohne die Dateien bemängelt. Severino
Juuuuuuuuuhhhhhuuuu!!!!!!!!!! Das schei. Ding funktioniert!!!!! Danke an alle die mitgeholfen haben (war ja eh so einfach :-) ) MFG DCW!!!!
DCW wrote:
...
> (war ja eh so einfach :-) )
...
Deshalb bist Du ja von selber draufgekommen... ;-)
Severino
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...
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.