[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] why the pointer get a error address?
From: |
whiteman |
Subject: |
[avr-gcc-list] why the pointer get a error address? |
Date: |
Sat, 14 Feb 2004 9:27:51 +0800 |
hi,all!
I defined a array in program space and a pointer to this array.
eg:
uint8_t test_array[] PROGMEM = {
1,2,3,4,5,6,7
};
const prog_char *character_pnt;
void main(void)
{
charcter_pnt = test_array;
;
;
}
but when I simulated with avr_studio, I found the "character_pnt" get a error
address,The "*character_pnt" isn't equal to 1.why?
Regards
whiteman
address@hidden
2004-02-14
- [avr-gcc-list] why the pointer get a error address?,
whiteman <=