• Variable corruption
    I'm having a hard time to figure out what is wrong with my code. My code is spread into one common area and additional 4 banks. I have some global variables, mainly structs, that are used throughout...
  • unsigned long and float variables corrupted
    Hi everyone I was working with float and unsigned long variables and I use the cygnal 8051 mcu it has xdata and idata 8k and 256.. when I put these variables in idata works fine but when I put...
  • Ram corruption
    Hello, I have the following piece of code: static void SETBIT( Pcf8574 xdata *Object, Nat8 Pin, Nat8 Active ) { ASSERT( ( 0 <= Pin ) &&( Pin <= 7 ) ); ASSERT( ( Active == TRUE ) ||( Active...
  • Data Corruption when variables declared as xdata.
    Hi, I'm using Aduc842 controller. Application is developed using keil-uVission2, and the hex file is downloaded using WSD. I'm using hyper terminal (RS232 protocol) for communicating between the controller...
  • Stack corruption
    Hello, I am working on AT91SAM9G20, Keil 5.10. I am passing a constant structure pointer to a function. typedef struct { int Test; int OkFlag; }StructNode; typedef const StructNode *const...