Forum: Mikrocontroller und Digitale Elektronik MPLAB C18 PIC interner EEPROM brenne


von *Michael* (Gast)


Lesenswert?

hallo,
ich such jetzt bestimmt schon 1h wie man den internen EEPROM von meinem 
PIC 18F2550 mit beschreiben kann beim brennen des pics.
Ich benutze dafür USBurn von Sprut und MPLAB IDE 8.5 C18.
Unter View -> EEPROM kann man ja was reinschreiben was nacher in den 
EEPROM
soll, theoretisch, denn in der praxis geht des net.

USBrun:
1
-- HEX-file loaded
2
-- 7 k FLASH needed
3
-- 0 Byte EEPROM needed
4
-- HEX-file contains Config-data

von *Michael* (Gast)


Lesenswert?

Was ich möchte, was momentan aber nicht geht, den EEPROM IM Pic mit zu 
beschreiben...

von stephan_ (Gast)


Lesenswert?

PIC 18F2550, Start des EEPROM beim Brennen: 0xF00000

Quelle: http://ww1.microchip.com/downloads/en/DeviceDoc/39622k.pdf 
Kap.5.5

von *Michael* (Gast)


Lesenswert?

sry aber das sagt mir garnix bzw da steht doch au net drin
WIE ich das mache
danke das wenigstens einer antwortet ^^
1
5.5 Embedding Data EEPROM
2
Information In the HEX File
3
To allow portability of code, a PIC18F2XXX/4XXX
4
family programmer is required to read the data
5
EEPROM information from the hex file. If data
6
EEPROM information is not present, a simple warning
7
message should be issued. Similarly, when saving a
8
hex file, all data EEPROM information must be
9
included. An option to not include the data EEPROM
10
information may be provided. When embedding data
11
EEPROM information in the hex file, it should start at
12
address F00000h.
13
Microchip Technology Inc. believes that this feature is
14
important for the benefit of the end customer.

von stephan_ (Gast)


Lesenswert?

In Assembler (ggf. inline)
1
    org 0xF00000
2
    DA "blafasel..."

von ttl (Gast)


Lesenswert?

steht im manual zum C18 compiler

von Julian R. (tuefftler)


Lesenswert?

Warum manuell reinschreiben??? Schreibs doch per Programm rein und 
arbeite dann weiter

von *Michael* (Gast)


Lesenswert?

???
bahnhof
muss ich in den assemblercode was einfügen das der des richtig 
übernimmt?

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
Noch kein Account? Hier anmelden.