Forum: Mikrocontroller und Digitale Elektronik Probleme beim Speicherzugriff bei PIC24


von G. S. (sido_dr)


Lesenswert?

Guten Tag,
ich habe unter MPLAB ein Programm in C für einen PIC24FJ64GA004 
geschrieben.
Das Programm soll Werte eines analogen Eingangs abspeichern.
Kompilieren lässt sich das ganze ohne Probleme, doch bei der Ausführung 
kommen dann folgende Fehler im Output Fenster

CORE-E0011: Trap due to unimplemented RAM or PSV memory access, occurred 
from instruction at 0x000e72
CORE-E0001: Trap due to stack error, occurred from instruction at 
0x000e72
CORE-E0003: Trap due to unimplemented RAM memory access, occurred from 
instruction at 0x000e72
CORE-E0003: Trap due to unimplemented RAM memory access, occurred from 
instruction at 0x000e72
CORE-E0003: Trap due to unimplemented RAM memory access, occurred from 
instruction at 0x000e72
CORE-E0003: Trap due to unimplemented RAM memory access, occurred from 
instruction at 0x000e72

Hat jemand eine Idee woher das kommen kann?

von (prx) A. K. (prx)


Lesenswert?

Zugriff auf eine Datenspeicheradresse, an der sich nicht befindet, 
insbesondere auch kein RAM. Siehe Befehl an Adresse 0x000E72.

von Master S. (snowman)


Lesenswert?


von G.Siedow (Gast)


Lesenswert?

ich habe das Problem jetzt lokalisiert, und zwar tritt der fehler bei
1
float y[3] = {0.,0.,0.};

auf, ich habe das ganze einmal zerteilt, in
1
float y[3];
2
y[0]=0.; y[1]=0.; y[2]=0.;

das Problem erscheint erst, wenn ich versuche in eine Variable 
reinzuschreiben.

von ich (Gast)


Lesenswert?

schreib mal "0.0" anstatt "0."

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.