Show Quoted Text
Then the compiler is ignoring the statement
Virtual_ram1 = CRASH_AND_BURN_HERE;
But in fact, the processor tries to access the variable and got some exception error.
Show Quoted Text
Yes, i did, but it didn't make any different.
The rest of the program is working fine, including the 802.15.4 RF scanning. However, not having globals means reloading the pointers everytime.
By the way, the scanner is working prefectly and picking up (intercepting) the nearby smart electrical meters.
See: http://173.224.223.62/HomeLink
----------------------------------------------- #define CRASH_AND_BURN_HERE 1 int Virtual_ram1; volatile int Virtual_ram2;
void PhyInit(void); void PhyScan(void);
// main must be first routine int main(void) { int i; //char s[100]; sub1(); PutS(CONSOLE, "PHY layer started\r\n");
sprintf(s, "%x\r\n", &Virtual_ram1); PutS(CONSOLE, s); sprintf(s, "%x\r\n", &Virtual_ram2); PutS(CONSOLE, s);
Virtual_ram1 = CRASH_AND_BURN_HERE;
PutS(CONSOLE, "\r\n"); PutS(CONSOLE, "IEEE 802.15.4 2.4GHz Scanner\r\n"); PutS(CONSOLE, "\r\n");
// This is APP, LLC and MAC layers while(1) { PhyInit(); PhyScan(); for(i=0; i